Skip to content

Commit 9ad363b

Browse files
authored
Drivetrains (#82)
1 parent eb838ae commit 9ad363b

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

clearpath_motor_msgs/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ rosidl_generate_interfaces(${PROJECT_NAME}
2121
action/LynxUpdate.action
2222
msg/LynxDebug.msg
2323
msg/LynxFeedback.msg
24+
msg/LynxMotorProtection.msg
2425
msg/LynxMultiDebug.msg
2526
msg/LynxMultiFeedback.msg
2627
msg/LynxMultiStatus.msg
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Number on the bus (CAN ID).
2+
uint8 can_id
3+
4+
# Name of joint controlled, or other identifier.
5+
string joint_name
6+
7+
# Protection states
8+
uint8 NORMAL=0
9+
uint8 THROTTLED=1
10+
uint8 OVERHEATED=2
11+
uint8 ERROR=3
12+
13+
# Protection state
14+
uint8 state
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,7 @@
11
std_msgs/Header header
22

3-
# Protection states
4-
uint8 NORMAL=0
5-
uint8 THROTTLED=1
6-
uint8 OVERHEATED=2
7-
uint8 ERROR=3
8-
93
# System state based on highest protection state of motors
104
uint8 system_state
115

12-
# A300
13-
uint8 A300_MOTOR_REAR_LEFT=0
14-
uint8 A300_MOTOR_FRONT_LEFT=1
15-
uint8 A300_MOTOR_FRONT_RIGHT=2
16-
uint8 A300_MOTOR_REAR_RIGHT=3
17-
186
# Individual motor protection states
19-
uint8[] motor_states
7+
clearpath_motor_msgs/LynxMotorProtection[] motor_states

0 commit comments

Comments
 (0)