Ask Your Question
0

Teleop control not working in Turtlebot Simulator package and Gazebo

asked 2013-08-26 20:57:17 -0600

Alkaros gravatar image

updated 2014-01-28 17:17:45 -0600

ngrennan gravatar image

currently following the tutorial @ http:// www.ros.org/wiki/turtlebot_simulator/Tutorials/hydro/Explore%20the%20Gazebo%20world

Everything else seems to work fine. The model loads into gazebo and the pointclooud image can be seen in Rviz. But I cannot control the turtlebot using the teleop keyboard configuration.

I'm using the newest Gazebo(1.9) and ros Hydro is installed.

If I try to use the $ roslaunch kobuki_keyop keyop.launch command it tells me Keyop can not connect. I'm not sure if they've started on different servers and are unable to communicate.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-08-27 14:15:15 -0600

jorge gravatar image

Assuming you are using Hydro sources, I commited a fix for the turtlebot teleop on monday, so a git pull on turtlebot_simulator should fix it.

Kobuki keyop also should work if you have all the latest code. The "could not connect" warning appears because before the enable/disable commands where not simulated on Gazebo, but they are now.

Please also ensure you use the latest Gazebo and SDF versions.

If you don't wont to mangle with code, all these changes will be released together with the official Hydro release.

edit flag offensive delete link more

Comments

No, don't wait! :-) Get the sources, test it and let us know what's not working. This will help us polishing the code for the release!

bit-pirate gravatar imagebit-pirate ( 2013-08-27 14:17:40 -0600 )edit
1

I'll definitely give it a go. How hard can it be, right? :)

Alkaros gravatar imageAlkaros ( 2013-08-27 16:02:59 -0600 )edit
1

answered 2013-08-27 07:15:42 -0600

SaiHV gravatar image

I have the same versions, and this command works for me. The kobuki keyop gives me the same error. Did you try this?

roslaunch turtlebot_teleop keyboard_teleop.launch

edit flag offensive delete link more

Comments

Also make sure that the window for the teleop command is selected when trying to control the robot, otherwise it won't get the key events.

tfoote gravatar imagetfoote ( 2013-08-27 09:43:20 -0600 )edit

Yes "roslaunch turtlebot_teleop keyboard_teleop.launch" is what I tried first and the terminal window was active.

Alkaros gravatar imageAlkaros ( 2013-08-27 16:03:40 -0600 )edit

@Alkaros, Are you correctly able to move the TurtleBot in the Gazebo environment? I have downloaded the code from [here](https://github.com/turtlebot/turtlebot_simulator). But inside the code I have not find anything regarding the publishing or advertising into a topic. In gazebo can we construct a maze?

RB gravatar imageRB ( 2013-11-10 05:41:36 -0600 )edit

You'll also need to install ros-hydro-turtlebot-apps. http://wiki.ros.org/turtlebot_simulator/Tutorials/hydro/Explore%20the%20Gazebo%20world. You can see thee published topics using "rostopic list". Also for the maze. http://gazebosim.org/wiki/Building_Editor

Alkaros gravatar imageAlkaros ( 2013-11-10 11:02:04 -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

2 followers

Stats

Asked: 2013-08-26 20:57:17 -0600

Seen: 2,366 times

Last updated: Aug 27 '13