Compile examples undert FAST_DDS

asked 2021-12-07 01:09:36 -0500

Rongcai gravatar image

updated 2021-12-07 12:28:33 -0500

osilva gravatar image

Hello all,

I tried to create the examples under src/eProsima/Fast-DDS as follow with the build command as below: colcon build --symlink --packages-select=fastrtps The compile result is success but the executable file HelloWorldExample isn't created.

Just wonder why and how to build those examples for a testing.

BTW, I am using the latest code of galactic which is cloned on 5,Dec.,2021.

Thanks a lot for any clues.

Rongcai

Starting >>> rmw_implementation
Finished <<< tf2 [0.76s]                                                                     
Starting >>> tf2_msgs
--- stderr: rmw_implementation                                                            
CMake Error at /home/super/ros2_galactic_src/install/rmw_implementation_cmake/share/rmw_implementation_cmake/cmake/get_default_rmw_implementation.cmake:60 (message):
  Could not find ROS middleware implementation 'rmw_cyclonedds_cpp'.  Choose
  one of the following: rmw_fastrtps_cpp, rmw_fastrtps_dynamic_cpp
Call Stack (most recent call first):
  CMakeLists.txt:22 (get_default_rmw_implementation)


make: *** [Makefile:416: cmake_check_build_system] Error 1
---
Failed   <<< rmw_implementation [0.66s, exited with code 2]
Aborted  <<< tf2_msgs [0.32s]

Summary: 145 packages finished [55.6s]
  1 package failed: rmw_implementation
  1 package aborted: tf2_msgs
  22 packages had stderr output: ament_copyright ament_cppcheck ament_cpplint ament_flake8 ament_index_python ament_lint ament_lint_cmake ament_mypy ament_package ament_pep257 ament_pycodestyle ament_uncrustify ament_xmllint domain_coordinator launch launch_testing launch_xml osrf_pycommon rmw_implementation rosidl_cli rpyutils tracetools_trace
  184 packages not processed
edit retag flag offensive close merge delete

Comments

Could you please share the link of the totorial that you are following

osilva gravatar image osilva  ( 2021-12-09 02:54:16 -0500 )edit

I followed below tutorial: https://docs.ros.org/en/galactic/Inst...

Rongcai gravatar image Rongcai  ( 2021-12-09 08:02:10 -0500 )edit