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

Ros serial

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

Peter Heim gravatar image

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

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 -0500

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 -0500 )edit

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

bitWolf gravatar image

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

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

Question Tools


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

Seen: 583 times

Last updated: Sep 18 '11