Skip to content

Commit

Permalink
Fix usage of (new explicit) TPoint3D constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
jlblancoc committed Apr 19, 2024
1 parent 1019632 commit 8c2a359
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions mrpt_path_planning/src/algos/render_tree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ auto mpp::render_tree(
ret->setName("render_tree");
auto& scene = *ret;

const auto poseHeight = [&ro](const mrpt::poses::CPose3D& p) {
const auto poseHeight = [&ro](const mrpt::poses::CPose3D& p)
{
if (ro.phi2z_scale == 0)
return p;
else
Expand All @@ -39,7 +40,8 @@ auto mpp::render_tree(
return r;
}
};
const auto poseHeightT = [&ro](const mrpt::math::TPose3D& p) {
const auto poseHeightT = [&ro](const mrpt::math::TPose3D& p)
{
if (ro.phi2z_scale == 0)
return p;
else
Expand Down Expand Up @@ -377,13 +379,10 @@ auto mpp::render_tree(
obj->setName("GOAL");
obj->enableShowName();
obj->setColor_u8(ro.color_goal);
obj->setLocation(pi.stateGoal.state.point());
obj->setLocation(mrpt::math::TPoint3D(pi.stateGoal.state.point()));
scene.insert(obj);
}
else
{
THROW_EXCEPTION("Unknown type for goal.state");
}
else { THROW_EXCEPTION("Unknown type for goal.state"); }

// Log msg:
if (!ro.log_msg.empty())
Expand Down

0 comments on commit 8c2a359

Please sign in to comment.