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

It is allowed to change the update() method frequency for PR2 controllers?

asked 2011-05-23 22:09:33 -0600

mbj gravatar image

updated 2011-06-22 20:44:33 -0600

mmwise gravatar image

I found the parameters /pr2_controller_manager/mechanism_statistics_publish_rate and /pr2_controller_manager/joint_state_publish_rate, but I didn't find anything that allows me to change the update() method frequency of a controller.

There is any way to modify this or the update() frequency is necessary 1000Hz?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-06-17 12:29:07 -0600

mmwise gravatar image

updated 2011-06-22 20:44:59 -0600

The PR2 controllers are design and tuned to operate at 1KHz, changing the update rate of the controller will significantly impact the stability of the controllers on the PR2. It is not recommended to change the update rate, you do so at your own risk.

edit flag offensive delete link more
1

answered 2011-06-17 12:31:54 -0600

Straszheim gravatar image

in the pr2_ethercat package, look in main.cpp for:

period = 1e+6; // 1 ms in nanoseconds

but you shouldn't do this on a real PR2

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-05-23 22:09:33 -0600

Seen: 267 times

Last updated: Jun 22 '11