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

master node to control two or three others

asked 2014-02-03 03:12:35 -0500

david.c.liebman gravatar image

I'm trying to make a single app that controls a turtlebot robot. I would like to be able to run the gmapping software that makes a map at one point and then switch to the software that navigates the map, all from the interface of my program. I am under the impression that these elements don't work well together, so I want to be able to start one node that does the gmapping and then stop that node and start the node that does the navigating -- all from my program.

I was searching on line and I found that there used to be software called rosspawn. (I'm not even sure if this would do what I want) anyway I don't think it's part of hydro???

So what I'm looking for is a master node that allows me to configure several other nodes at startup and then allows me to start and stop these other nodes either by service or through some topic publishing scheme. Any help would be appreciated.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2014-02-03 10:59:04 -0500

Daniel Stonier gravatar image

The turtlebot has an app manager and rapps (robot apps) that bringup and teardown different tasks without having to completely tear down the robot. All you need do is create a program that interacts with the /start_app and /stop_app handles of the app manager.

edit flag offensive delete link more

Comments

/start_app and /stop_app are found where? and where does the app manager get started in the 'rocon_launch turtlebot_bringup bringup.concert' invocation? I see a '/turtlebot/app_list' but nothing that looks like '/stop_app'

david.c.liebman gravatar image david.c.liebman  ( 2014-02-05 03:22:42 -0500 )edit

You don't need the concert launcher - this starts two master and you need to make sure you have the right master set in your console. Instead use turtlebot_bringup/minimal_with_appmanager.launch. For more information see: http://wiki.ros.org/turtlebot/Tutorials/hydro/App%20Manager

bit-pirate gravatar image bit-pirate  ( 2014-02-06 18:46:08 -0500 )edit

now I have questions about how to make this all work. See my new question: http://answers.ros.org/question/127411/using-services-from-android_map_manager-and-other-rapps/

david.c.liebman gravatar image david.c.liebman  ( 2014-02-10 07:30:37 -0500 )edit
0

answered 2014-02-03 03:57:09 -0500

dornhege gravatar image

The last time I checked rosspawn was on diamondback APIs on unfortunately the ROS APIs changed significantly from that on. I couldn't "simply" convert this. So the best I know for now is do this manually. There are ROS commands like "rosnode kill" that you can use.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-02-03 03:12:35 -0500

Seen: 455 times

Last updated: Feb 03 '14