Ask Your Question
0

Unable to use rosrun

asked 2020-02-03 22:23:57 -0500

shashi gravatar image

`

$ rosrun turtlesim
Usage: rosrun [--prefix cmd] [--debug] PACKAGE EXECUTABLE [ARGS] 
rosrun will locate PACKAGE and try to find
  an executable named EXECUTABLE in the PACKAGE tree.
  If it finds it, it will run it with ARGS.

I was also unable to use rosrun for locating executable in another package. Any suggestion on what could be the reason for this?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-02-03 23:20:10 -0500

updated 2020-02-04 04:28:16 -0500

gvdhoorn gravatar image

Hi,

Welcome to the community!

Your issue is that you've not included a node to run. The rosrun syntax is:

rosrun <package name> <executable name>

So you've gotten the package name correct with turtlesim, but you're missing the actual node itself you're trying to run. For this demo, what you're looking for is:

rosrun turtlesim turtlesim_node

Happy ROSing

edit flag offensive delete link more

Comments

1

@stevemacenski: it's actually rosrun, not roslaunch ;)

gvdhoorn gravatar image gvdhoorn  ( 2020-02-04 04:28:29 -0500 )edit

Thanks for your answer.

I see in a video lecture that rosrun work as listing the executables in the package when run without node name. However, even after providing package and executable name, I am getting the error that package is not found.

shashi gravatar image shashi  ( 2020-02-06 10:08:13 -0500 )edit

If you have just the rosrun and turtlesim, and you tab complete it should give you the list, but that's not the same thing as running.

I don't know what video lecture you're referring to.

Are you sure you've actually built this package, installed it, or sourced the setup.sh file to get it in your environment paths?

stevemacenski gravatar image stevemacenski  ( 2020-02-06 12:44:48 -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

Stats

Asked: 2020-02-03 22:23:57 -0500

Seen: 72 times

Last updated: Feb 06