Find path to ROS executable

asked 2017-03-22 11:32:11 -0600

kmhallen gravatar image

Is there a command to find the path to a ROS executable without running it?

I looked for roswhich similar to cd/roscd and cp/roscp

I found that rosrun takes a non-trivial amount of time to find an executable. When running a command often, I plan to cache the path to executable and not use rosrun.
Single binary workspace: 30ms
Single source workspace: 110ms

Test setup:

time rosrun some_package empty_file
time /path/to/ros_workspace/src/some_package/empty_file
edit retag flag offensive close merge delete


fvd gravatar image fvd  ( 2018-09-03 22:08:56 -0600 )edit