17 #include <adore_if_ros_msg/NavigationData.h>
29 adore_if_ros_msg::NavigationData
operator()(
const std::pair<adore::env::BorderBased::BorderID,double> & id2cost)
31 adore_if_ros_msg::NavigationData msg;
33 msg.borderId.first.x = id2cost.first.m_first.m_X;
34 msg.borderId.first.y = id2cost.first.m_first.m_Y;
35 msg.borderId.first.z = id2cost.first.m_first.m_Z;
36 msg.borderId.last.x = id2cost.first.m_last.m_X;
37 msg.borderId.last.y = id2cost.first.m_last.m_Y;
38 msg.borderId.last.z = id2cost.first.m_last.m_Z;
40 msg.cost = id2cost.second;
47 void operator()(adore_if_ros_msg::NavigationDataConstPtr msg,std::pair<adore::env::BorderBased::BorderID,double>& id2cost)
49 id2cost.first.m_first.m_X = msg->borderId.first.x;
50 id2cost.first.m_first.m_Y = msg->borderId.first.y;
51 id2cost.first.m_first.m_Z = msg->borderId.first.z;
52 id2cost.first.m_last.m_X = msg->borderId.last.x;
53 id2cost.first.m_last.m_Y = msg->borderId.last.y;
54 id2cost.first.m_last.m_Z = msg->borderId.last.z;
56 id2cost.second = msg->cost;
Definition: areaofeffectconverter.h:20
Definition: navigationdataconverter.h:25
adore_if_ros_msg::NavigationData operator()(const std::pair< adore::env::BorderBased::BorderID, double > &id2cost)
Definition: navigationdataconverter.h:29
void operator()(adore_if_ros_msg::NavigationDataConstPtr msg, std::pair< adore::env::BorderBased::BorderID, double > &id2cost)
Definition: navigationdataconverter.h:47