-
Notifications
You must be signed in to change notification settings - Fork 268
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
Odometry topic for the track controller system #2021
Conversation
Ok I tried to update this PR to use an odometry message instead of the kinematic state as suggested here, but obviously I must have missed some git wizzardry command as suddenly 55 files are marked as changed. What I did is the following:
At that point I didn't check if it already had the "55 files changed", but since the DCO was no OK I did what it said, i.e.:
And here we are. :-( What should I have done differently? Thanks. |
Given below output, I think I should do a
|
As @mjcarroll points out this is not correct, |
When we talk about signing for DCO, it is using I believe with a new enough git, you can do (for example) |
I think I succeeded in reverting everything and committing only the files I changed including DCO signoff. :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks pretty good to me. The only minor knit I have is that you should document SDF parameters in the header, this allows the documentation online to be updated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be nice to get an integration test for this in.
Well, I'm generally all in favour of integration tests, but in this case I don't really see what could be a good test:
Unless you have a suggestion for a better test? |
I'd say a test showing the changes in position and velocity would be good. Might be trivial, but could catch future changes that break behavior. |
@azeey I added the test and guess what.. there was a bug. :-) I was publishing The test will currently fail if Dart 6.13 is used due to #2008. As I am running Dart 6.13 I had to change some signs to get it to run (but these are removed in the commit). |
@azeey I just noticed the |
I'll add it back in. The code freeze is when everything must be merged by. Since I didn't see any changes recently, I just assumed you didn't have time to work on it. |
Is this ready now? Some checks are not successful but it is not clear to me if this needs further action and if so, which. |
There are a few style errors (run |
Signed-off-by: Johan Rutgeerts <johan.rutgeerts@lancewood.eu>
Signed-off-by: Johan Rutgeerts <johan.rutgeerts@lancewood.eu>
Signed-off-by: Johan Rutgeerts <johan.rutgeerts@lancewood.eu>
Signed-off-by: Johan Rutgeerts <johan.rutgeerts@lancewood.eu>
Signed-off-by: Johan Rutgeerts <johan.rutgeerts@lancewood.eu>
Signed-off-by: Johan Rutgeerts <johan.rutgeerts@lancewood.eu>
Signed-off-by: Johan Rutgeerts <johan.rutgeerts@lancewood.eu>
@azeey I rebased the PR and fixed the style errors.
|
This seems like a problem with the machine. We're looking into it. |
@azeey So is there still any further action required on my side? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works great. Thanks for this awesome addition.
🎉 New feature
Closes #2016
Requires gazebosim/gz-msgs#352Summary
This PR adds odometry output to the track controller system, publishing position and instantaneous velocity. That way a conveyor with an encoder and/or resolver for respectively position and velocity feedback can be simulated.
The default topic is
/model/<model name>/link/<link name>/odometry
.An alternative can be chosen by specifying the
odometry_topic
parameter of the plugin in the SDF.The publication frequency is set through parameter
odometry_publish_frequency
.Test it
Run the conveyor demo:
gz sim conveyor.sdf
Echo the odometry messages:
gz topic -e -t /model/conveyor/link/base_link/odometry