Go to the documentation of this file.
3 #include <boost/shared_ptr.hpp>
5 #include <Eigen/Geometry>
7 #include <VirtualRobot/Robot.h>
8 #include <VirtualRobot/SceneObject.h>
9 #include <VirtualRobot/SceneObjectSet.h>
17 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
24 VirtualRobot::SceneObjectSetPtr
obstacles = VirtualRobot::SceneObjectSetPtr());
29 virtual std::vector<Eigen::Vector2f>
plan(
const Eigen::Vector2f& start,
30 const Eigen::Vector2f& goal) = 0;
60 virtual std::vector<point2D>
63 return std::vector<point2D>();
virtual std::vector< Eigen::Vector2f > plan(const Eigen::Vector2f &start, const Eigen::Vector2f &goal)=0
VirtualRobot::SceneObjectSetPtr obstacles
void setRobot(VirtualRobot::RobotPtr robot)
update robot
virtual ~Planner2D()=default
VirtualRobot::RobotPtr robot
Eigen::Vector2f sceneBoundsMax
std::string robotColModelName
Eigen::Matrix4f positionToMatrix4f(Eigen::Vector2f pos)
virtual std::vector< point2D > getGridVisu(float xdist, float ydist, Eigen::Vector2f goal)
void setRobotColModel(const std::string &robotColModelName)
set name of RobotNode which should be used for collision detection
void setObstacles(VirtualRobot::SceneObjectSetPtr obstacles)
Update obstacles.
bool hasParameter(const std::string &s)
check if a parameter is set
Eigen::Vector2f sceneBoundsMin
MatrixXX< 4, 4, float > Matrix4f
EIGEN_MAKE_ALIGNED_OPERATOR_NEW Planner2D(VirtualRobot::RobotPtr robot, VirtualRobot::SceneObjectSetPtr obstacles=VirtualRobot::SceneObjectSetPtr())
Initialize Planner with robot and obstacles.
float getParameter(const std::string &s)
get the corresponding float parameter (0 is returned when parameter string is not present)
void setParameter(const std::string &s, float p)
set a float parameter that is identified with a string
std::map< std::string, float > parameters
double s(double t, double s0, double v0, double a0, double j)
std::shared_ptr< class Robot > RobotPtr
VirtualRobot::CollisionModelPtr robotCollisionModel