micro-ROS / rmw_microxrcedds

RMW implementation using Micro XRCE-DDS middleware.
Apache License 2.0
35 stars 26 forks source link

Build fail on micro-ROS Client for NuttX (error: unknown type name 'SampleIdentity') #29

Closed jfm92 closed 3 years ago

jfm92 commented 4 years ago

From the commit (b5eea0997a3884263d066f9413c9c049ce9334bb)of rmw_microxrcedds the build process fails with the micro-ROS build system.

It retuns the next error:

/uros_ws/firmware/mcu_ws/uros/rmw_microxrcedds/rmw_microxrcedds_c/src/./types.h:81:3: error: unknown type name 'SampleIdentity'
   SampleIdentity sample_id[RMW_UXRCE_MAX_HISTORY];
   ^~~~~~~~~~~~~~
make[6]: *** [CMakeFiles/rmw_microxrcedds.dir/src/rmw_publisher.c.obj] Error 1
make[5]: *** [CMakeFiles/rmw_microxrcedds.dir/all] Error 2
make[4]: *** [all] Error 2
---
Failed   <<< rmw_microxrcedds   [ Exited with code 2 ]

Summary: 17 packages finished [8.51s]
  1 package failed: rmw_microxrcedds
  3 packages had stderr output: libyaml_vendor rcutils rmw_microxrcedds
  31 packages not processed
Makefile:34: recipe for target 'colcon_compile' failed
make[3]: *** [colcon_compile] Error 2
make[3]: se sale del directorio '/home/juan/demo_ingo/prueba_bug/uros_ws/firmware/apps/uros'
Makefile:106: recipe for target 'uros_context' failed
make[2]: *** [uros_context] Error 2
make[2]: se sale del directorio '/home/juan/demo_ingo/prueba_bug/uros_ws/firmware/apps'
Makefile:179: recipe for target 'context_serialize' failed
make[1]: *** [context_serialize] Error 2
make[1]: se sale del directorio '/home/juan/demo_ingo/prueba_bug/uros_ws/firmware/apps'
tools/Makefile.unix:345: recipe for target 'context' failed
make: *** [context] Error 2

I'm using the next repos:

iluetkeb commented 4 years ago

Which command did you use to perform the build?

jfm92 commented 4 years ago

@iluetkeb, I've used: ros2 run micro_ros_setup build_firmware.sh. I've updated the specific commit of each repo. The issue only appears on that commit and afterward, with (8ce9eba38c945e62bdf1c93cd449f2af9ac80fbb) works fine.

iluetkeb commented 4 years ago

As far as I can tell, the SampleIdentity type is not defined in micro-xrce-dds-client. Where is it defined?

iluetkeb commented 4 years ago

Is this still an issue?

pablogs9 commented 4 years ago

SampleIdentity is a definition used by Micro-XRCE-DDS-Client implementation of services. Services are included in dashing version in this commit: https://github.com/eProsima/Micro-XRCE-DDS-Client/commit/fd52a2505f5efc0ce7071a7780035c0fc82076bf

Please @jfm92 close if resolved.

pablogs9 commented 3 years ago

Closing bc outdated