-
Notifications
You must be signed in to change notification settings - Fork 327
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
rqt_joint_controller fix for getting feedback #893
Conversation
…nd get feedback from the actual joint states
Hi @tstoyanov! ros2_controllers/joint_trajectory_controller/src/joint_trajectory_controller.cpp Lines 811 to 812 in 960e073
We made the change somewhen on rolling, and fixted rqt_jtc with #643 Or have you encountered a problem recently? We fixed some issues with #890. I'll close this PR now, if you still have problems feel free to open an issue describing it. You are cordially invited to contribute to this repo, e.g., I just created an issue with some ideas for refurbishing rqt_jtc: #894 |
Right, sorry about that, should have checked more carefully. I am running the most recent humble release, that has joint_trajectory_controller at version 2.26 (current in humble branch is 2.29) and probably that change has not propagated there yet, since I don't see the controller_state topic at all when I get a controller up and running. Thanks for checking, will either build from source or wait for the next releases. |
That is strange, controller_state is there even for an earlier version of 2.26. Can you verify with
|
Yes, here is the output:
Only one publisher pops up. This is when running example_1 from https://github.com/ros-controls/ros2_control_demos |
Are you sure you have 2.26 installed? See
|
Right, this was unexpected :) I had an overlay from franka which was running a joint trajectory controller at version 3.3. I did a clean workspace and with 2.26 I get both state and controller_state, as expected. The release version of rqt_joint_trajectory_cntroller still does not work out of the box with that particular example, but I think that's because the joints are continuous (no limits) and the plugin doesn't know what to do when initializing the sliders. Mystery solved, thanks for the help! |
You're welcome :) See -> if you build both from source it should work now (maybe you need to copy the changes from the demos to the humble branch unless the backport was merged there). |
Covariances values should come from the IMU_Broadcaster, like the frame_id or the time
At some point there has been a change in the feedback that joint_trajectory_controllers publish and that has not propagated tot the rqt plugin. I've deduced the correct place to get the joint state values would be from /controller_name/state.actual instead of /controller_name/controller_state.feedback. Tested change with current humble release and gazebo plugin, seems to work fine for me.