Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: ‘computeCollisions’ is not a member of ‘pinocchio’ #1

Open
SkelonChan opened this issue Dec 4, 2024 · 2 comments
Open

Comments

@SkelonChan
Copy link

SkelonChan commented Dec 4, 2024

Hi, sea! I install the pinocchio by sudo apt install ros-$ROS_DISTRO-pinocchio , but when I colcon build, without in docker, The same error occured error: ‘computeCollisions’ is not a member of ‘pinocchio’, and I refferenced the stack-of-tasks/pinocchio#2289, but it didn't work.

Starting >>> pinocchio_ros_example
--- stderr: pinocchio_ros_example                             
/home/sk/DEMO/Pinocchino/pin_ros2_example/pinocchio_ros_cpp_2/src/pinocchio_ros_example/src/pinocchio_example.cpp: In function ‘int main(int, char**)’:
/home/sk/DEMO/Pinocchino/pin_ros2_example/pinocchio_ros_cpp_2/src/pinocchio_ros_example/src/pinocchio_example.cpp:18:28: error: ‘computeCollisions’ is not a member of ‘pinocchio’
   18 |   auto result = pinocchio::computeCollisions(model, data, collision_model, collision_data, q);
      |                            ^~~~~~~~~~~~~~~~~
gmake[2]: *** [CMakeFiles/pinocchio_example.dir/build.make:76:CMakeFiles/pinocchio_example.dir/src/pinocchio_example.cpp.o] 错误 1
gmake[1]: *** [CMakeFiles/Makefile2:137:CMakeFiles/pinocchio_example.dir/all] 错误 2
gmake: *** [Makefile:146:all] 错误 2
---
Failed   <<< pinocchio_ros_example [4.89s, exited with code 2]

Summary: 0 packages finished [4.99s]
  1 package failed: pinocchio_ros_example
  1 package had stderr output: pinocchio_ros_example

The ros edition is jazzy in ubuntu 24.04

@sea-bass
Copy link
Owner

sea-bass commented Dec 4, 2024

I just tried this and can reproduce it in Jazzy/Rolling on Ubuntu 24.04... great.

I'll get back in touch with the maintainers: stack-of-tasks/pinocchio#2504

@sea-bass
Copy link
Owner

sea-bass commented Dec 9, 2024

@SkelonChan from the issue above, it seems the Jazzy and Rolling binaries of Pinocchio didn't have the right patches applied to enable Python bindings and collision checking.

It appears the maintainers have already fixed it, so ideally on the next release of Jazzy we'll see this fixed. Rolling should be available quicker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants