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

ROSserial has its own serial packet format, How to write a node that supports RS-232 packet format (basic serial packet) to communicate via USB port?

asked 2013-08-02 16:35:17 -0500

lifelonglearner gravatar image

updated 2014-01-28 17:17:31 -0500

ngrennan gravatar image

Ros serial has its own serial packet format; I think, that does not supports the RS-232 packet format.
This is the reason that on every embedded hardware we need to install a rosserial_client program (a program compiled in hex code for specific target).

I have a robot base already designed using PIC microcontroller and can be controlled by sending command to the USB port means simply sending the serial data in ASCII code on USB port.

Please suggest me to write a node. Or if some one can share a sample node for the same it will be a learning platform.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-08-02 19:21:59 -0500

noonv gravatar image

just look nodes of iRobot or mine

edit flag offensive delete link more

Comments

Please help me a little to understand the header file used, means how we can include these header in a xyz.cpp node, I earlier created a package with dependencies std_msgs rospy roscpp and serial packages ....... but I was unable to include header unix.h specified in serial package . pls help

lifelonglearner gravatar image lifelonglearner  ( 2013-08-02 19:37:36 -0500 )edit

#include "filename.h"

noonv gravatar image noonv  ( 2013-08-02 19:48:48 -0500 )edit

I tried that too, I wish you give more insight. Will be thankful.

lifelonglearner gravatar image lifelonglearner  ( 2013-08-02 20:00:04 -0500 )edit

maybe you should write in the CMake way to your package include directory or where you put this header file

noonv gravatar image noonv  ( 2013-08-02 20:39:03 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-08-02 16:35:17 -0500

Seen: 565 times

Last updated: Aug 02 '13