iiwa_stack icon indicating copy to clipboard operation
iiwa_stack copied to clipboard

Subscriber in java side not receiving all the commanded target points

Open robotgradient opened this issue 6 years ago • 4 comments

Hi,

I added a counter in the callback of /command/JointPosition in the java side.

I created a trajectory of 569 points and sent it in a frame rate of 30Hz.

My subscriber is only receiving 100 points, so is losing a fifth part of it. I consider 30Hz to be slow enough frequency rate, but I am not sure.

Any Suggestions?

robotgradient avatar May 16 '18 07:05 robotgradient

That is very strange, I'll try to look into this in the next days.

SalvoVirga avatar Jun 25 '18 17:06 SalvoVirga

I tried hard on this and I got a maximun communication rate of 10Hz. Seems like subscriber needed lot of time to deal with the data. I was little bit surprised also. I was expecting something much more faster. This was affecting me at the end in strange behaviours coming from the SmartServo.

It was really poor so I jumped to TCP/IP communication getting a communication of 120Hz.

Moreover, I also had the opportunity to work with a robot from another group(CNR-ITIA) and they were facing similar problems.

robotgradient avatar Jul 04 '18 06:07 robotgradient

I tried hard on this and I got a maximun communication rate of 10Hz. Seems like subscriber needed lot of time to deal with the data. I was little bit surprised also. I was expecting something much more faster. This was affecting me at the end in strange behaviours coming from the SmartServo.

It was really poor so I jumped to TCP/IP communication getting a communication of 120Hz.

Moreover, I also had the opportunity to work with a robot from another group(CNR-ITIA) and they were facing similar problems.

I meet the same problem, and the sunrise java side receive topic at a frequency of 5HZ. How did you solve it?

lihx108 avatar Mar 14 '19 02:03 lihx108

I have been having delay issues as well, leading to jerky motions as described in the Troubleshooting section of the Sunrise.Servoing 1.15 manual.

For instance, here are the responses to steps and triangles for the last axis, for a command loop at 500Hz using the PositionControl mode. a7_steps a7_triangles

@SalvoVirga, have you ever had issues like this in the past ? Is there a way to properly play around with the setMinimumTrajectoryExecutionTime(…) and setTimeoutAfterGoalReach functions ? Also, what control frequency people usually use when using iiwa_stack or the SmartServo class in general ?

Basically I also get the jerky motions when I use the MoveIt package. Maybe there is something wrong with my network communication... I even turn on the use of the NTP server, but that didn't solved the problem.

Many thanks, Jimmy

JimmyDaSilva avatar Feb 24 '20 13:02 JimmyDaSilva