forked from nasa-jpl/osr-rover-code
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathroboclaw_params.yaml
42 lines (42 loc) · 1.55 KB
/
roboclaw_params.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
roboclaw_wrapper:
ros__parameters:
drive_acceleration_factor: 0.8 # fraction used to scale down the drive motor acceleration (0, 1]
corner_acceleration_factor: 0.8 # fraction used to scale down the corner motor acceleration (0, 1])
velocity_timeout: 2.0 # maximum time [s] a particular velocity command will stay active without a new command before stopping
baud_rate: 115200
device: "/dev/serial1"
addresses: [128, 129, 130]
duty_mode: true # send duty commands to the roboclaw instead of velocity commands. This can mean a smoother drive but shouldn't be used for autonomous navigation as velocity commands aren't interpreted correclty
velocity_qpps_to_duty_factor: 8 # hand-tuned factor to convert velocity commands to duty commands, must be integer
roboclaw_mapping:
# gear ratio is approx 172, exact value is 171.79 though
drive_left_front:
address: 128
channel: M1
ticks_per_rev: 48
gear_ratio: 171.79
drive_left_middle:
address: 128
channel: M2
ticks_per_rev: 48
gear_ratio: 171.79
drive_left_back:
address: 129
channel: M2
ticks_per_rev: 48
gear_ratio: 171.79
drive_right_back:
address: 129
channel: M1
ticks_per_rev: 48
gear_ratio: 171.79
drive_right_middle:
address: 130
channel: M2
ticks_per_rev: 48
gear_ratio: 171.79
drive_right_front:
address: 130
channel: M1
ticks_per_rev: 48
gear_ratio: 171.79