toppra icon indicating copy to clipboard operation
toppra copied to clipboard

install C++ API, which openrobot pkg

Open oridong opened this issue 3 years ago • 6 comments

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

oridong avatar Dec 22 '20 15:12 oridong

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.

jmirabel avatar Jan 04 '21 08:01 jmirabel

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

xuuyann avatar Jan 06 '21 02:01 xuuyann

@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!

xuuyann avatar Jan 06 '21 02:01 xuuyann

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.

hungpham2511 avatar Jan 06 '21 03:01 hungpham2511

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.

jmirabel avatar Jan 06 '21 07:01 jmirabel

Stale issue message

github-actions[bot] avatar Jan 07 '22 00:01 github-actions[bot]