Skip to content

feat: add landmarkConfirmed node to the bt_treenodes - #39

Open
ashishagain wants to merge 7 commits into
rework/landmark-serverfrom
rework/landmark-server-ashish
Open

ashishagain wants to merge 7 commits into
rework/landmark-serverfrom
rework/landmark-server-ashish

Conversation

@ashishagain

Copy link
Copy Markdown
Contributor

Added new feature to confirm landmark identifications. Made a node called LamdmarkConfirmation.


namespace vortex_bt_nodes::map {

/**

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

fix typo should be observed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Is this the fix you referred to?

Comment on lines +39 to +40
const auto map_in_odom =
map_->lookup(map_->odom_frame(), map_->frame_name("map"));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Instead of looking up "map" by name, you can use map_->map_to_odom(). It uses the frame the landmark map is actually published in, and returns nullopt before the first map arrives. It also does the yaw math for you:

if (yaw_deg) {
const auto goal_in_odom =
map_->map_to_odom(make_pose(0.0, 0.0, 0.0, *yaw_deg * M_PI / 180.0));
if (!goal_in_odom) {
spdlog::warn("[{}] map is not in TF", name());
return std::nullopt;
}
yaw = yaw_of(*goal_in_odom);

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Can you verify it is now fixed?

@CurryMonsters CurryMonsters left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Also put the corresponding nodes into their respective folders

@ashishagain ashishagain linked an issue Oct 26, 2026 that may be closed by this pull request
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.

[TASK] BT nodes: LandmarkConfirmed, LookAtFrame, Turn

2 participants