Delay between receiving new object position & animation
Posted: 07 Oct 2015, 09:36
Hi,
I'm trying to build a simulator using VREP. A problem that occured is that:
I have a vision sensor publisher enabled inside the child script of this vision sensor, and I have a subscriber in ros listenning to this topic: sub_cam_img_.
I then have a service in ros, when called, it will first retrieve the latest frame from the sub_cam_img_, I call it "s1", then it will publish a new position for the object in vrep, then get a new frame of the changed object configuration, called "s2".
The thing is that I found that everytime the s1 and s2 are the same, they are all of the configuration before the change. I add some control in my code so I can make sure that the s2 is the frame right after the new position is published to vrep. So apprently there is a delay between the publish of the new position & the animation of that change.
Is there any way that I can get an estimate of this delay? Or other mechanisms that I can know when an object changed its position, so that I can get the frame only after this change?
Thanks in advance!
I'm trying to build a simulator using VREP. A problem that occured is that:
I have a vision sensor publisher enabled inside the child script of this vision sensor, and I have a subscriber in ros listenning to this topic: sub_cam_img_.
I then have a service in ros, when called, it will first retrieve the latest frame from the sub_cam_img_, I call it "s1", then it will publish a new position for the object in vrep, then get a new frame of the changed object configuration, called "s2".
The thing is that I found that everytime the s1 and s2 are the same, they are all of the configuration before the change. I add some control in my code so I can make sure that the s2 is the frame right after the new position is published to vrep. So apprently there is a delay between the publish of the new position & the animation of that change.
Is there any way that I can get an estimate of this delay? Or other mechanisms that I can know when an object changed its position, so that I can get the frame only after this change?
Thanks in advance!