Skip to content

Upgrade to tf2#1

Merged
tenzincrouch merged 2 commits into
masterfrom
feature/tf2
Jan 8, 2025
Merged

Upgrade to tf2#1
tenzincrouch merged 2 commits into
masterfrom
feature/tf2

Conversation

@ecthelion99

Copy link
Copy Markdown
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?

Copy link
Copy Markdown

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
Copy Markdown
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?

Copy link
Copy Markdown

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What about this one?

@tenzincrouch tenzincrouch left a comment

Copy link
Copy Markdown

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

tenzincrouch commented Oct 10, 2024 via email

Copy link
Copy Markdown

@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