Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. ROS
  4. MAVROS/C++ tutorial

MAVROS/C++ tutorial

Scheduled Pinned Locked Moved ROS
2 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    TPSetati
    Contributor
    wrote on last edited by
    #1

    Good day

    I have a Sentinal drone and working on operating it with RS via MAVROS, but for starters I am working on getting the Gazebo simulator working first on a separate machine running Ubuntu 18.04 LTS and ROS1 Noetic.

    Working through the MAVROS tutorial, I noticed 2 things:

    1. The MAVROS Offboard Control C++ tutorial (https://docs.px4.io/main/en/ros/mavros_offboard_cpp.html) seems incomplete. Unlike the Python tutorial on the next page, the C++ tutorial does not explain the process of adding the launch file and adapting the CMakeLists.txt file to the project to get the simulator to run as depicted.

    2. Something seems amiss when I try working through the tutorial on Sending a Custom Message from MAVROS to PX4 (https://docs.px4.io/main/en/ros/mavros_custom_messages.html). I add the custom lines to both common.xml files in the PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0 and workspace/src/mavlink/message_definitions/v1.0, but I notice that when I build the project, the custom lines in the PX4-Autopilot/src/modules/mavlink/mavlink/message_definitions/v1.0/common.xml are removed, and an error is generated with the mavlink_receiver.cpp (in PX4-Autopilot/src/modules/mavlink) where MAVLINK_MSG_ID_KEY_COMMAND is not declared in this scope.
      Could I be running the tutorial incorrectly?

    1 Reply Last reply
    1
    • T Offline
      T Offline
      TPSetati
      Contributor
      wrote on last edited by
      #2

      Apologies. I actually have the simulator running on ROS1 Melodic.

      1 Reply Last reply
      0

      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

      With your input, this post could be even better 💗

      Register Login
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      ModalAI
      Categories Recent Tags ModalAI.com Docs
      © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups