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

Revision history [back]

There should be plenty of examples on the wiki. Also, it helps if you are familiar with CMake, as you need to adapt the CMakeLists.txt.

Below a list of links that should answer all your questions:

  • http://docs.ros.org/api/catkin/html/howto/format2/index.html
  • http://wiki.ros.org/ROS/Tutorials/BuildingPackages
  • http://wiki.ros.org/catkin/CMakeLists.txt

Passing in command line arguments is done just like for any other C++ program. This also works with rosrun

rosrun my_package my_node my_arg1 ...