Ask Your Question
0

Run a node

asked 2012-07-16 01:07:28 -0500

Astronaut gravatar image

updated 2012-07-16 01:18:33 -0500

dornhege gravatar image

Hello

I have installed and compiled secessfully the follwing packages : amcl_listener ,pow_analyzer, cereal_port, gps_umd and scan_tools. I have only one launch file and all works perfect. But would like to run the each node. So I need a launch file for each package to run the package node? for example how to run the scan tools node?Any help? And i tried to edit some lauch file code and was not able to do that, whats wrong?

Thanks

edit retag flag offensive close merge delete

Comments

You mean the correct package parameters or?And remappings of what?

Astronaut gravatar image Astronaut  ( 2012-07-16 01:23:19 -0500 )edit

The node's parameters and topic remappings. I'd advise to read some basic tutorials that explain this better.

dornhege gravatar image dornhege  ( 2012-07-16 01:27:52 -0500 )edit

So better to run a launch file for very node yes?

Astronaut gravatar image Astronaut  ( 2012-07-16 01:28:07 -0500 )edit

It depends. If you just want to run a node and you don't need to change much, rosrun is absolutely fine. roslaunch is needed for a single node if there are parameters to change or topic remappings to make that you don't want to give manually all the time.

dornhege gravatar image dornhege  ( 2012-07-16 01:29:37 -0500 )edit

If you want to run something singly that warrants a launch file you can also make single launch files out of the one you use.

dornhege gravatar image dornhege  ( 2012-07-16 01:31:31 -0500 )edit

ok. So if I want run a luanch file than have to create the package and everything , yes? I mean I have installed and comiled the packages but have only one lanch file for all.

Astronaut gravatar image Astronaut  ( 2012-07-16 01:39:32 -0500 )edit

You can make a launch file for a single node or just use rosrun if you don't need to set parameters or remap topics. If you do, the advantage of the launch file is that you don't have to give all those settings on the cmd line.

dornhege gravatar image dornhege  ( 2012-07-16 01:55:03 -0500 )edit

Ok. So the basic tutorials explain hot to make tne lauch file yes? The coomand for making a lauch file also can be find there?

Astronaut gravatar image Astronaut  ( 2012-07-16 02:07:13 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2012-07-16 01:22:47 -0500

prince gravatar image

It is possible to run individual node from command line using following command:

rosrun <package-name> <binary-name-in-package-bin>

http://ros.org/wiki/rosrun

It is advisable to use launch file as it is easier to setup various parameters. Launch files avoids a lot of overhead of typing same commands on command line.

edit flag offensive delete link more
1

answered 2012-07-16 01:18:05 -0500

dornhege gravatar image

You can just use rosrun to run single nodes. You only need to make sure that the correct parameters are set on the server and use remappings if needed.

The basic ROS tutorials explain this.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-07-16 01:07:28 -0500

Seen: 550 times

Last updated: Jul 16 '12