-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2ac9458
commit eba09cc
Showing
2 changed files
with
95 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
### Speed Settings | ||
You can modify the speed settings in the launch file `~/catkin_ws/src/ps5_teleop/launch/ps5_teleop.launch`: | ||
|
||
```xml | ||
<param name="scale_linear" value="0.3" /> <!-- Normal linear speed --> | ||
<param name="scale_angular" value="0.6" /> <!-- Normal angular speed --> | ||
<param name="scale_linear_turbo" value="0.6" /> <!-- Turbo linear speed --> | ||
``` | ||
|
||
### Button Mapping | ||
The default button mappings for the PS5 controller are: | ||
``` | ||
D-pad: | ||
- Up arrow: axis 7 value 1 | ||
- Down arrow: axis 7 value -1 | ||
- Left arrow: axis 6 value 1 | ||
- Right arrow: axis 6 value -1 | ||
|
||
Buttons: | ||
- L1 (Enable): button 4 | ||
- L2 (Turbo): button 6 | ||
|
||
Other Buttons (for reference): | ||
- L3: button 10 | ||
- R1: button 5 | ||
- R2: button 7 | ||
- R3: button 11 | ||
- Triangle: button 3 | ||
- Square: button 0 | ||
- Cross: button 1 | ||
- Circle: button 2 | ||
- Share: button 8 | ||
- Options: button 9 | ||
- PS button: button 12 | ||
- Touchpad: button 13 | ||
``` | ||
|
||
If your controller has different mappings, you can check them using: | ||
```bash | ||
rosrun joy joy_node | ||
rostopic echo /joy | ||
``` | ||
|
||
Then update the parameters in the launch file accordingly. | ||
|
||
|
||
### Robot Not Moving | ||
1. Verify cmd_vel messages are being published: | ||
```bash | ||
rostopic echo /cmd_vel | ||
``` | ||
|
||
2. Check that your robot is subscribing to /cmd_vel: | ||
```bash | ||
rostopic info /cmd_vel | ||
``` | ||
|
||
3. Ensure the enable button (L1) is pressed while trying to move | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
right stick: | ||
up axis 5 value 1 | ||
down axis 5 value -1 | ||
right axis 2 value -1 | ||
left axis 2 value 1 | ||
|
||
left stick: | ||
up axis 1 value 1 | ||
down axis 1 value -1 | ||
right axis 0 value -1 | ||
left axis 0 value 1 | ||
|
||
L1: button 4 | ||
l2: button 6 | ||
l3: button 10 | ||
|
||
R1:button 5 | ||
r2: button 7 | ||
r3: button 11 | ||
|
||
up arrow: axis 7 value 1 | ||
down arrow: axis 7 value -1 | ||
left arrow: axis 6: value 1 | ||
right arrow: axis 6: value -1 | ||
|
||
bluetooth button: button 8 | ||
option button: button 9 | ||
pad button:button 13 | ||
ps button: button 12 | ||
axis 3 and 4 are always 1 and dont match with any button | ||
|
||
triangle:button 3 | ||
square: button 0 | ||
cross: button 1 | ||
circle: button 2 |