Skip to content

Commit

Permalink
refactor: apply black formatting changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Jan 1, 2024
1 parent be06ddd commit f9b6b95
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 3 additions & 1 deletion panda_gazebo/src/panda_gazebo/core/control_switcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,9 @@ def switch( # noqa: C901
prev_control_type = ", ".join(running_controllers.keys())
running_state = controllers_state.get(control_group, {}).get("running", {})
running_control_types = list(running_state.keys())
running_controllers = get_unique_list(flatten_list(list(running_state.values())))
running_controllers = get_unique_list(
flatten_list(list(running_state.values()))
)
stopped_state = controllers_state.get(control_group, {}).get("stopped", {})
stopped_control_types = list(stopped_state.keys())
loaded_state = controllers_state.get(control_group, {}).get("loaded", {})
Expand Down
12 changes: 11 additions & 1 deletion panda_gazebo/tests/manual/panda_control_server_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,17 @@
# set_joint_commands_msg.joint_commands = [1, 2, 3, 0.03] # NOTE: Wrong input!
# set_joint_commands_msg.joint_commands = [0.04, 10]
# set_joint_commands_msg.joint_commands = [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5]
set_joint_commands_msg.joint_commands = [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.04, 10]
set_joint_commands_msg.joint_commands = [
0.5,
0.5,
0.5,
0.5,
0.5,
0.5,
0.5,
0.04,
10,
]
set_joint_commands_msg.grasping = True
resp = set_arm_joint_effort_srv.call(set_joint_commands_msg)
print(resp.message)
Expand Down

0 comments on commit f9b6b95

Please sign in to comment.