Skip to content

Encoder Odometry#78

Open
concavegit wants to merge 8 commits into
masterfrom
encodom
Open

Encoder Odometry#78
concavegit wants to merge 8 commits into
masterfrom
encodom

Conversation

@concavegit
Copy link
Copy Markdown
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.

Comment thread msg/DiffDrive.msg
@@ -0,0 +1,3 @@
float64 wheelbase
Copy link
Copy Markdown
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

Comment thread src/EncOdom/EncOdom.cpp Outdated
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
Copy Markdown
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
Copy Markdown
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