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

Very high frequency #17

Closed
muttistefano opened this issue Jan 10, 2024 · 5 comments
Closed

Very high frequency #17

muttistefano opened this issue Jan 10, 2024 · 5 comments

Comments

@muttistefano
Copy link

Hi all, i am using the topic hardware interface to move multiple robots in gazebo, using the plugin in this way:

<hardware>
          <plugin>topic_based_ros2_control/TopicBasedSystem</plugin>   
          <param name="joint_commands_topic">joint_commands</param>   
          <param name="joint_states_topic">jnt_gz</param>   
          <param name="sum_wrapped_joint_states">false</param>   
</hardware>

I noticed that the /joint_commands topic is published at a frequency of almost 10000Hz.
Is there a way to modify this?
The controller manager update rati is set to 50.
Thanks

@JafarAbdi
Copy link
Collaborator

Hi, do you mind sharing your ros2 control yaml file? In theory, it shouldn't run at higher frequency than the controller manager

@muttistefano
Copy link
Author

@peterdavidfagan
Copy link

peterdavidfagan commented Feb 5, 2024

I am also finding that the frequency at which command messages are published, exceeds that of the controller manager.

Update: likely relates to ros-controls/ros2_control#859. Are you using sim_time as well @muttistefano? When I use system time this issue disappears.

@muttistefano
Copy link
Author

Hi , sorry for the late reply, i might have missed the mail.
I am indeed using the sim_time.
I will give it a try without it.
Thanks

@JafarAbdi
Copy link
Collaborator

Looks like more of a ros2_control issue than topic_based_ros2_control, closing for now. Please feel free to re-open

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