Skip to content

Commit

Permalink
Apply code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ayin21 committed Mar 3, 2024
1 parent 2619a88 commit 1058ffc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@
class TeachingMode(AbstractHCMDecisionElement):
"""
Decides if the robot is currently in teaching mode.
In the teaching mode the robot can be puppeteered freely.
In the teaching mode the robot can be puppeteered freely.
To do this we deactivate the torque on all motors.
If we leave the teaching mode we activate the torque again.
"""

def __init__(self, blackboard, dsd, parameters):
super().__init__(blackboard, dsd, parameters)
self.last_state_on = False
Expand All @@ -27,5 +28,3 @@ def perform(self, reevaluate=False):

def get_reevaluate(self):
return True


2 changes: 1 addition & 1 deletion teaching_mode.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def joint_states_callback(self, msg: JointState):


if __name__ == "__main__":
rclpy.init(args=args)
rclpy.init()
node = TeachingNode()
try:
rclpy.spin(node)
Expand Down

0 comments on commit 1058ffc

Please sign in to comment.