-
Notifications
You must be signed in to change notification settings - Fork 0
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
Conversation
transformationSensorToMap_ = tf2::transformToEigen(transformGeom); | ||
|
||
transformGeom = transformBuffer_.lookupTransform(generalParameters_.robotBaseFrameId_, sensorFrameId_, timeStamp, | ||
ros::Duration(1.0)); // TODO(max): Why wrong direction? |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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? |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about this one?
There was a problem hiding this 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.
Ok, it would be good to understand what limitations/bugs they describe so
that we dont have any surprises later.
Do you have any thoughts?
…On Sun, Oct 6, 2024 at 8:12 PM Taaj Street ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In elevation_mapping/src/sensor_processors/SensorProcessorBase.cpp
<#1 (comment)>
:
> - Eigen::Affine3d transform;
- poseTFToEigen(transformTf, transform);
- rotationBaseToSensor_.setMatrix(transform.rotation().matrix());
- translationBaseToSensorInBaseFrame_.toImplementation() = transform.translation();
-
- transformListener_.lookupTransform(generalParameters_.mapFrameId_, generalParameters_.robotBaseFrameId_, timeStamp,
- transformTf); // TODO(max): Why wrong direction?
- poseTFToEigen(transformTf, transform);
- rotationMapToBase_.setMatrix(transform.rotation().matrix());
- translationMapToBaseInMapFrame_.toImplementation() = transform.translation();
+ geometry_msgs::TransformStamped transformGeom;
+ transformGeom = transformBuffer_.lookupTransform(generalParameters_.mapFrameId_, sensorFrameId_, timeStamp, ros::Duration(1.0));
+ transformationSensorToMap_ = tf2::transformToEigen(transformGeom);
+
+ transformGeom = transformBuffer_.lookupTransform(generalParameters_.robotBaseFrameId_, sensorFrameId_, timeStamp,
+ ros::Duration(1.0)); // TODO(max): Why wrong direction?
These were all existing
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APIX2QBZPZBMYVEW63CRZ43Z2D5JPAVCNFSM6AAAAABO6JFDROVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNJQGQ4DQNZSHE>
.
You are receiving this because your review was requested.Message ID:
***@***.***>
|
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.