[ros-users] Serial Port Problems

Titus Appel titus.appel at gmail.com
Wed Sep 15 15:45:32 UTC 2010


Hello,

I'm using ROS with Eclipse and I'm trying to get the serial port to work so
I can send commands to a robot platform.  I'm new to C++ so that might be a
problem.  The code compiles ok, but the problem is when I write to the
serial port what I wanted to write doesn't get written.  However when I set
a breakpoint at this line:

cnt = write(port,&this->packet[byteNum],1); in src/packet.cpp

and run each time it stops, the serial port writes the correct data in the
buffer.
My code is posted on: http://code.google.com/p/txt-ros/source/browse/

Any help would be appreciated.
Thanks,
Titus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osuosl.org/pipermail/ros-users/attachments/20100915/85739a9e/attachment-0002.html>


More information about the ros-users mailing list