ompl / ompl/ompl

ss.getSolutionPath().asGeometric().printAsMatrix()

Open
#1,140 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
2.2k
Forks
713
Avg merge
9d 12h
Merged PRs (30d)
2

Description

Hi,

I am running the Demo RigidBodyPlanningWithODESolverAndControls.py
The solving process works well, but when plotting the result, an error occurred

TypeError: No to_python (by-value) converter found for C++ type: ompl::geometric::PathGeometric

This error is located at line 115:

print("Found solution:\n%s" % ss.getSolutionPath().asGeometric().printAsMatrix())

I have tried to update the python-binding, which seems not to be the cause of this issue.

If the code is changed into
print("Found solution:\n%s" % ss.getSolutionPath().printAsMatrix())
Matrix can be plotted but does it have geometric meaning in this case?

Thanks.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with Demo RigidBodyPlanningWithODESolverAndControls.py at line 115 and reproduce the Python binding conversion error. Compare the asGeometric().printAsMatrix() call with the direct printAsMatrix() call, then inspect the related Python binding behavior. Done means the demo prints the intended geometric solution matrix without the TypeError, or clearly documents the correct call.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, python
Domain
robotics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.