PX4 / px4_msgs

ROS/ROS2 messages that match the uORB messages counterparts on the PX4 Firmware
http://px4.io
BSD 3-Clause "New" or "Revised" License
71 stars 132 forks source link

Subscribing and Publishing to custom uORB topics with ROS2 #8

Closed karishmapatnaik closed 3 years ago

karishmapatnaik commented 3 years ago

Hi, I created a custom uORB topic in the px4 firmware and am trying to subscribe to this topic via ROS2. I changed the px4_msgs folder to include the new msg. However, the cmakelists doesn't automatically generate the required hpp file, can someone point me in the right direction? I created all the necessary files for publishing and serialization in the px4_ros_com package under src -> micrortps_agent. I tried to follow the similar steps to creation of a listener and included the ".hpp file for the script and it throws a fatal error saying there i sno such file or directory.

TSC21 commented 3 years ago

Mostly a duplicate of https://github.com/PX4/px4_msgs/issues/7. Please follow the answer to this there. Closing