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
68 stars 123 forks source link

Release/1.13 build failing #24

Closed davidemorazzo closed 1 year ago

davidemorazzo commented 1 year ago

I am trying to build the code in the release/1.13 branch and it is failing. The output error from colcon is

--- stderr: px4_msgs                             
In file included from /home/judocero/Scrivania/uav_config/gz_groundtruth/build/px4_msgs/rosidl_generator_c/px4_msgs/msg/detail/vehicle_command__functions.h:19,
                 from /home/judocero/Scrivania/uav_config/gz_groundtruth/build/px4_msgs/rosidl_generator_c/px4_msgs/msg/detail/vehicle_command__functions.c:4:
/home/judocero/Scrivania/uav_config/gz_groundtruth/build/px4_msgs/rosidl_generator_c/px4_msgs/msg/detail/vehicle_command__struct.h:365:3: error: expected identifier or ‘(’ before ‘/’ token
  365 |  */
      |   ^
gmake[2]: *** [CMakeFiles/px4_msgs__rosidl_generator_c.dir/build.make:6077: CMakeFiles/px4_msgs__rosidl_generator_c.dir/rosidl_generator_c/px4_msgs/msg/detail/vehicle_command__functions.c.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[1]: *** [CMakeFiles/Makefile2:213: CMakeFiles/px4_msgs__rosidl_generator_c.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< px4_msgs [6.48s, exited with code 2]

I fixed this by removing the extra */ that was giving the error. There are a couple present that make the build fail

beniaminopozzan commented 1 year ago

You are trying to build release/1.13 on ROS 2 Humble or Rolling, right? PX4 version 1.13 (and therefore px4_msgs and px4_ros_com) supports up to ROS 2 Foxy

davidemorazzo commented 1 year ago

Yes I am trying with ROS2 Humble. How can I use then RTPS on Humble?

beniaminopozzan commented 1 year ago

To use v1.13 on Humble you need to