-
Notifications
You must be signed in to change notification settings - Fork 486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gazebo is setting "sensor's last update time" to 0 #2048
Comments
Original comment by Stephan Opfer (Bitbucket: Stopfer).
|
Original comment by Nate Koenig (Bitbucket: Nathan Koenig).
|
Original comment by Stephan Opfer (Bitbucket: Stopfer). Can someone confirm this issue? |
Original comment by guihome (Bitbucket: guihome). Hi, I also have issues with time extracted from the protobuf contacts message within the gazebo_ros_bumper. It appears to be 0sec,0nsec all the time. I only had one gazebo start when the time was correctly set in the plugin output. The topic visualization within gazebo shows correct time all the time.
|
Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters). This looks like it is caused by the code in Sensor::NeedsUpdate, which sometimes calls Sensor::ResetLastUpdateTime, which sets the lastUpdateTime to zeros. It looks like the call to ResetLastUpdateTime was added in af24418 to address #1917, and merged in pull request #2085. |
Original comment by Ian Chen (Bitbucket: Ian Chen, GitHub: iche033). some time ago |
Original comment by Danylo Malyuta (Bitbucket: dmalyuta). I can confirm this issue on Ubuntu 14.04.5 with Gazebo 7.8.1. |
Original report (archived issue) by Stephan Opfer (Bitbucket: Stopfer).
Hi all,
I found this issue, using ROS, AMCL, TurtleBot Simulation etc. I traced it back to line 191:
in gazebo_ros_openni_kinect.cpp. The parentSensor->LastUpdateTime() is 0 at 50% of the time.
I am using Ubuntu 16.04 LTS and ROS Kinetic with corresponding Gazebo Version 7.0.0. Here is how I reproduced the bug:
This starts gazebo with one turtlebot. For the kinect plugin to send data, you need to subscribe to its ROS topic, because it uses lazy publishing:
This subscribes only to the header of the image message. There you should see, if you can reproduce my issue, that the time stamp is 0 in ~50% of the time. I would expect it to be always the simulation time.
I hope someone could help here, because I didn't want to setup the whole gazebo project from source, in order to further debug it.
Greetings,
Stephan
The text was updated successfully, but these errors were encountered: