ROS2 sample build error

Hi,

I’ve followed a manual regarding of ROS2 bridge (using newly released Isaac SIM 2021.01):

https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/ext_omni_isaac_ros_bridge.html#ros2-bridge

However. following error occurred when compile the ‘issac_ros2_message’ package:

fatal error: std_msgs/msg/detail/header__struct.h: No such file or directory
#include “std_msgs/msg/detail/header__struct.h”

Any help would be appreciated.

Regards,
James

1 Like

Hi @kyungho.yoo can you try adding std_msgs to the following section in:

ros2_samples/isaac_ros2_messages/src/CMakeLists.txt

rosidl_generate_interfaces(${PROJECT_NAME}
  "msg/IsaacBoundingBox.msg"
  "msg/IsaacBoundingBoxArray.msg"
  "msg/IsaacJSONState.msg"
  "msg/BoundingBox3D.msg"
  "msg/BoundingBox3DArray.msg"
  "srv/IsaacPose.srv"
  DEPENDENCIES builtin_interfaces std_msgs
 )

This is the output I get even without that change but it might resolve your issue

ros2_samples/isaac_ros2_messages$ colcon build
Starting >>> isaac_ros2_messages
Finished <<< isaac_ros2_messages [6.20s]                       

Summary: 1 package finished [6.31s]
2 Likes