teleop turtlebot ps3 joystick
Hi!
I am trying to control my turtlebot 2 with a ps3 controller under Ubuntu 12.04 and groovy. I tried to follow the ROS turtlebot teleop tutorial.
The first command didn't worked: roscd ps3joy/bin
as there is no ps3joy/bin directory in my installation. Then, I tried an other tutorial "PairingJoystickAndBluetoothDongle" where the rosrun ps3joy ps3joy
worked, and I could pair my controller with the computer.
I checked the function of the joy with the following:
$ sudo jstest /dev/input/js1
It was working, but with js0 it didn't, it must be some other unknown device. Now I am trying to control the turtlebot with:
roslaunch turtlebot_teleop ps3_teleop.launch
Unfortunately, it generates some error written in red on the console saying the process has died:
turtlebot@turtlebot-laptop:~$ roslaunch turtlebot_teleop ps3_teleop.launch
... logging to /home/turtlebot/.ros/log/2f70c202-8fb4-11e2-9551-00216a48015a/roslaunch-turtlebot-laptop-10508.log
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server [deleted]
SUMMARY
========
PARAMETERS
* /rosdistro
* /rosversion
* /teleop_velocity_smoother/accel_lim_v
* /teleop_velocity_smoother/accel_lim_w
* /teleop_velocity_smoother/decel_factor
* /teleop_velocity_smoother/frequency
* /teleop_velocity_smoother/speed_lim_v
* /teleop_velocity_smoother/speed_lim_w
* /turtlebot_teleop_joystick/axis_angular
* /turtlebot_teleop_joystick/axis_deadman
* /turtlebot_teleop_joystick/axis_linear
* /turtlebot_teleop_joystick/scale_angular
* /turtlebot_teleop_joystick/scale_linear
NODES
/
joystick (joy/joy_node)
teleop_velocity_smoother (nodelet/nodelet)
turtlebot_teleop_joystick (turtlebot_teleop/turtlebot_teleop_joy)
ROS_MASTER_URI=[deleted]
core service [/rosout] found
process[teleop_velocity_smoother-1]: started with pid [10549]
process[turtlebot_teleop_joystick-2]: started with pid [10605]
process[joystick-3]: started with pid [10629]
[turtlebot_teleop_joystick-2] process has died [pid 10605, exit code -11, cmd /opt/ros/groovy/stacks/turtlebot_apps/turtlebot_teleop/bin/turtlebot_teleop_joy turtlebot_teleop_joystick/cmd_vel:=cmd_vel_mux/input/teleop_raw __name:=turtlebot_teleop_joystick __log:=/home/turtlebot/.ros/log/2f70c202-8fb4-11e2-9551-00216a48015a/turtlebot_teleop_joystick-2.log].
log file: /home/turtlebot/.ros/log/2f70c202-8fb4-11e2-9551-00216a48015a/turtlebot_teleop_joystick-2*.log
I am wondering, whether it is because of the joystick is on /dev/input/js1 instead of js0. Can it be? If yes, how could I swap js0 and js1?
Hi,nice to meet you!I have zhe same trouble.Do you know how to use a normal wire joystick to control a turtlebot based kobuki?I have some trouble with it .
I can see the correct output in the echo "rostopic echo /joy".I refer to this website:http://wiki.ros.org/turtlebot_teleop/Tutorials/hydro/Joys