ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ImportError: cannot import name 'Log' from 'rosgraph_msgs.msg'

asked 2023-03-18 01:33:40 -0500

mirakim gravatar image

Hello,

I am running docker container with ros2 galactic and ros1 noetic, and whenever I try to run the launch file the error appears saying

image description

The error have not appeared before and I don't know why this error appears suddenly.

I always source the ROS1 noetic then ROS2 galactic while using ros1_bridge to communicate with other container whose version is ROS1 melodic.

Thank you!

edit retag flag offensive close merge delete

Comments

In the future, please do not use screenshots of text. Instead, copy/paste the text into your description, and format it with the 101010 button. Thank you.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2023-03-18 09:10:38 -0500 )edit

@Mike Scheutzow Thank you for let me know! I will keep that in mind!

mirakim gravatar image mirakim  ( 2023-03-21 20:57:57 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-03-18 03:12:22 -0500

mirakim gravatar image

I find the answer. As described in the error message, ROS2 does not use rospy and should replace it to rclpy.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-03-18 01:33:40 -0500

Seen: 2,093 times

Last updated: Mar 18 '23