Skip to content
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions src/pyhpp/manipulation/problem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,10 @@ Problem::Problem(const hpp::manipulation::ProblemPtr_t& object)

void Problem::constraintGraph(const PyWGraphPtr_t& graph) {
asManipulationProblem()->constraintGraph(graph->obj);
graph_ = graph;
}

PyWGraphPtr_t Problem::constraintGraph() const {
pyhpp::manipulation::PyWGraph* graph =
new PyWGraph(asManipulationProblem()->constraintGraph());
return std::shared_ptr<PyWGraph>(graph);
}
PyWGraphPtr_t Problem::constraintGraph() const { return graph_; }

void Problem::checkProblem() const { asManipulationProblem()->checkProblem(); }

Expand Down
1 change: 1 addition & 0 deletions src/pyhpp/manipulation/problem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ namespace manipulation {
// Wrapper class for hpp::manipulation::Problem
struct Problem : public pyhpp::core::Problem {
hpp::core::Container<JointAndShapes_t> jointAndShapes;
PyWGraphPtr_t graph_;

Problem(const PyWDevicePtr_t& robot);
Problem(const hpp::manipulation::ProblemPtr_t& object);
Expand Down