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

How do ROS nodes in microcontrollers work?

asked 2020-03-04 00:16:53 -0500

didi1311 gravatar image

This is a general question.

As far as I know, when a microcontroller is powered, it automatically runs its main program. So when a ROS node is implemented in a microcontroller, e.g. arduino, it runs the node even when it is not connected to any ROS master/connected to a PC (at least that's how I understand it).

My question is how does the ROS master discovery mechanism work on the microcontroller? Or in which file of the rosserial library is it implemented?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2020-03-09 01:18:03 -0500

vaspo gravatar image

rosserial is a protocol for wrapping standard ROS serialized messages and multiplexing multiple topics and services over a character device such as a serial port or network socket. It has Client libraries that allow users to easily get ROS nodes up and running on various systems. And it also has ROS-side Interfaces allows you setup a node on the host machine to bridge the connection from the serial protocol to the more general ROS network. It's not ROS master discovery mechanism works between the host machine and the microcontroller. When you write your own project on microcontroller, you will depend on rosserial 's client libraries. If you just work on a host machine with a non-ROS microcontroller, you have to write a package which is able to connect with the device.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2020-03-04 00:16:53 -0500

Seen: 348 times

Last updated: Mar 09 '20