ROS2 build error gazebo_ros_pkgs
I am getting a build error gazebo_ros_pkgs from source for ROS2 Dashing on a (ubuntu 18.04) Jetson Nano hardware.
I build from source Gazebo 9.9.0 and I followed this link to build from source gazebo_ros_pkgs http://gazebosim.org/tutorials?tut=ro...
I am getting the following error below. Appreciate any help !
/home/bot/ws/src/ros-simulation/gazebo_ros_pkgs/gazebo_ros/src/node.cpp: In static member function ‘static gazebo_ros::Node::SharedPtr gazebo_ros::Node::Get(sdf::ElementPtr)’:
/home/bot/ws/src/ros-simulation/gazebo_ros_pkgs/gazebo_ros/src/node.cpp:76:25: error: ‘RCL_ROS_ARGS_FLAG’ was not declared in this scope
arguments.push_back(RCL_ROS_ARGS_FLAG);
^~~~~~~~~~~~~~~~~
/home/bot/ws/src/ros-simulation/gazebo_ros_pkgs/gazebo_ros/src/node.cpp:79:27: error: ‘RCL_REMAP_FLAG’ was not declared in this scope
arguments.push_back(RCL_REMAP_FLAG);
^~~~~~~~~~~~~~
/home/bot/ws/src/ros-simulation/gazebo_ros_pkgs/gazebo_ros/src/node.cpp:79:27: note: suggested alternative: ‘RCL_RET_OK’
arguments.push_back(RCL_REMAP_FLAG);
^~~~~~~~~~~~~~
RCL_RET_OK
make[2]: *** [CMakeFiles/gazebo_ros_node.dir/src/node.cpp.o] Error 1
make[1]: *** [CMakeFiles/gazebo_ros_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2
---
Failed <<< gazebo_ros [ Exited with code 2 ]