Ask Your Question
0

How to run same pakcage twice at the same time?

asked 2014-04-11 03:55:06 -0600

fcl21 gravatar image

Hi im currently running the sicktoolbox_wrapper package for the LMS200 for scanning purpose I have two LMS200 and would like to use them at the same time I know the connecting port which are ttyUSB0 and ttyUSB1

lets say im running in port ttyUSB0 when i execute the command of

rosparam set /sicklms/port /dev/ttyUSB1 rosrun sicktoolbox_wrapper sicklms

the old one is killed because of

[new node registered with the same name]

is there any possible way to change the node name before executing it? or is it possible to copy and paste then reinstall the same package with a different and publishing a different node name?

I am trying rosparam set but have not found a clue yet plx help

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-04-11 04:00:45 -0600

See this answer, it shows how to set the node name both from the command line and from launch files.

edit flag offensive delete link more

Comments

let me make it clear if i execute rosrun sicktoolbox_wrapper sicklms __name:=sicklms it is executable but doesnt change anything if i execute this rosrun sicktoolbox_wrapper sicklms __name:=sicklms2 i have [ERROR] [1397226096.240203952]: Initialize failed! are you using the correct device path? :/

fcl21 gravatar imagefcl21 ( 2014-04-11 04:16:16 -0600 )edit

i just found that if i do rosrun sicktoolbox_wrapper sicklms __name:=sicklms2 it says attempting to open devic @ /dev/lms200 which is a path that i never told the computer to do

fcl21 gravatar imagefcl21 ( 2014-04-11 05:14:11 -0600 )edit

This is probably the default value. You will need to set the parameter `rosparam set /sicklms2/port /dev/ttyUSB1` when you run `rosrun sicktoolbox_wrapper sicklms __name:=sicklms2`. It is probably best if you create a launch file for your nodes.

demmeln gravatar imagedemmeln ( 2014-04-11 12:51:44 -0600 )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

Stats

Asked: 2014-04-11 03:55:06 -0600

Seen: 670 times

Last updated: Apr 11 '14