Robotics StackExchange | Archived questions

Error: ImportError: No module named rosserial_msgs.msg".

Hi everyone,I have a problem running

rosrun rosserial_python serial_node.py _port:=/dev/ttyACM0 _baud:=115200

I installed rosserial package from source because i can't unlocate ros-melodic-rosserial-arduino on raspberry 4.When i running it it shows error:

File "/home/pi/catkin_ws/install/lib/python2.7/dist-packages/rosserial_python/SerialClient.py", line 53, in <module>
    from rosserial_msgs.msg import TopicInfo, Log
ImportError: No module named rosserial_msgs.msg

I tried many ways but nothing worked, please help me,thanks everyone.

Asked by dungton on 2021-08-16 21:46:55 UTC

Comments

Answers

If you can not install the apt package ros-melodic-rosserial-msgs, then you have to build the ros package from source. The wlki page is: https://wiki.ros.org/rosserial_msgs

Asked by Mike Scheutzow on 2022-05-02 16:50:05 UTC

Comments