Skip to content

Commit

Permalink
Updated the initial location of the move neutral method when approach…
Browse files Browse the repository at this point in the history
…h provided
  • Loading branch information
Dozgulbas committed Jan 23, 2025
1 parent 7e29bc3 commit 9da9453
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/pf400_driver/pf400_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -982,13 +982,16 @@ def pick_plate(
target_joint_angles=location,
profile=self.fast_motion_profile,
)
self.move_all_joints_neutral(location)

else:
self.move_joint(
target_joint_angles=source_approach_locations,
profile=self.fast_motion_profile,
)

self.move_all_joints_neutral(source_location)
self.move_all_joints_neutral(source_approach_locations)
else:
self.move_all_joints_neutral(source_location)

def place_plate(
self, target_location: list, target_approach_locations: list = None
Expand Down Expand Up @@ -1026,13 +1029,17 @@ def place_plate(
target_joint_angles=location,
profile=self.fast_motion_profile,
)
self.move_all_joints_neutral(location)

else:
self.move_joint(
target_joint_angles=target_approach_locations,
profile=self.fast_motion_profile,
)
self.move_all_joints_neutral(target_approach_locations)

self.move_all_joints_neutral(target_location)
else:
self.move_all_joints_neutral(target_location)

def transfer(
self,
Expand Down

0 comments on commit 9da9453

Please sign in to comment.