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

How to teleop pioneer3?

asked 2013-10-17 18:44:46 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi ROS-users,

I have some..

Hardware: Pioneer3, SICK-lms200, laptop, 2 usb-serial cables

Software: ros-hydro-desktop-full on laptop running ubuntu-12.04. sicktoolbox(works fine)

Objectives: 1. To control robot by laptop keyboard and log laser data. 2. To build map from that logged data using slam_gmapping.(I know how to achieve objective2)

I can connect my robot and sick laser using rosaria.

Can anyone tell me how can i move my robot using keyboard?

Thanks in advance


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2013-10-23 03:04:00 -0500

I don't see any sort of launch or nodes in the rosaria stack that offer keyboard teleop.

Rosaria does subscribes to the "cmd_vel" topic, so if you want you can write a simple node that listens for keyboard input and translates it into geometry_msgs/Twist messages (

I personally have been using the p2os stack for a while and it also lacks such a node. I have been getting by using the erratic robot stack and its keyboard teleop launch file. You can certainly look there to find out what needs to happen in your own version or simply use it as is.

edit flag offensive delete link more


Thanks. i tried with p2os. failed:) Can you be more specific what i should follow? or can u please share what you used?

cognitiveRobot gravatar image cognitiveRobot  ( 2013-10-23 03:09:43 -0500 )edit

I'm suggesting that you check out the keyboard teleop in the erratic stack as a model to follow.

skiesel gravatar image skiesel  ( 2013-10-23 03:12:04 -0500 )edit

$ sudo apt-get install ros-hydro-erratic-robot [sudo] password for albot1: Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ros-hydro-erratic-robot should i download and make their package in ws?

cognitiveRobot gravatar image cognitiveRobot  ( 2013-10-23 03:22:44 -0500 )edit

Sorry, to be more clear, I would recommend that you check out this file as an example of how to write your own keyboard teleop node:

skiesel gravatar image skiesel  ( 2013-10-23 04:30:23 -0500 )edit

Thanks. That link isn't active anymore. i guess is same. so if i build this cpp file somehow and then run with $roscore and $ rosrun rosaria RosAria (to connect my robot) i should be able to control my robot, right? or do i need anything else running?

cognitiveRobot gravatar image cognitiveRobot  ( 2013-10-23 04:43:55 -0500 )edit

Sorry that's frustrating. Try this: Then click on "erratic_teleop", then click on "src" then "keyboard.cpp". Rosaria listens on the cmd_vel topic. You need something that translates keyboard input into a message of this type (geometry_msgs/Twist).

skiesel gravatar image skiesel  ( 2013-10-23 04:54:04 -0500 )edit

answered 2013-10-24 20:03:01 -0500

cognitiveRobot gravatar image

updated 2013-10-25 02:23:56 -0500

hurry!!!!!!! at last i managed to teleop my sweet as robot(Pioneer3) by keyboard........

Package Needed:


$rosrun rosaria RosAria

$rosrun teleop(it's a modified version of erratic_robot's teleop_robot. needed to update publishing topic from "cmd_vel" to "/RosAria/cmd_vel" at line 67)

thanks Dereck, skiesel, Allen and ros

edit flag offensive delete link more


Great, I'm glad you got it working

skiesel gravatar image skiesel  ( 2013-10-24 23:54:32 -0500 )edit

i am using USARSim with ROS-furete. but not able to move my P3AT using my keyboard.

ROS: @Ubuntu 12.04 LTS USARSim: @Windows

sumant gravatar image sumant  ( 2014-10-06 13:32:00 -0500 )edit

Question Tools



Asked: 2013-10-17 18:44:46 -0500

Seen: 1,260 times

Last updated: Oct 25 '13