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 modified the a1_joint_trajectory_node file to subscribe to a topic with a trajectory_msgs/JointTrajectory message, to add the received points to a TrajectoryGoal.
But EGMTrajectoryInterface::addTrajectory() often does NOT add the trajectory successfully even when using the same waypoints that worked before.
My testing scenario with inconsistent results
For testing purposes the attached script has 2 scenarios, both of them use the 6 provided trajectory points from the sample file (ignoring the received trajectory). They should only differ in the frequency the trajectory will be executed, but what really happens is that scenario 2 randomly fails:
In every main loop iteration: create, add and execute the sample trajectory. (Sometimes fails for 1-3 iterations, but works after that)
The trajectory callback just sets a bool that new values have arrived. If “hasNewValues” is false, ignore the rest of the loop, otherwise create, add and execute the sample trajectory. This also fails for 1-3 iterations but afterwards it is a hit or miss, sometimes executing every time, sometimes not even once and in some cases it seems random like flipping a coin.
I also tried to call addTrajectory() only the first time, outside the loop, and overwriting existing trajectories with addTrajectory(...,true). Both didn't improve the results.
The test package "hrw" is attached with nodes "joint_controller_test" (optional argument "listen" for scenario 2) and trajectory_publisher which publishes an empty trajectory just to trigger the callback
I looked into this problem again, but I still can't get addTrajectory to work reliable. I also tried the action server code from issue #48, which has a high failure rate: 2 successful execution from 7 attempts, always the same, real trajectory sent from matlab.
The above written code has a scenario which I can reproduce 100% of the time:
run node joint_controller_test with argument "listen"
run node trajectory_publisher -> 1. execution will fail, 2. and further will succeed
stop trajectory_publisher, wait till current trajectory execution is finished
run node trajectory_publisher ->again 1. execution will fail, 2. and further will succeed
What can I do to secure that the trajectory will be added? I would very appreciate if you could have a look at it @gavanderhoorn .
Hello,
I modified the a1_joint_trajectory_node file to subscribe to a topic with a trajectory_msgs/JointTrajectory message, to add the received points to a TrajectoryGoal.
But EGMTrajectoryInterface::addTrajectory() often does NOT add the trajectory successfully even when using the same waypoints that worked before.
My testing scenario with inconsistent results
For testing purposes the attached script has 2 scenarios, both of them use the 6 provided trajectory points from the sample file (ignoring the received trajectory). They should only differ in the frequency the trajectory will be executed, but what really happens is that scenario 2 randomly fails:I also tried to call addTrajectory() only the first time, outside the loop, and overwriting existing trajectories with addTrajectory(...,true). Both didn't improve the results.
The test package "hrw" is attached with nodes "joint_controller_test" (optional argument "listen" for scenario 2) and trajectory_publisher which publishes an empty trajectory just to trigger the callback
hrw.zip
Code
The text was updated successfully, but these errors were encountered: