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

Afaik, there is no "ROS command" to create a new file.

I also believe that would not be very useful:

  • it would increase maintenance for ROS (core) maintainers
  • managing files is a task for the OS, which has plenty of tools/utilities to do that
  • using existing tools instead of introducing something new allows users to reuse their experience and doesn't invalidate their expectations around such tools

A quick way to create a new file in an arbitrary package (in your workspace of course) could be something like:

rospd <package_name>
touch my_new_file
rospd

To then edit that file:

rosed <package_name> my_new_file

See also the rosbash documentation.