ros_plugin_demo
Demonstration of the ROS PlugInLib
 All Data Structures Namespaces Files Functions Variables Pages
direct_ortho.cpp
Go to the documentation of this file.
1 
6 #include <pluginlib/class_list_macros.h>
8 
10 
11 namespace plugin_demo_plugins_namespace
12 {
13  int DirectOrtho::onInit(ros::NodeHandle roshandle)
14  {
15  ROS_INFO("[plugin direct_ortho] done init.");
16  }
17 
18  int DirectOrtho::getPath()
19  {
20  current_path.poses.push_back(start);
21 
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);
26 
27  current_path.poses.push_back(target);
28  ROS_INFO("[plugin direct_ortho] here comes the path");
29  }
30 }
Contain the DirectOrtho class.
This class create a path parallel to the axies of the coordinate system between the start and target ...