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

can i control the speed of ros running?

asked 2014-12-23 04:38:17 -0600

mudassar gravatar image

Can I control the speed of ros running on my PC? I have ros hydro installed on ubuntu 12.04 LTS. For some reason, I wish to change the speed of ros running on my system (say i wish to speed up or speed down the code-running at the back end of my ros package, i.e; controlling the ros running speed). Is that possible?

A solution without modification of package code is highly desirable.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-12-23 06:36:36 -0600

Wolf gravatar image

What speed exactly do your what to reduce?

If you want to reduce the rate at which a message callback is being called, you can use topic_tools throttle:

http://wiki.ros.org/topic_tools/throttle

If you want to adjust an internal loop you can embed a ros::Rate, call .sleep() on it like in the tutorial ( http://wiki.ros.org/ROS/Tutorials/Wri... ) and use a ros parameter to set the loop rate in your node from the param server without having to change your code....

edit flag offensive delete link more
0

answered 2014-12-23 05:51:26 -0600

mutzechai gravatar image

First, it would be useful for us to know which kind of application you're developing. I don't think the speed of ros running can be set

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-12-23 04:38:17 -0600

Seen: 551 times

Last updated: Dec 23 '14