赞
踩
入手了这个手柄,来控制小车子,先来控制小乌龟
插上去之后看看他是谁,是xbox360
sudo apt-get install ros-kinetic-joystick-drivers
Table of index number of /joy.buttons: | |
---|---|
Index | Button name on the actual controller |
0 | A |
1 | B |
2 | X |
3 | Y |
4 | LB |
5 | RB |
6 | back |
7 | start |
8 | power |
9 | Button stick left |
10 | Button stick right |
Table of index number of /joy.axes: | |
---|---|
Index | Axis name on the actual controller |
0 | Left/Right Axis stick left |
1 | Up/Down Axis stick left |
2 | LT |
3 | Left/Right Axis stick right |
4 | Up/Down Axis stick right |
5 | RT |
6 | cross key left/right |
7 | cross key up/down |
[https://github.com/jinmenglei/joy_360_cmd_vel(https://github.com/jinmenglei/joy_360_cmd_vel)
测试下效果
重定向topic
到 cmd_vel
rosrun turtlesim turtlesim_node /turtle1/cmd_vel:=/cmd_vel
成功
这个小手柄还不错,用起来简单,也有标准的包
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。