ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Calling nodelet manager service from console

asked 2012-10-24 05:30:42 -0500

JBuesch gravatar image

updated 2014-01-28 17:14:02 -0500

ngrennan gravatar image

Hey.

My question concerns how to use the nodelet manager service properly. Consider a nodelet manager has been started and is running. It's rosservice to load a nodelet (/manager/load_nodelet) is also available.

What do I have to call now to, let's say, start the openni_camera nodelet (openni_camera/driver) via this service.

rosservice call /manager/load_nodelet "/nodelet_name" "openni_camera/driver" [] [] [] "nodelet_name1"

tells my 'success' and /nodelet_name does appear under /manager/list topic for a couple of seconds, but vanishes after that with no debug message what so ever.

I am getting pretty frustrated over this, since the API has actually no documentation at all. (If you know different, PLEASE let me know about!)

Any suggestions? Would be deeply appreciated. Thanks.

Jasper

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-10-28 23:21:21 -0500

JBuesch gravatar image

I am going now with another approach and just wanted to close this question. Now I am using app_manager to run the nodelet launch file remotely. This actually works quiet smooth and exactly as I need it. Cheers!

edit flag offensive delete link more
1

answered 2012-10-24 06:16:40 -0500

Lorenz gravatar image

I wouldn't call the service manually from command line. That's what the nodelet script in the nodelet package is for. Have a look at the wiki page or execute

rosrun nodelet nodelet

for some information on using it.

If you really need/want to call the service directly from the command line, have a look at the source code of the nodelet binary (nodelet/src/nodelet.cpp).

edit flag offensive delete link more

Comments

Thanks for your answer. Yes, you are right. If I just wanted to control nodelets from command line I would go the way you stated. Since I intend something different I wanted to gain some more information. But thanks anyway. Looking into source code is the only solution then. Cheers

JBuesch gravatar image JBuesch  ( 2012-10-24 11:09:04 -0500 )edit

Question Tools

Stats

Asked: 2012-10-24 05:30:42 -0500

Seen: 985 times

Last updated: Oct 28 '12