Skip to content
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

publish hz of /franka_state_controller/joint_states does not reach 1000 hz #355

Open
sm3304love opened this issue Aug 15, 2023 · 4 comments

Comments

@sm3304love
Copy link

When using the franka_ros package, I get only 650hz despite setting the publish rate of /franka_state_controller/joint_states to 1000. How should I solve this?

Screenshot from 2023-08-15 16-23-28

franka_ros version : 0.8.0
libfranka version : 0.8.0

@sm3304love sm3304love changed the title publish hz of /franka_state_controller/joint_states does not reach 1000 publish hz of /franka_state_controller/joint_states does not reach 1000 hz Aug 16, 2023
@QAbot-zh
Copy link

@sm3304love
Copy link
Author

Do you set up the real-time kernel on your device? https://frankaemika.github.io/docs/installation_linux.html?highlight=real+time#setting-up-the-real-time-kernel

Yes, I already installed real time kernel on ubuntu 18.04. The robot itself is good at moving. My concern is that the controller's control cycle is 1000 Hz, but reading the point state is less than 1000 Hz

@QAbot-zh
Copy link

Perhaps it is the performance loss of ROS in communication. I found a blog talking about the issue.
https://zhuanlan.zhihu.com/p/624606278

@marcbone
Copy link
Contributor

I wouldnt worry about it too much. The controller itself runs at 1000 Hz. However, the state publisher is not meant to be realtime. If you want to access the state at 1000Hz best practice would be to write your own controller that uses the FrankaStateInterface. You can verify that the control is running stable by looking at the control_command_success_rate in the franka state message. If it is above 0.95 everything is fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants