Ask Your Question

ros2 roscd feature

asked 2017-12-11 09:51:51 -0500

Vincent R gravatar image

I do not found an equivalent to roscd in ros2. Is it implemented ? Does ament support that feature ?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2017-12-21 02:38:55 -0500

Dirk Thomas gravatar image

While a verb like cd can easily be contributed to the ros2cli tools the question is what should the semantic of that command be? In ROS 1 when using the devel space it brought you to the source folder of a package. In ROS 2 there is no concept of a devel space and after installing a package there is no correlation to the source space anymore. So the only possible location to switch to would be the install prefix of the package or the location where the package manifest is (in the subfolder share/<pkgname> in the install space). I am just not sure how useful that would be...

edit flag offensive delete link more

answered 2017-12-20 20:15:56 -0500

tfoote gravatar image

It has not been implemented yet. It is likely that we will implement a command like that since many people find it useful. The underlying capabilities are definitely available from ament. (Try src/ament/ament_tools/scripts/ list_packages ./src)

A contribution of a verb cd for the ros2 command would be appreciated. This is probably an easy way to get involved if anyone is interested.

edit flag offensive delete link more


I will see what I can do and if it makes sense to do it.

Vincent R gravatar imageVincent R ( 2018-01-10 09:10:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2017-12-11 09:51:51 -0500

Seen: 258 times

Last updated: Dec 21 '17