ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

STDR Simulator: how to increase static TF frequency?

asked 2017-10-18 17:33:18 -0500

jorge gravatar image

Hi! as shown in its wiki:

image description

STDR publishes internal robot TFs at 10 Hz. apart from the fact that this is a pain, and I would rather let user publish TFs with the venerable robot_state_publisher, 10 Hz is very slow and causes some trouble on delaying TF listener transformations.

Is there any way to accelerate this frequency? Or even better, to prevent STDR Simulator of publishing all TFs except the odometry one?

Thanks!

edit retag flag offensive close merge delete

Comments

Did you try changing sensor frequency in configuration files here

bvbdort gravatar image bvbdort  ( 2017-10-19 03:32:00 -0500 )edit

Yes, at 20Hz as in the real robot. But that's not the problem; the problem is this line of code, that harcodes tf tree broadcasting rate at 10Hz. This is a problem, so I'll PR a fix

jorge gravatar image jorge  ( 2017-11-10 18:46:24 -0500 )edit

I think I have similar issues... All hard-coded times should be removed from ROS altogether. I'm new to this system, but I've seen systems with higher complexity and people tend to do this everywhere. Hard coded timing kills future development.

shardator gravatar image shardator  ( 2017-12-20 04:48:37 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-11-11 06:10:43 -0500

jorge gravatar image

Pull requested solution.

So problem is not only the 10 Hz, but an artifact created by the fact that sensors timestamps are slightly ahead of the sensor tf timestamp, that in turn are a bit ahed of odom tf timestamp, what when calling tf::TransformListener accumulates delay. So reordering these timestamps would also solve the problem, I suppose.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-10-18 17:33:18 -0500

Seen: 306 times

Last updated: Nov 11 '17