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

tf and amcl turtlebot demo immediately after gmap demo

asked 2014-02-27 09:28:04 -0600

david.c.liebman gravatar image

On the turtlebot I am trying to launch the amcl demo after launching the gmapping demo, but without shutting down all of ros.

Usually I can get the gmapping to work (that's the first demo I test) and then the amcl will partially work. I can load a map using 'map_store' and then see the map on the rviz screen. I also can usually see the turtlebot on the rviz screen. I have trouble directing the turtlebot, though, and I don't exactly know why.

When I look at the RobotModel listing under the 'Displays' box in rviz it's red, and the cause is that the tf's from all the components are red. (base_footprint, base_link, etc., all red). They all say 'No transform from [base_footprint] to [map]'. When I execute view_frames and look at the pdf it says "no tf data received". When I type rostopic list '/tf' comes up as one of my topics. Is there something I can start that will restart the tf data in the turtlebot?

If I don't start gmapping first I can usually load a map and direct the turtlebot with /initialpose, etc.

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2014-03-05 16:50:48 -0600

bit-pirate gravatar image

Try using multiple terminals: start the basic turtlebot nodes, i.e. turtlebot_bringup/minimal.launch in the first terminal and the app, e.g. make a map, in a second demo. Then, when you like to launch a different set of nodes/app, only kill the launcher in the second terminal and execute the new launcher.

If you have further nodes, which manage data and need to remain active, e.g. map_store, use more terminals and make sure to exclude those nodes from your app launcher.

Hope this helps!

PS: You might want to take a look at the rocon_app_manager package. The app manager handles the starting and stopping of rapps (robot apps). We use it frequently on our turtlebots for creating and navigating a map as well as teleop.

edit flag offensive delete link more

Comments

If your problem has been solved, please select the best answer thereby marking your question as answered.

bit-pirate gravatar image bit-pirate  ( 2014-03-30 17:27:40 -0600 )edit
0

answered 2014-03-06 00:56:34 -0600

david.c.liebman gravatar image

I am giving the app manager a try.

edit flag offensive delete link more

Comments

I stopped using python to switch my apps and started using the 'app_manager' and separate 'rapps' for each function.

david.c.liebman gravatar image david.c.liebman  ( 2014-03-31 02:51:17 -0600 )edit
0

answered 2014-02-27 09:44:21 -0600

AbuIbra gravatar image

updated 2014-02-27 13:33:54 -0600

you have to change your fixed_frame to /map in RVIZ.

EDIT: Make sure there is no time delay too, the system clocks of the computers you are running on have to be synchronized. http://wiki.ros.org/navigation/Troubl...

edit flag offensive delete link more

Comments

it's already /map

david.c.liebman gravatar image david.c.liebman  ( 2014-02-27 10:22:56 -0600 )edit

I think the robot is not in connection now.

karthik gravatar image karthik  ( 2014-02-27 14:10:55 -0600 )edit

I think I just need to be careful not to kill nodes I'm going to need later. I start with 'roslaunch turtlebot_bringup minimal.launch' and I need to make sure I don't kill the nodes started there. Thanks all. Thanks karthik.

david.c.liebman gravatar image david.c.liebman  ( 2014-03-01 05:22:05 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2014-02-27 09:28:04 -0600

Seen: 639 times

Last updated: Mar 05 '14