Browse Source

Merge pull request #78 from hello-robot/feature/contact_models_fix

Command Group status effort_pct key fix
pull/85/head
Mohamed Fazil 2 years ago
committed by GitHub
parent
commit
46bd956186
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      stretch_core/nodes/command_groups.py

+ 2
- 2
stretch_core/nodes/command_groups.py View File

@ -370,7 +370,7 @@ class ArmCommandGroup(SimpleCommandGroup):
arm_status = robot_status['arm']
arm_backlash_correction = self.retracted_offset_m if self.retracted else 0.0
pos = arm_status['pos'] + arm_backlash_correction
return (pos, arm_status['vel'], arm_status['motor']['effort'])
return (pos, arm_status['vel'], arm_status['motor']['effort_pct'])
class LiftCommandGroup(SimpleCommandGroup):
@ -410,7 +410,7 @@ class LiftCommandGroup(SimpleCommandGroup):
def joint_state(self, robot_status, **kwargs):
lift_status = robot_status['lift']
return (lift_status['pos'], lift_status['vel'], lift_status['motor']['effort'])
return (lift_status['pos'], lift_status['vel'], lift_status['motor']['effort_pct'])
class MobileBaseCommandGroup(SimpleCommandGroup):

Loading…
Cancel
Save