Skip to content

Commit

Permalink
transform and publish footprint
Browse files Browse the repository at this point in the history
  • Loading branch information
cmraaron committed Apr 24, 2023
1 parent 460329b commit 02c1fce
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/nav_to_anywhere.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ int main(int argc, char * argv[])
}
}
broadcast_tf();
geometry_msgs::msg::PolygonStamped oriented_footprint;
nav2_costmap_2d::transformFootprint(
pos_active.x, pos_active.y, pos_active.theta, footprint,
oriented_footprint);
local_footprint_pub->publish(oriented_footprint);
});

const auto nav_to_pose_action_service = rclcpp_action::create_server<NavigateToPose>(
Expand Down

0 comments on commit 02c1fce

Please sign in to comment.