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

Add possibility to change parent_child_id #31

Closed
wants to merge 2 commits into from

Conversation

giacomo30196
Copy link

No description provided.

Copy link
Owner

@christianrauch christianrauch left a comment

Choose a reason for hiding this comment

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

This will change the behaviour as the parent frame will not be the camera optical frame any more.

What is the application in which you have to change the parent frame in this way and that cannot be achieved by other means (e.g. attaching an identity transform to the current parent frame)?

At least this change should be optional and use the old behaviour by default.

Copy link
Owner

Choose a reason for hiding this comment

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

Do not commit personal IDE settings.

@@ -215,6 +216,7 @@ void AprilTagNode::onCamera(const sensor_msgs::msg::Image::ConstSharedPtr& msg_i
// 3D orientation and position
geometry_msgs::msg::TransformStamped tf;
tf.header = msg_img->header;
tf.header.frame_id = parent_frame_id;
Copy link
Owner

Choose a reason for hiding this comment

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

This will override the frame ID from the camera in which frame the tag is detected and there is no way to prevent this.

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