luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
239 stars 173 forks source link

[BUG] cannot import name 'Log' from 'rosgraph_msgs.msg' #368

Closed whiteagle3k closed 9 months ago

whiteagle3k commented 10 months ago

Check if issue already exists Checked.

Describe the bug I am using isaac-ros , which is based on ROS2 humble in a docker container. depthai-ros compiled from sources all good, but trying to run any node (either from depthai_ros_driver or depthai_filters) generates this error: cannot import name 'Log' from 'rosgraph_msgs.msg'

Minimal Reproducible Example ros2 launch depthai_filters example_det2d_overlay.launch.py

Expected behavior I'd expect nodes to run. On galactic version everything runs ok.

Attach system log

admin@orin01:/workspaces/isaac_ros-dev$ ros2 launch depthai_filters example_det2d_overlay.launch.py [INFO] [launch]: All log files can be found below /home/admin/.ros/log/2023-08-13-17-11-54-620482-orin01-74748 [INFO] [launch]: Default logging verbosity is set to INFO [ERROR] [launch]: Caught exception in launch (see debug for traceback): executed command failed. Command: xacro /workspaces/isaac_ros-dev/install/depthai_descriptions/share/depthai_descriptions/urdf/depthai_descr.urdf.xacro camera_name:=oak camera_model:=OAK-D base_frame:=oak parent_frame:=oak-d-base-frame cam_pos_x:=0.0 cam_pos_y:=0.0 cam_pos_z:=0.0 cam_roll:=0.0 cam_pitch:=0.0 cam_yaw:=0.0 Captured stderr output: error: substitution args not supported: cannot import name 'Log' from 'rosgraph_msgs.msg' (/opt/ros/humble/install/lib/python3.8/site-packages/rosgraph_msgs/msg/init.py) when processing file: /workspaces/isaac_ros-dev/install/depthai_descriptions/share/depthai_descriptions/urdf/depthai_descr.urdf.xacro

Serafadam commented 10 months ago

Hi, at first glance this issue seems to be related to xacro package, could you check if everything is installed properly? To do that, run rosdep install --from-paths src --ignore-src -y in your workspace directory. Other information that could be useful:

Serafadam commented 9 months ago

Closing due to inactivity, please reopen if there are still questions.