rosserial_client example for non-Arduino microcontrollers

asked 2014-03-06 10:47:45 -0500

nicobari gravatar image

Hi, I am looking to integrate a 32 bit microcontroller with ROS via serial communication. Two ways it can be done that I have learned today are: 1) Directly talk to the microcontroller. 2)use rosserial and set up microcontroller as a node.

Is there any tutorial where it is shown how to configure and use rosserial for non arduino microcontrollers?

Thanks, TM

edit retag flag offensive close merge delete

Comments

I also would like to see tutorial on this one. For now we are using http://wjwwood.io/serial/ to communicate with our robots thru xbee.

Artem gravatar image Artem  ( 2014-03-06 11:29:25 -0500 )edit

Hi Artem, Is it possible for you to give me a precise description of how to install the serial package. I followed the guide on the website but I still get serial.h not found error. Right now I am using serial library in python (as it took me less time to set up and run) to read data from the micro-controller directly.

nicobari gravatar image nicobari  ( 2014-03-06 11:42:06 -0500 )edit

The link above is not a ros package, it's a library.We just followed the instructions on the website to install the library. Then, created a project in eclipse, specifying paths to serial library. The use example is here https://github.com/wjwwood/serial/blob/master/examples/serial_example.cc

Artem gravatar image Artem  ( 2014-03-06 12:01:15 -0500 )edit

Thank you very much I will look into that.

nicobari gravatar image nicobari  ( 2014-03-06 16:13:50 -0500 )edit

HI ! Nicobari!! i am very new to ROS.And i met this problem recently. Could you tell me how did you solution this problem? how to configure and use rosserial for non arduino microcontrollers?(i would like to use CORTEX-M like stm32f429) could you please give me some example?

peterlin300 gravatar image peterlin300  ( 2016-01-18 02:49:27 -0500 )edit

@peterlin I ended up not using rosserial and just wrote my own serial send and receive code.

nicobari gravatar image nicobari  ( 2016-03-04 19:06:37 -0500 )edit

thank you very much ! I got it,i also wrote serials interface by using wjwwood_serial.

peterlin300 gravatar image peterlin300  ( 2016-03-07 08:02:07 -0500 )edit