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

Upgrade to tf2 #1

Merged
merged 2 commits into from
Jan 8, 2025
Merged

Upgrade to tf2 #1

merged 2 commits into from
Jan 8, 2025

Conversation

ecthelion99
Copy link
Collaborator

In preparation for a ROS2 port, this PR upgrades to tf2 from tf. It is a rebase of ANYbotics#203 onto master. Built and tested on ROS Noetic.

transformationSensorToMap_ = tf2::transformToEigen(transformGeom);

transformGeom = transformBuffer_.lookupTransform(generalParameters_.robotBaseFrameId_, sensorFrameId_, timeStamp,
ros::Duration(1.0)); // TODO(max): Why wrong direction?

Choose a reason for hiding this comment

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

@ecthelion99 - What is this TODO? Did you put it here or was it in existing code?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These were all existing

translationBaseToSensorInBaseFrame_.toImplementation() = translationVector;

transformGeom = transformBuffer_.lookupTransform(generalParameters_.mapFrameId_, generalParameters_.robotBaseFrameId_,
timeStamp, ros::Duration(1.0)); // TODO(max): Why wrong direction?

Choose a reason for hiding this comment

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

@ecthelion99 - same question.

transformListener_.lookupTransform(targetFrame, inputFrameId, timeStamp, transformTf);
} catch (tf::TransformException& ex) {
geometry_msgs::TransformStamped transformGeom;
transformGeom = transformBuffer_.lookupTransform(targetFrame, inputFrameId, timeStamp, ros::Duration(1.0)); // FIXME: missing 0.001 retry duration

Choose a reason for hiding this comment

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

What about this one?

Copy link

@tenzincrouch tenzincrouch left a comment

Choose a reason for hiding this comment

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

Changes look fine. Noted there are several TODO/Fixmes. Keen to understand what these are and why they are there better.

@tenzincrouch
Copy link

tenzincrouch commented Oct 10, 2024 via email

@tenzincrouch tenzincrouch merged commit cd59e8d into master Jan 8, 2025
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.

3 participants