Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
sirackerman authored Dec 2, 2024
1 parent 2ac9458 commit eba09cc
Show file tree
Hide file tree
Showing 2 changed files with 95 additions and 0 deletions.
60 changes: 60 additions & 0 deletions ps5_teleop/Customization_and_troubleshooting
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


35 changes: 35 additions & 0 deletions ps5_teleop/ps5_button
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

0 comments on commit eba09cc

Please sign in to comment.