Retrieve interpolated desired positions from JointTrajectoryController without execution?
Is it possible to get the result of the interpolation that the JTC does without executing it?
I have checked most of the source of the JointTrajectoryController
but so far I haven't found anything related to the interpolation.
When sending the following trajectory:
header:
seq: 0
stamp:
secs: 0
nsecs: 0
frame_id: ''
joint_names:
- 'joint1'
points:
- positions: [0.6]
velocities: [-0.1]
time_from_start: {secs: 0, nsecs: 800000000}
- positions: [0.4]
velocities: [0]
time_from_start: {secs: 1, nsecs: 200000000}
If I send these commands I can monitor the state/desired
topic to see the result, however I'd like to get the result of the interpolation and check what the calculated desired positions will be before actually executing them on my robot.
Is this possible or am I misunderstanding something about the JointTrajectoryController
?