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

Encoder Odometry #78

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Encoder Odometry #78

wants to merge 8 commits into from

Conversation

concavegit
Copy link
Contributor

This subscribes to the diffdrive_raw topic and broadcasts a transform from odom to base_link. There are a few uncertainties, such as my assumption that tf2::Vector3 is implicitly converted from RPY to a quaternion with https://docs.ros.org/kinetic/api/tf2/html/namespacetf2.html#a701335dd7331e8391843b31dd89746a6. However, that is a predictable and harmless fix so we only stand to gain by pushing this into master.

@@ -0,0 +1,3 @@
float64 wheelbase
Copy link
Collaborator

Choose a reason for hiding this comment

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

Tell me what this is

tf2::convert(newOrientation, transformStamped.transform.rotation);

const auto delta_position = tf2::quatRotate(newOrientation, tf2::Vector3(0, 0, tangentialVel * dt));
tf2::convert(delta_position, transformStamped.transform.translation);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Something something delta x + old position = new positon

Copy link
Collaborator

@nathanestill nathanestill left a comment

Choose a reason for hiding this comment

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

Fix

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

Successfully merging this pull request may close these issues.

2 participants