Robotics StackExchange | Archived questions

Why could the time stamp for my bumper plugin be zero?

HI,

I've got a bumper plugin on the r_foot link of the Atlas robot. The plugin publishes correct data to the topic, but the sec & nsec values in the header are always 0. I tried using the rosparam set usesimtime True but there's no effect. Other topics show the time stamp correctly.

TIA

Asked by Mav16 on 2016-09-01 13:45:03 UTC

Comments

Don't set /use_sim_time unless you're actually running a simulation.

Asked by ahendrix on 2016-09-01 16:45:22 UTC

Alright, but how do I solve the issue of ROS not publishing the time in the header for this particular topic?

Asked by Mav16 on 2016-09-02 11:00:51 UTC

I don't know any specifics about Atlas (hence why this isn't a full answer). I do know that the ROS libraries don't automatically set the timestamps, so perhaps this is a bug in the bumper plugin that publishes those messages?

Asked by ahendrix on 2016-09-02 11:31:17 UTC

Thanks, I'll look into it.

Asked by Mav16 on 2016-09-02 11:36:32 UTC

I have the same issue. The contacts are there in gazebo7, the collisions have an effect on the robot configuration as it should, but the ContactSensor messages have their timestamp set to zero and the 'states' array (where all the contacts should be) is empty.

Asked by neckutrek on 2016-12-13 07:53:46 UTC

Answers