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

Add vehicle model module for converting wheel encoder counts into body velocities #12351

Open
AmeliaEScott opened this issue Jun 27, 2019 · 3 comments

Comments

@AmeliaEScott
Copy link
Contributor

Describe problem solved by the proposed feature
Wheel encoder support is being worked on here. The end result of this drive will be a uORB topic that publishes raw encoder data. This data must be converted to velocities to be used by the EKF2 module, but this is not trivial: Different rovers can have different wheel configurations and different number and placement of encoders.

Describe your preferred solution
A new module should be created which handles different rover configurations, and is easily extensible so that it can be easily updated to handle new configurations.

@stale
Copy link

stale bot commented Dec 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.

@stale stale bot added the stale label Dec 24, 2019
@avielm
Copy link

avielm commented Jan 24, 2021

is there any work on this?

@stale stale bot removed the stale label Jan 24, 2021
@dagar
Copy link
Member

dagar commented Jan 24, 2021

is there any work on this?

The Roboclaw driver in current PX4 publishes odometry data.

for (int i = 0; i < 2; i++) {
_wheelEncoderMsg[i].timestamp = encoderTaskLastRun;
_wheelEncoderMsg[i].encoder_position = _encoderCounts[i];
_wheelEncoderMsg[i].speed = _motorSpeeds[i];
_wheelEncodersAdv[i].publish(_wheelEncoderMsg[i]);

The next step is actually consuming it in the ekf2, including adding appropriate configurable physical quantities for the wheels.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants