A joint space goal volume.
More...
#include <planning.h>
A joint space goal volume.
Definition at line 191 of file robowflex_dart/include/robowflex_dart/planning.h.
◆ JointRegionGoal() [1/2]
JointRegionGoal::JointRegionGoal |
( |
const PlanBuilder & |
builder, |
|
|
const Eigen::Ref< const Eigen::VectorXd > & |
state, |
|
|
double |
tolerance = 0. |
|
) |
| |
JointRegionGoal
Definition at line 168 of file robowflex_dart/src/planning.cpp.
171 state - Eigen::VectorXd::Constant(state.size(), tolerance),
172 state + Eigen::VectorXd::Constant(state.size(), tolerance))
JointRegionGoal(const PlanBuilder &builder, const Eigen::Ref< const Eigen::VectorXd > &state, double tolerance=0.)
◆ JointRegionGoal() [2/2]
JointRegionGoal::JointRegionGoal |
( |
const PlanBuilder & |
builder, |
|
|
const Eigen::Ref< const Eigen::VectorXd > & |
lower, |
|
|
const Eigen::Ref< const Eigen::VectorXd > & |
upper |
|
) |
| |
Definition at line 176 of file robowflex_dart/src/planning.cpp.
178 : ompl::base::GoalSampleableRegion(builder.
info)
180 ,
lower_(si_->allocState())
181 ,
upper_(si_->allocState())
183 if (lower.size() != upper.size())
186 if (builder.
space->getDimension() != lower.size())
ompl::base::State * upper_
ompl::base::State * lower_
ompl::base::SpaceInformationPtr info
Actual Space Information.
ompl::base::StateSpacePtr space
Actual OMPL State Space (might be constrained).
Eigen::VectorXd data
Vector for configuration.
◆ ~JointRegionGoal()
JointRegionGoal::~JointRegionGoal |
( |
| ) |
|
◆ distanceGoal()
double JointRegionGoal::distanceGoal |
( |
const ompl::base::State * |
state | ) |
const |
|
override |
Definition at line 214 of file robowflex_dart/src/planning.cpp.
220 const auto &ss = std::dynamic_pointer_cast<StateSpace>(si_->getStateSpace());
223 for (
int i = 0; i < l.size(); ++i)
225 const auto &joint = ss->getJoint(i);
226 const auto &sv = joint->getSpaceVarsConst(s);
227 const auto &lv = joint->getSpaceVarsConst(l);
228 const auto &uv = joint->getSpaceVarsConst(u);
231 d += joint->distance(sv, lv);
233 d += joint->distance(sv, uv);
◆ maxSampleCount()
unsigned int JointRegionGoal::maxSampleCount |
( |
| ) |
const |
|
override |
◆ sampleGoal()
void JointRegionGoal::sampleGoal |
( |
ompl::base::State * |
state | ) |
const |
|
override |
◆ lower_
ompl::base::State* robowflex::darts::JointRegionGoal::lower_ |
|
private |
◆ rng_
ompl::RNG robowflex::darts::JointRegionGoal::rng_ |
|
mutableprivate |
◆ upper_
ompl::base::State* robowflex::darts::JointRegionGoal::upper_ |
|
private |
The documentation for this class was generated from the following files: