leggedrobotics / ocs2

Optimal Control for Switched Systems
https://leggedrobotics.github.io/ocs2
BSD 3-Clause "New" or "Revised" License
836 stars 221 forks source link

Errors << ocs2_pinocchio_interface:cmake #58

Closed lbdz closed 1 year ago

lbdz commented 1 year ago

I am using ros noetic on ubuntu 20.04. After setting up the environment and installing all dependencies, I am running catkin build ocs2 and getting the error: Screenshot from 2022-11-22 16-20-09 I would appreciate any help.

BineMB commented 1 year ago

Hi, I got the same error. How did you solve it?

lbdz commented 1 year ago

Hi, I got the same error. How did you solve it?

Pinocchio should be placed in the compile directory.

BineMB commented 1 year ago

Thanks. yeah did that then. Did you also use for pinocchio the branch rsl/ocs2_mobile_manipulator_example. With the Master branch i got errors. Unfortunately i still have problems: Now with the hpp-fcl package. I guess you did not get any further errors?

Never mind. I build everything again and now it worked

JiahengHu commented 1 year ago

Thanks. yeah did that then. Did you also use for pinocchio the branch rsl/ocs2_mobile_manipulator_example. With the Master branch i got errors. Unfortunately i still have problems: Now with the hpp-fcl package. I guess you did not get any further errors?

What branch for pinocchio and hpp-fcl did you end up using? I'm consistently getting error for the pinocchio package during compilation, something like "error: no matching function for call to ‘hpp::fcl::CollisionObject::CollisionObject(const CollisionGeometryPtr&)’"

Thanks in advance!

msplr commented 1 year ago

With the following versions, the package ocs2_mobile_manipulator_ros builds without problems on my Ubuntu 20.04 on ARM64.

repositories:
  ocs2:
    type: git
    url: https://github.com/leggedrobotics/ocs2.git
    version: ebde452b10d0eceaac45364f7bb8f0ac1038b637
  ocs2_robotic_assets:
    type: git
    url: https://github.com/leggedrobotics/ocs2_robotic_assets.git
    version: b126d00d55f1e67905c3c1516995466df6873c5c
  hpp-fcl:
    type: git
    url: https://github.com/leggedrobotics/hpp-fcl.git
    version: 8be41cba990eaef717bd4d2b4a7bb05c8ae66ccd
  pinocchio:
    type: git
    url: https://github.com/leggedrobotics/pinocchio.git
    version: b86197e04265892c32966736000a01ee4862a060

Hope this helps.

JiahengHu commented 1 year ago

With the following versions, the package ocs2_mobile_manipulator_ros builds without problems on my Ubuntu 20.04 on ARM64.

repositories:
  ocs2:
    type: git
    url: https://github.com/leggedrobotics/ocs2.git
    version: ebde452b10d0eceaac45364f7bb8f0ac1038b637
  ocs2_robotic_assets:
    type: git
    url: https://github.com/leggedrobotics/ocs2_robotic_assets.git
    version: b126d00d55f1e67905c3c1516995466df6873c5c
  hpp-fcl:
    type: git
    url: https://github.com/leggedrobotics/hpp-fcl.git
    version: 8be41cba990eaef717bd4d2b4a7bb05c8ae66ccd
  pinocchio:
    type: git
    url: https://github.com/leggedrobotics/pinocchio.git
    version: b86197e04265892c32966736000a01ee4862a060

Hope this helps.

Ok after cleaning the entire workspace I was able to get it working. Thx!

Maipengfei commented 6 months ago

Hi, I got the same error. How did you solve it?

Pinocchio should be placed in the compile directory.

Waht‘s that meaning? What exactly should I do?

nanbwrn commented 2 months ago

hi,@nuft

I downloaded the code you provided above, but when I compile ocs2 on Jetson AGX Orin with Ubuntu 20.04 (ARM64), I encounter the following error. However, when I compile the same code on my laptop, it doesn't produce any errors. Based on the error messages, it seems that the ARM64 architecture cannot compile this version of ocs2. Does anyone know how to solve this error?

cc: error: unrecognized command line option ‘-m64’ cc: error: unrecognized command line option ‘-m64’ cc: error: unrecognized command line option ‘-m64’ cc: error: unrecognized command line option ‘-mavx’ cc: error: unrecognized command line option ‘-mavx’ cc: error: unrecognized command line option ‘-mavx’ cc: error: unrecognized command line option ‘-m64’ cc: error: unrecognized command line option ‘-mavx’ cc: error: unrecognized command line option ‘-m64’ cc: error: unrecognized command line option ‘-mavx’ make[2]: [build/CMakeFiles/hpipm.dir/build.make:118:build/CMakeFiles/hpipm.dir/cond/d_part_cond.c.o] 错误 1 make[2]: 正在等待未完成的任务.... make[2]: [build/CMakeFiles/hpipm.dir/build.make:105:build/CMakeFiles/hpipm.dir/cond/d_cond_qcqp.c.o] 错误 1 make[2]: [build/CMakeFiles/hpipm.dir/build.make:79:build/CMakeFiles/hpipm.dir/cond/d_cond.c.o] 错误 1 make[2]: [build/CMakeFiles/hpipm.dir/build.make:92:build/CMakeFiles/hpipm.dir/cond/d_cond_aux.c.o] 错误 1 make[2]: [build/CMakeFiles/hpipm.dir/build.make:66:build/CMakeFiles/hpipm.dir/cond/d_cast_qcqp.c.o] 错误 1 make[1]: [CMakeFiles/Makefile2:691:build/CMakeFiles/hpip m.dir/all] 错误 2 make: [Makefile:141:all] 错误 2

legged_control_erro