ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Ros serial

asked 2011-09-14 00:18:48 -0600

Peter Heim gravatar image

updated 2011-09-14 05:40:39 -0600

kwc gravatar image

Hi All I am trying to run the Time and TF tutorial but i get the following error

TimeTF.cpp: In function ‘void loop()’: 
TimeTF:25: error: invalid conversion from ‘char*’ to ‘unsigned char*’
TimeTF:26: error: invalid conversion from ‘char*’ to ‘unsigned char*’ 
TimeTF:32: error: ‘class ros::NodeHandle’ has no member named ‘now’

I'm using ros_electric ubuntu 10.4 32 bit aurdino uno and aurdino 22

the other examples work fine


edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2011-09-14 01:31:48 -0600

adasta gravatar image

Hi Peter,

I think that the problem is that the electric release is actually an older version of rosserial. We broke that API a little while ago and updated the documentation on the website to reflect newest code. Could you try pulling rosserial from the repo and using it?

Just do :

hg clone rosserial

edit flag offensive delete link more


Thanks it works now just a note do a rosmake before copying ros_lib it will save a few headaches
Peter Heim gravatar image Peter Heim  ( 2011-09-15 01:08:29 -0600 )edit

answered 2011-09-18 07:33:14 -0600

bitWolf gravatar image

updated 2011-09-18 07:33:50 -0600

Hey! I re-installed ROS a few days ago, an the rosserial does not come with the arduino tf example anymore! .... when I copy it from the website I get : error: invalid conversion from ‘char’ to ‘unsigned char’ when I run the arduino code. Is there any update on this?

thanks a lot!


edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2011-09-14 00:18:48 -0600

Seen: 541 times

Last updated: Sep 18 '11