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

My question was more related about why the folder can be called "PX4-Autopilot" and y should be able to call the directory with "roscd px4".

roscd takes package names as input.

Not directory names.

That's why you can roscd px4 even if the directory you end up in has a different name.

See also wiki/rosbash: roscd:

roscd allows you to change directories using a package name, stack name, or special location.

Usage:

roscd <package-or-stack>[/subdir]

For example:

roscd roscpp

You can continue to use a relative path after the package name to go further into the package:

roscd roscpp/include/ros