6 #include <pluginlib/class_list_macros.h>
11 namespace plugin_demo_plugins_namespace
13 int DirectOrtho::onInit(ros::NodeHandle roshandle)
15 ROS_INFO(
"[plugin direct_ortho] done init.");
18 int DirectOrtho::getPath()
20 current_path.poses.push_back(start);
22 geometry_msgs::PoseStamped point;
23 double yaw = ( getYawFromQuat(start.pose.orientation) + getYawFromQuat(target.pose.orientation) ) / 2;
24 setPose2d(&point, start.pose.position.x, target.pose.position.y, yaw);
25 current_path.poses.push_back(point);
27 current_path.poses.push_back(target);
28 ROS_INFO(
"[plugin direct_ortho] here comes the path");
Contain the DirectOrtho class.
This class create a path parallel to the axies of the coordinate system between the start and target ...