Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug in collision checking of VPF #303

Merged
merged 14 commits into from Feb 6, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Expand Up @@ -19,6 +19,7 @@
* Planner

* Added parabolic timing for linear spline [#302](https://github.com/personalrobotics/aikido/pull/302)
* Fixed step sequence iteration in VPF: [#303](https://github.com/personalrobotics/aikido/pull/303)

### 0.2.0 (2018-01-09)

Expand All @@ -39,7 +40,7 @@
* Planner

* Added World class: [#243](https://github.com/personalrobotics/aikido/pull/243), [#252](https://github.com/personalrobotics/aikido/pull/252), [#265](https://github.com/personalrobotics/aikido/pull/265)
* Added vector field planner [#246](https://github.com/personalrobotics/aikido/pull/246), [#262](https://github.com/personalrobotics/aikido/pull/262), [#268](https://github.com/personalrobotics/aikido/pull/268)
* Added vector field planner: [#246](https://github.com/personalrobotics/aikido/pull/246), [#262](https://github.com/personalrobotics/aikido/pull/262), [#268](https://github.com/personalrobotics/aikido/pull/268)

* RViz

Expand Down
Expand Up @@ -73,7 +73,7 @@ class BodyNodePoseVectorField : public VectorField
const aikido::constraint::Testable* constraint,
double evalStepSize,
double& evalTimePivot,
bool excludeEndTime) const override;
bool includeEndTime) const override;

/// Return meta skeleton state space.
aikido::statespace::dart::MetaSkeletonStateSpacePtr
Expand Down
4 changes: 2 additions & 2 deletions include/aikido/planner/vectorfield/VectorField.hpp
Expand Up @@ -48,15 +48,15 @@ class VectorField
/// \param[in/out] evalTimePivot Input provides the start time of the
/// trajectory
/// to evaluate; output returns the end time of the trajectory evaluate.
/// \param[in] excludeEndTime Whether end time is excluded in evaluation.
/// \param[in] includeEndTime Whether end time is included in evaluation.
/// evaluate.
/// satisfaction.
virtual bool evaluateTrajectory(
const aikido::trajectory::Trajectory& trajectory,
const aikido::constraint::Testable* constraint,
double evalStepSize,
double& evalTimePivot,
bool excludeEndTime) const = 0;
bool includeEndTime) const = 0;

/// Returns state space.
aikido::statespace::StateSpacePtr getStateSpace();
Expand Down
4 changes: 2 additions & 2 deletions src/planner/vectorfield/BodyNodePoseVectorField.cpp
Expand Up @@ -97,7 +97,7 @@ bool BodyNodePoseVectorField::evaluateTrajectory(
const aikido::constraint::Testable* constraint,
double evalStepSize,
double& evalTimePivot,
bool excludeEndTime) const
bool includeEndTime) const
{
if (constraint == nullptr)
{
Expand All @@ -108,7 +108,7 @@ bool BodyNodePoseVectorField::evaluateTrajectory(
aikido::common::StepSequence seq(
evalStepSize,
true,
excludeEndTime,
includeEndTime,
evalTimePivot,
trajectory.getEndTime());

Expand Down
2 changes: 1 addition & 1 deletion src/planner/vectorfield/VectorFieldPlanner.cpp
Expand Up @@ -115,7 +115,7 @@ std::unique_ptr<aikido::trajectory::Spline> followVectorField(
&constraint,
checkConstraintResolution,
lastEvaluationTime,
false))
true))
{
planningResult->message = "Constraint violated.";
return nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/planner/vectorfield/detail/VectorFieldIntegrator.cpp
Expand Up @@ -131,7 +131,7 @@ void VectorFieldIntegrator::check(const Eigen::VectorXd& q, double t)
mConstraint,
mConstraintCheckResolution,
mLastEvaluationTime,
true))
false))
{
throw ConstraintViolatedError();
}
Expand Down