Robotics StackExchange | Archived questions

how to communicate with 32- bit controller and ROs running on PC over USB via UART

Hello,

I am a newbie to the ROS, want to use the ROS for an indoor navigation robot which goes as below:

indoor navigation robot, which has sensors like stereo camera’s, ultra sonic sensors, kinect, encoders for the motors etc. which are all connected to a 32-bit micro controller (Atmel), all the commands for the actuators will be given by this controller, and the data from all the sensors are read by the controller (using SPI, UART I2C etc.).

I want to send the Sensor dat to the PC (running with ROS on Linux) fixed on to the Robot and use the libraries for navigation, mapping etc. available in ROS.

But my first question is How can I send the data from the micro controller to the PC, I have Checked over the internet, The option was to use the “roserial” library.

I can use the available UART port on my micro controller, but How can I transmit this data to PC which will be connected via a USB.? How can I open a USB port on the PC and send data on that port, which should be received by the micro controller on the UART..?

Many Thanks in Advance.

Asked by sumanth on 2014-05-20 02:22:47 UTC

Comments

Hey! Did you figure anything out?

Asked by keshav_sarraf on 2014-06-30 06:27:42 UTC

I have similar problem. My goal is to sent data from my PC (ROS) to a micro controller using USB port and UART communication. @sumanth did you find anything helpful?

Asked by Spyros on 2018-10-10 06:52:18 UTC

Answers