Skip to content

Commit

Permalink
fixed maxz safety area transformation
Browse files Browse the repository at this point in the history
  • Loading branch information
klaxalk committed Oct 25, 2023
1 parent 9fe7908 commit 57aa7fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/control_manager/control_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6993,11 +6993,17 @@ double ControlManager::getMaxZ(const std::string& frame_id) {

double safety_area_max_z = std::numeric_limits<float>::max();

std::string from_frame = _safety_area_frame_;

if (_safety_area_frame_ == "latlon_origin") {
from_frame = frame_id;
}

{

geometry_msgs::PointStamped point;

point.header.frame_id = _safety_area_frame_;
point.header.frame_id = from_frame;
point.point.x = 0;
point.point.y = 0;
point.point.z = _safety_area_max_z_;
Expand Down

0 comments on commit 57aa7fc

Please sign in to comment.