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

unknown error handler name 'rosmsg'

asked 2020-08-28 15:11:02 -0600

Saurabh Rahatekar gravatar image

updated 2020-08-29 04:51:20 -0600

gvdhoorn gravatar image

I m trying the rosserial tutorials from the official site in ros melodic. While running the Serial_node.py I m getting this error :

[ERROR] [1598645013.553322]: Creation of publisher failed: unknown error handler name 'rosmsg'.

I m not even able to run basic serial examples. Please help.

The Serial_node.log:

[rospy.client][INFO] 2020-08-28 19:42:58,258: init_node, name[/serial_node], pid[13872]
[xmlrpc][INFO] 2020-08-28 19:42:58,258: XML-RPC server binding to 0.0.0.0:0
[xmlrpc][INFO] 2020-08-28 19:42:58,259: Started XML-RPC server [http://saurabh-Notebook:38231/]
[rospy.init][INFO] 2020-08-28 19:42:58,259: ROS Slave URI: [http://saurabh-Notebook:38231/]
[rospy.impl.masterslave][INFO] 2020-08-28 19:42:58,259: _ready: http://saurabh-Notebook:38231/
[xmlrpc][INFO] 2020-08-28 19:42:58,259: xml rpc node: starting XML-RPC server
[rospy.registration][INFO] 2020-08-28 19:42:58,260: Registering with master node http://localhost:11311
[rospy.init][INFO] 2020-08-28 19:42:58,359: registered with master
[rospy.rosout][INFO] 2020-08-28 19:42:58,372: initializing /rosout core topic
[rospy.rosout][INFO] 2020-08-28 19:42:58,376: connected to core topic /rosout
[rospy.simtime][INFO] 2020-08-28 19:42:58,379: /use_sim_time is not set, will not subscribe to simulated time [/clock] topic
[rosout][INFO] 2020-08-28 19:42:58,387: ROS Serial Python Node
[rosout][INFO] 2020-08-28 19:42:58,406: Connecting to /dev/ttyUSB0 at 115200 baud
[rosout][ERROR] 2020-08-28 19:42:58,413: Error opening serial: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
[rospy.internal][INFO] 2020-08-28 19:42:58,597: topic[/rosout] adding connection to [/rosout], count 0
[rosout][ERROR] 2020-08-28 19:43:01,420: Error opening serial: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
[rosout][ERROR] 2020-08-28 19:43:04,428: Error opening serial: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
[rosout][ERROR] 2020-08-28 19:43:07,437: Error opening serial: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
[rosout][ERROR] 2020-08-28 19:43:10,443: Error opening serial: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
[rosout][ERROR] 2020-08-28 19:43:13,451: Error opening serial: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
[rosout][ERROR] 2020-08-28 19:43:16,460: Error opening serial: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'
[rospy.core][INFO] 2020-08-28 19:43:16,476: signal_shutdown [signal-2]
[rospy.internal][INFO] 2020-08-28 19:43:16,489: topic[/rosout] removing connection to /rosout
[rospy.impl.masterslave][INFO] 2020-08-28 19:43:16,490: signal-2
[rospy.core][INFO] 2020-08-28 19:43:16,601: signal_shutdown [atexit]
[rospy.client][INFO] 2020-08-28 19:44:02,719: init_node, name[/serial_node], pid[13906]
[xmlrpc][INFO] 2020-08-28 19:44:02,720: XML-RPC server binding to 0.0.0.0:0
[xmlrpc][INFO] 2020-08-28 19:44:02,720: Started XML-RPC server [http://saurabh-Notebook:36623/]
[rospy.init ...
(more)
edit retag flag offensive close merge delete

Comments

would you send us the full error log?

achmad_fathoni gravatar image achmad_fathoni  ( 2020-08-29 00:14:00 -0600 )edit
1

had the exact same thing, running apt-get update and then apt-get upgrade seems to have solved it, have you tried it?

swanepoeljan gravatar image swanepoeljan  ( 2020-08-29 08:49:38 -0600 )edit

seems like there is no permissions to access to '/dev/ttyUSB0'

Maybe you should enable permissions (https://askubuntu.com/questions/13323...)

Also i found an unresolved question in a situation like yours here (https://answers.ros.org/question/3601...) maybe you could ask if he solved the problem

Solrac3589 gravatar image Solrac3589  ( 2020-08-31 01:39:00 -0600 )edit

Hey thanks for answering. But I tried updating and upgrading. It did not solve my problem. I already have permission access to the USB0. My only problem is this error

Saurabh Rahatekar gravatar image Saurabh Rahatekar  ( 2020-08-31 01:45:25 -0600 )edit

its strange then the "permission denied" issue

Solrac3589 gravatar image Solrac3589  ( 2020-08-31 01:50:58 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
5

answered 2020-08-31 08:03:02 -0600

reinzor gravatar image

updated 2020-08-31 08:06:35 -0600

unknown error handler name 'rosmsg'

This was a bug in genpy; it is fixed in 0.6.13.

Try upgrading:

sudo apt-get update && sudo apt-get upgrade


Error opening serial: [Errno 13] could not open port /dev/ttyUSB0: [Errno 13] Permission denied: '/dev/ttyUSB0'

Try adding yourself to the dialout group:

sudo adduser `whoami` dialout

and reboot (or reload permissions).

edit flag offensive delete link more

Comments

Thanks so much!

mhallak gravatar image mhallak  ( 2021-02-09 09:13:33 -0600 )edit

It seems that the same problem occurs in 0.6.15, downgrading genpy built from source to 0.6.14 helps.

Maxim Rovbo gravatar image Maxim Rovbo  ( 2021-04-28 04:55:54 -0600 )edit

@Maxim Rovbo: have you reported this?

A comment on ROS Answers has very limited visibility.

gvdhoorn gravatar image gvdhoorn  ( 2021-04-28 05:15:00 -0600 )edit

I just ran into the problem and even just using the latest genpy source (git clone into my workspace) worked. It was commit acf8eb7e8cd464af6650619961d8ff3c4f4a6ac8 which should be 0.6.15 as far as I understand .. so maybe the root cause is something else? Anyway Im happy with the fix for now.

blubbi321 gravatar image blubbi321  ( 2021-04-28 11:29:05 -0600 )edit

Reporting issues is typically more to help others, not so much for yourself.

And work-arounds are not scalable.

gvdhoorn gravatar image gvdhoorn  ( 2021-04-28 11:32:46 -0600 )edit
1

Added an issue

Maxim Rovbo gravatar image Maxim Rovbo  ( 2021-04-28 14:11:14 -0600 )edit

Might also have to blow out the build and devel folders and rebuild the workspace.

surv gravatar image surv  ( 2021-05-12 13:56:46 -0600 )edit
0

answered 2020-11-03 12:35:44 -0600

Abhinavgandhi09 gravatar image

If you don't want to upgrade all packages simple use

$ sudo apt-get install ros-<distro>-genpy

This will install the latest version

edit flag offensive delete link more

Comments

Thanks, you saved me!

mhallak gravatar image mhallak  ( 2021-02-09 09:13:57 -0600 )edit
-1

answered 2020-08-31 02:30:10 -0600

Shoaib gravatar image

updated 2020-08-31 02:58:50 -0600

$ sudo apt-get update

$ sudo apt-get upgrade

The above works for me as well. Thanks

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-08-28 15:11:02 -0600

Seen: 4,729 times

Last updated: Nov 03 '20