You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have some code set up that can move the robot's arm (well, end-effector) to a pose. When I do this to the physical Fetch robot, the arm moves very quickly. Thus, I am hoping to control the speed to slow it down.
My code is similar to this code base, but I'm thinking of now using stuff from fetch_pbd and merging it into my code, which is why I'm reading this code repository. I noticed a few observations:
The arm.pycode here uses a velocities argument in the move_to_joints_plan method. However, it's commented out. Is this supposed to be something that could control the speed of the robot?
move_to_pose has a self._move_group.set_planning_time(1.0) call. I assume this is for the planning time but does not affect how fast the arm moves once the plan is set. Is that correct?
fetch_pbd_interaction/arm_control.py has some module-level constants: MOVE_TO_JOINTS_SLEEP_INTERVAL and TRAJECTORY_COMPLETE_SLEEP_INTERVAL . But the code comments there imply that these are invoked after the arm has finished moving, and does not control the speed while the arm is moving.
I wonder if there is an example script somewhere that could show an example of controlling the velocity of the robot? There seems to be some code re-use between several arm-related scripts so I also appreciate any code recommendations or best practices. Or maybe the best practice is to try and put a rospy.sleep(...) somewhere during the move methods?
Thanks all! I'm happy to clarify my questions as needed.
The text was updated successfully, but these errors were encountered:
Hi all,
I have some code set up that can move the robot's arm (well, end-effector) to a pose. When I do this to the physical Fetch robot, the arm moves very quickly. Thus, I am hoping to control the speed to slow it down.
My code is similar to this code base, but I'm thinking of now using stuff from
fetch_pbd
and merging it into my code, which is why I'm reading this code repository. I noticed a few observations:The
arm.py
code here uses avelocities
argument in themove_to_joints_plan
method. However, it's commented out. Is this supposed to be something that could control the speed of the robot?move_to_pose
has aself._move_group.set_planning_time(1.0)
call. I assume this is for the planning time but does not affect how fast the arm moves once the plan is set. Is that correct?fetch_pbd_interaction/arm_control.py
has some module-level constants:MOVE_TO_JOINTS_SLEEP_INTERVAL
andTRAJECTORY_COMPLETE_SLEEP_INTERVAL
. But the code comments there imply that these are invoked after the arm has finished moving, and does not control the speed while the arm is moving.I wonder if there is an example script somewhere that could show an example of controlling the velocity of the robot? There seems to be some code re-use between several arm-related scripts so I also appreciate any code recommendations or best practices. Or maybe the best practice is to try and put a
rospy.sleep(...)
somewhere during the move methods?Thanks all! I'm happy to clarify my questions as needed.
The text was updated successfully, but these errors were encountered: