13#include <armarx/navigation/client/ice/NavigatorInterface.h>
47 <<
"Either `locationId` or `pose` has to be set.";
66 throw armarx::LocalException(
"Invalid use of client::detail::Waypoint: either `locationId` "
67 "or `pose` has to be set!");
74 targets.reserve(waypoints.size());
76 std::transform(waypoints.begin(),
79 [](
const auto& wp) { return defrost(wp); });
93 std::vector<core::TargetAlternative>
96 std::vector<core::TargetAlternative> result;
97 result.reserve(alternatives.size());
99 std::transform(alternatives.begin(),
101 std::back_inserter(result),
102 [](
const auto& alt) { return defrost(alt); });
133 target.pose ?
toIce(target.pose->matrix()) :
nullptr,
134 .strategy =
freeze(target.strategy)};
141 waypoints.reserve(
targets.size());
143 std::transform(
targets.begin(),
145 std::back_inserter(waypoints),
146 [](
const auto& wp) { return freeze(wp); });
155 .target = alternative.
target.matrix(),
161 freeze(
const std::vector<core::TargetAlternative>& alternatives)
164 result.reserve(alternatives.size());
166 std::transform(alternatives.begin(),
168 std::back_inserter(result),
169 [](
const auto& alt) { return freeze(alt); });
#define ARMARX_UNEXPECTED_ENUM_VALUE(EnumType, value)
Throw an UnexpectedEnumValueException.
Brief description of class targets.
#define ARMARX_CHECK(expression)
Shortcut for ARMARX_CHECK_EXPRESSION.
#define ARMARX_IMPORTANT
The logging level for always important information, but expected behaviour (in contrast to ARMARX_WAR...
sequence< Waypoint > Waypoints
sequence< TargetAlternative > TargetAlternatives
This file is part of ArmarX.
client::detail::GlobalPlanningStrategy freeze(const client::GlobalPlanningStrategy &strategy)
client::GlobalPlanningStrategy defrost(const client::detail::GlobalPlanningStrategy &strategy)
std::vector< WaypointTarget > WaypointTargets
void fromIce(const std::map< IceKeyT, IceValueT > &iceMap, boost::container::flat_map< CppKeyT, CppValueT > &cppMap)
void toIce(std::map< IceKeyT, IceValueT > &iceMap, const boost::container::flat_map< CppKeyT, CppValueT > &cppMap)
GlobalPlanningStrategy strategy