hungpham2511 / toppra

robotic motion planning library
https://hungpham2511.github.io/toppra/index.html
MIT License
625 stars 170 forks source link

install C++ API, which openrobot pkg #154

Open oridong opened 3 years ago

oridong commented 3 years ago

if install C++ API, which openrobot pkg should be installed . because I see " /opt/openrobots/lib" is needed, after all there so many pkd on http://robotpkg.openrobots.org/robotpkg/robots/index.html

jmirabel commented 3 years ago

Hi,

This package is not provided by robotpkg. It could be added with some little effort but I won't have time to do it myself.

The C++ code can uses QPoases, which can be installed with robotpkg. This is what I used when I contributed to its development. This is probably the reason why you see this.

xuuyann commented 3 years ago

@oridong Have you successfully installed the C++ version?

xuuyann commented 3 years ago

@jmirabel I don’t know if your cpp readme document is updated in real time,and it's really unfriendly to beginners.According to your cpp following building tests

git clone -b develop https://github.com/hungpham2511/toppra

export LD_LIBRARY_PATH=/opt/openrobots/lib:${LD_LIBRARY_PATH} export CMAKE_PREFIX_PATH=/opt/openrobots mkdir build && cd build && cmake -DBUILD_WITH_PINOCCHIO=ON -DBUILD_WITH_qpOASES=ON .. make -j4

./tests/all_tests

It's unable to install successfully...and I am vexed... Could you tell me in detail how to install the cpp version?I really appreciate you doing this!Thx!

hungpham2511 commented 3 years ago

Hi @oridong and @xuuyann, you can refer to the CI pipeline here https://github.com/hungpham2511/toppra/blob/ec723091a717373413d5747d6c1e56d57a646fa1/.circleci/config.yml#L24 for what packages to install.

jmirabel commented 3 years ago

Installation from source with no meta build tool always requires a bit of involvement. I could write a complete readme for people to use this with robotpkg but this wouldn't suit all users since some will not use robotpkg.

Moreover, when something does not work and you ask for help, you could at least describe what does not work and the error you get. I don't know which step failed. I bet the error message is clear enough for the ones able to demangle it.

github-actions[bot] commented 2 years ago

Stale issue message