Skip to content

Commit

Permalink
Auto Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Isopod00 committed Oct 23, 2024
1 parent f5e5957 commit f7c39f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/digger/digger/digger_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def toggle_callback(self, request, response):
def set_position_callback(self, request, response):
"""This service request sets the position of the lift."""
self.set_position(request.position)
#^ this should already wait due to vesc set position not returning until done
# ^ this should already wait due to vesc set position not returning until done
response.success = 0 # indicates success
return response

Expand Down Expand Up @@ -183,7 +183,7 @@ def lower_lift_callback(self, request, response):
response.success = 0 # indicates success
return response

#No more timer callback because setPos works
# No more timer callback because setPos works

# Define subscriber callback methods here
def limit_switch_callback(self, limit_switches_msg):
Expand Down
6 changes: 4 additions & 2 deletions src/rovr_control/rovr_control/auto_dig_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,15 @@ async def execute_callback(self, goal_handle: ServerGoalHandle):
await self.cli_lift_lower.call_async(Stop.Reqest())

self.get_logger().info("Start of Auto Digging in Place")
await sleep(3) #Stay at lowest pos for 3 seconds while digging
await sleep(3) # Stay at lowest pos for 3 seconds while digging
self.get_logger().info("Done Digging in Place")

# Stop skimming
await self.cli_digger_stop.call_async(Stop.Request())

await self.cli_lift_setPosition.call_async(SetPosition.Request(position=goal_handle.request.lift_dumping_position))
await self.cli_lift_setPosition.call_async(
SetPosition.Request(position=goal_handle.request.lift_dumping_position)
)
# raise lift to dumping position
# Wait for the lift goal to be reached

Expand Down
3 changes: 0 additions & 3 deletions src/rovr_control/rovr_control/auto_offload_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@ def __init__(self):
cancel_callback=self.cancel_callback,
)


self.cli_dumper_stop = self.create_client(Stop, "dumper/stop")
self.cli_dumper_dump = self.create_client(Stop, "dumper/dump")


async def execute_callback(self, goal_handle: ServerGoalHandle):
"""This method lays out the procedure for autonomously offloading!"""
self.get_logger().info("Starting Autonomous Offload Procedure!")
Expand All @@ -39,7 +37,6 @@ async def execute_callback(self, goal_handle: ServerGoalHandle):
goal_handle.abort()
return result


await self.cli_dumper_dump.call_async(Stop.Request()) # Dump Berm

await self.cli_dumper_stop.call_async(Stop.Request()) # Stop the dumper system
Expand Down

0 comments on commit f7c39f7

Please sign in to comment.