Closed knorth55 closed 5 years ago
I also want to backport this PR to indigo-devel
branch.
@rctoris can you review this PR? This bug may cause robot malfunction
@moriarty can you review this PR? this error may cause robot malfunction. (i.e. robot arm moves quickly after servo off)
@moriarty kindly ping. can you review this PR?
kindly ping. can anyone review this PR?
Hi sorry you've pinged me a couple times but I didn't see any of these until now.
I'm currently working remotely and can't test this on a Fetch. The change looks fine.
I'll ping @erelson otherwise I'll be able to test in on Monday.
Looking at the code, and your example, this looks good and makes sense. I unfortunately won't have time to test it this week, so I'll leave that to @moriarty...
I updated to use executable_trajectory.points[0].time
and tested on Gazebo.
How is this PR review going?
Kindly ping
As expected, no effect on regular operation of a live robot (18.04). Sorry for the delay in getting this tested!
@erelson Thank you for merging this PR!
Future motion trajectory support
Background
this PR supports
FollowJointTrajectoryGoal
with future start time. For example, I want to sendFollowJointTrajectoryGoal
for 3 seconds ahead from now, to reserve future motion like below. We can reserve future motionFollowJointTrajectory
server by giving trajectory with future time.msg
The most important point is
msg.trajectory.header.stamp
is 3 seconds ahead frommsg.header.stamp
.msg.header.stamp
msg.trajectory.header.stamp
Problem
When I send the
FollowJointTrajectoryGoal
as above, fetch robot stays in arm servo off before motion. That is because there is no arm effort command afterFollowJointTrajectoryGoal
is received and before motion starts. In Gazebo simulation, fetch arm is sinking into its body. I confirm that same problem happens with real robot, too.This PR
This PR put current position as trajectory at the top of the trajectory when there is gap between motion start time and motion request receiving time. With this PR, Fetch robot arm does not stay in arm survo off as below.
Related issue
https://github.com/jsk-ros-pkg/jsk_robot/pull/1070#issuecomment-486311568
cc. @pazeshun