rosrun rosserial_python serial_node.py
I m use ros melodic , i try communication between my computer and Arduino , i get this error ;
*rosrun rosserial_python serial_node.py /dev/ttyUSB0*
[INFO] [1649419916.072500]: ROS Serial Python Node
[INFO] [1649419916.117295]: Connecting to /dev/ttyUSB0 at 57600 baud
[WARN] [1649419916.123987]: Unexpected Error: <type 'exceptions.nameerror'="">
Traceback (most recent call last): File "/home/petka/catkin_ws/src/rosserial/rosserial_python/nodes/serial_node.py", line 107, in <module> client.port.close()
NameError: name 'client' is not defined
Where did you get the rosserial ros package from? When you build from source, you are responsible for installing the needed python pkgs.
I get from http://wiki.ros.org/rosserial_arduino... , I didn't do any installation, I have no idea how to install python package.Can you help about this issue?