Skip to content

Commit 84addf1

Browse files
[TransitionPlanner] Add a setter of edge with pointer.
1 parent 2a499ad commit 84addf1

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

include/hpp/manipulation/path-planner/transition-planner.hh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,10 @@ class HPP_MANIPULATION_DLLAPI TransitionPlanner : public core::PathPlanner {
131131
/// \param id index of the edge in the constraint graph
132132
void setEdge(std::size_t id);
133133

134+
/// Set transition along which we wish to plan a path
135+
/// \param transition shared pointer to the transition
136+
void setEdge(const graph::EdgePtr_t& transition);
137+
134138
/// Create a Reeds and Shepp steering method and path it to the problem.
135139
void setReedsAndSheppSteeringMethod(double turningRadius);
136140

src/path-planner/transition-planner.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ core::PathVectorPtr_t TransitionPlanner::timeParameterization(
186186

187187
void TransitionPlanner::setEdge(std::size_t id) {
188188
graph::EdgePtr_t edge(getEdgeOrThrow(id));
189+
setEdge(edge);
190+
}
191+
192+
void TransitionPlanner::setEdge(const graph::EdgePtr_t& edge) {
189193
innerProblem_->constraints(edge->pathConstraint());
190194
innerProblem_->pathValidation(edge->pathValidation());
191195
innerProblem_->steeringMethod(edge->steeringMethod());

0 commit comments

Comments
 (0)