@@ -244,8 +244,8 @@ pub struct UdpExtendedCommand {
244
244
pub r_elbow_pitch : f32 ,
245
245
#[ serde( rename = "RElbowRoll" ) ]
246
246
pub r_elbow_roll : f32 ,
247
- #[ serde( rename = "RWristPitch " ) ]
248
- pub r_wrist_pitch : f32 ,
247
+ #[ serde( rename = "RWristRoll " ) ]
248
+ pub r_wrist_roll : f32 ,
249
249
250
250
// 11..15 left arm
251
251
#[ serde( rename = "LShoulderPitch" ) ]
@@ -256,17 +256,17 @@ pub struct UdpExtendedCommand {
256
256
pub l_elbow_pitch : f32 ,
257
257
#[ serde( rename = "LElbowRoll" ) ]
258
258
pub l_elbow_roll : f32 ,
259
- #[ serde( rename = "LWristPitch " ) ]
260
- pub l_wrist_pitch : f32 ,
259
+ #[ serde( rename = "LWristRoll " ) ]
260
+ pub l_wrist_roll : f32 ,
261
261
}
262
262
263
263
impl Default for UdpExtendedCommand {
264
264
fn default ( ) -> Self {
265
265
Self {
266
266
x : 0.0 , y : 0.0 , yaw_rate : 0.0 ,
267
267
base_height : 0.0 , base_roll : 0.0 , base_pitch : 0.0 ,
268
- r_shoulder_pitch : 0.0 , r_shoulder_roll : ( -15.0f32 ) . to_radians ( ) , r_elbow_pitch : 0.0 , r_elbow_roll : ( 90.0f32 ) . to_radians ( ) , r_wrist_pitch : 0.0 ,
269
- l_shoulder_pitch : 0.0 , l_shoulder_roll : ( 15.0f32 ) . to_radians ( ) , l_elbow_pitch : 0.0 , l_elbow_roll : ( -90.0f32 ) . to_radians ( ) , l_wrist_pitch : 0.0 ,
268
+ r_shoulder_pitch : 0.0 , r_shoulder_roll : ( -15.0f32 ) . to_radians ( ) , r_elbow_pitch : 0.0 , r_elbow_roll : ( 90.0f32 ) . to_radians ( ) , r_wrist_roll : 0.0 ,
269
+ l_shoulder_pitch : 0.0 , l_shoulder_roll : ( 15.0f32 ) . to_radians ( ) , l_elbow_pitch : 0.0 , l_elbow_roll : ( -90.0f32 ) . to_radians ( ) , l_wrist_roll : 0.0 ,
270
270
271
271
}
272
272
}
@@ -315,12 +315,12 @@ impl crate::policy_control::InputState for Udp16ControlVectorInputState {
315
315
arr[ 7 ] = c. r_shoulder_roll ;
316
316
arr[ 8 ] = c. r_elbow_pitch ;
317
317
arr[ 9 ] = c. r_elbow_roll ;
318
- arr[ 10 ] = c. r_wrist_pitch ;
318
+ arr[ 10 ] = c. r_wrist_roll ;
319
319
arr[ 11 ] = c. l_shoulder_pitch ;
320
320
arr[ 12 ] = c. l_shoulder_roll ;
321
321
arr[ 13 ] = c. l_elbow_pitch ;
322
322
arr[ 14 ] = c. l_elbow_roll ;
323
- arr[ 15 ] = c. l_wrist_pitch ;
323
+ arr[ 15 ] = c. l_wrist_roll ;
324
324
debug ! ( "16D UDP command: x={}, y={}, yaw={}, base_height={}, r_shoulder_pitch={}" ,
325
325
c. x, c. y, c. yaw_rate, c. base_height, c. r_shoulder_pitch) ;
326
326
Ok ( ( ) )
@@ -339,12 +339,12 @@ impl crate::policy_control::InputState for Udp16ControlVectorInputState {
339
339
arr[ 7 ] = cmd_state. r_shoulder_roll ;
340
340
arr[ 8 ] = cmd_state. r_elbow_pitch ;
341
341
arr[ 9 ] = cmd_state. r_elbow_roll ;
342
- arr[ 10 ] = cmd_state. r_wrist_pitch ;
342
+ arr[ 10 ] = cmd_state. r_wrist_roll ;
343
343
arr[ 11 ] = cmd_state. l_shoulder_pitch ;
344
344
arr[ 12 ] = cmd_state. l_shoulder_roll ;
345
345
arr[ 13 ] = cmd_state. l_elbow_pitch ;
346
346
arr[ 14 ] = cmd_state. l_elbow_roll ;
347
- arr[ 15 ] = cmd_state. l_wrist_pitch ;
347
+ arr[ 15 ] = cmd_state. l_wrist_roll ;
348
348
}
349
349
debug ! ( "16D UDP command from robot_description: x={}, y={}, yaw_rate={}, base_height={}" ,
350
350
cmd_state. x, cmd_state. y, cmd_state. yaw_rate, cmd_state. base_height) ;
0 commit comments