se2ez
|
Given a robot it generates queries (IK solutions for a specific set of frames) More...
#include <motionbuilder.h>
Public Types | |
enum | QueryType { NAMED, FRAME, ALL } |
Type of the requested goal generation query. More... | |
Public Member Functions | |
Constructors | |
MotionBuilder (const RobotPtr &robot, const std::string &ee, const std::vector< std::string > &frames) | |
Constructor. Will generate queries for these samples. More... | |
MotionBuilder (const RobotPtr &robot, const std::string &ee, const std::string &prefix) | |
Constructor. More... | |
MotionBuilder (const MotionBuilder &)=delete | |
MotionBuilder (MotionBuilder &&)=delete | |
Getters and Setters | |
const std::map< std::string, StatePtr > & | genGoals (QueryType type) |
generates the goals More... | |
const std::set< std::pair< StatePtr, StatePtr > > & | getQueries (QueryType type=ALL) |
Gets the motion planning queries as (Start, Goal) pairs. More... | |
Private Member Functions | |
void | genFrameGoals () |
Generates goals by finding IK solutions of the ee on the given frames. More... | |
void | genNamedGoals () |
Generates goals from the named states. More... | |
void | genAllGoals () |
Generates both Frame and Named Goals. More... | |
Private Attributes | |
std::map< std::string, StatePtr > | goals_ |
Valid goals. More... | |
std::set< std::pair< StatePtr, StatePtr > > | queries_ |
valid motion planning queries (Start,Goal) More... | |
std::set< std::string > | ees_ |
eeposes to place the end effector More... | |
RobotPtr | robot_ |
underlying robot to find configurations for More... | |
CollisionAwareChainIKPtr | ik_ |
the ik_solver More... | |
CollisionManagerPtr | cm_ |
the collision manager to be used by the ik_solver More... | |
const std::string | ee_ |
end effector used by the ik_solver More... | |
Given a robot it generates queries (IK solutions for a specific set of frames)
Definition at line 31 of file motionbuilder.h.
Type of the requested goal generation query.
Enumerator | |
---|---|
NAMED | genGoals() returns only Named |
FRAME | genGoals() returns only states found with IK |
ALL | genGoals() returns both of the above |
Definition at line 38 of file motionbuilder.h.
MotionBuilder::MotionBuilder | ( | const RobotPtr & | robot, |
const std::string & | ee, | ||
const std::vector< std::string > & | frames | ||
) |
Constructor. Will generate queries for these samples.
[in] | robot | Robot to generate the queries for |
[in] | ee | End-effector to generate the queries for |
[in] | frames | Names of frames to find ik solutions |
Definition at line 22 of file motionbuilder.cpp.
MotionBuilder::MotionBuilder | ( | const RobotPtr & | robot, |
const std::string & | ee, | ||
const std::string & | prefix | ||
) |
Constructor.
[in] | robot | Robot to generate the queries from |
[in] | ee | End-effector to generate the queries for |
[in] | prefix | prefixes of frames (e.g., to find ik solutions) |
Definition at line 31 of file motionbuilder.cpp.
|
delete |
|
delete |
|
private |
Generates both Frame and Named Goals.
Definition at line 102 of file motionbuilder.cpp.
|
private |
Generates goals by finding IK solutions of the ee on the given frames.
Definition at line 78 of file motionbuilder.cpp.
const std::map< std::string, StatePtr > & MotionBuilder::genGoals | ( | QueryType | type | ) |
generates the goals
Definition at line 46 of file motionbuilder.cpp.
|
private |
Generates goals from the named states.
Definition at line 93 of file motionbuilder.cpp.
const std::set< std::pair< StatePtr, StatePtr > > & MotionBuilder::getQueries | ( | QueryType | type = ALL | ) |
Gets the motion planning queries as (Start, Goal) pairs.
Definition at line 64 of file motionbuilder.cpp.
|
private |
the collision manager to be used by the ik_solver
Definition at line 103 of file motionbuilder.h.
|
private |
end effector used by the ik_solver
Definition at line 104 of file motionbuilder.h.
|
private |
eeposes to place the end effector
Definition at line 99 of file motionbuilder.h.
|
private |
Valid goals.
Definition at line 97 of file motionbuilder.h.
|
private |
the ik_solver
Definition at line 102 of file motionbuilder.h.
valid motion planning queries (Start,Goal)
Definition at line 98 of file motionbuilder.h.
|
private |
underlying robot to find configurations for
Definition at line 101 of file motionbuilder.h.