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

Revision history [back]

click to hide/show revision 1
initial version

When porting code to ROS you can try to port the software fully or to just write a ROS interface that translates ROS request and calls some interface functions in the software.

When I port code to ROS, what I usually do is:

  1. Create a ROS package using roscreate-pkg.
  2. Copy the source code to the package and make it compile (without any ROS interfacing). This should result in the same program as before.
  3. Add ros stuff, i.e. ros::init, spinning, subscribers/publishers, maybe switch in some ROS features, i.e. using ros::Time, ROS_INFO, etc.