#include "ros/ros.h"
#include "iamcar/Park.h"
#include "obstacle_msgs/Obstacles.h"
+#include "geometry_msgs/Pose.h"
#include "compile.h"
#include "obstacle.h"
p.tlog(p.findt());
}
}
- // TODO res.path
- return true;
+ for (auto n: p.tlog().back()) {
+ geometry_msgs::Pose p;
+ p.position.x = n->x();
+ p.position.y = n->y();
+ p.position.z = 0;
+ struct quaternion q = htoq(n->h());
+ p.orientation.x = q.x;
+ p.orientation.y = q.y;
+ p.orientation.z = q.z;
+ p.orientation.w = q.w;
+ res.path.push_back(p);
+ }
+ return p.goal_found();
}
int main(int argc, char **argv)