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

Joint Tutorial needs topic_name in SDF examples. #2629

Open
wants to merge 1 commit into
base: gz-sim9
Choose a base branch
from

Conversation

bperseghetti
Copy link
Member

@bperseghetti bperseghetti commented Sep 16, 2024

🦟 Bug fix

Summary

This is my bad on not pushing up the final commit on adding topic_name in a few places so that the trajectory control portion works properly. πŸ€¦πŸ»β€β™‚οΈ

This also fixes the indents so they match when copying and pasting through tutorial.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if the library has them)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

<position_i_max>1</position_i_max>
<position_cmd_min>-20</position_cmd_min>
<position_cmd_max>20</position_cmd_max>
<topic>topic_name</topic>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So what's the behavior without <topic> specified? Can we make sure that scenario works as well?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure you would need to pass it to the default topic instead. Is that preferred? Or just want it duplicated in that portion?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess my question is, has the default topic changed? I ask because #2546 changed some default topics for some systems and those systems had to be updated.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, the default topic I don't believe has changed, the tutorial shows to publish this to control it:

gz topic -t "topic_name" -m gz.msgs.JointTrajectory -p '

Note that you need to have the topic name match that topic or it won't work.

And then it says to echo:

gz topic -e -t "/model/RR_position_control/joint_trajectory_progress"

Which once again if you change it to listen to published topic won't work. So one or the other needs to be changed/fixed to work.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So @azeey do you want an example with only the default topic, only the "assigned topic" or one with both?

Copy link
Contributor

@caguero caguero Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@azeey , any final decision/comments here?

@bperseghetti bperseghetti requested a review from azeey November 1, 2024 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In review
Development

Successfully merging this pull request may close these issues.

3 participants