tesseract-robotics / tesseract_ros

ROS Interface for the Tesseract Planning Environment.
http://tesseract-docs.rtfd.io
60 stars 23 forks source link

catkin build err,tesseract_planning-0.13.0,tesseract_planning-0.13.0/tesseract_motion_planners/descartes/src/profile/descartes_default_plan_profile.cpp:31:16: required from here /usr/include/c++/9/ext/new_allocator.h:146:4: error: invalid new-expression of abstract class type 'descartes_light::StateEvaluator<float>' #181

Closed dbdxnuliba closed 1 year ago

dbdxnuliba commented 1 year ago

my env: ubuntu20.04 gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) catkin build -j3 pkg :tesseract_planning-0.13.0

/home/taimi/ws_tesseract_060/src/tesseract_planning-0.13.0/tesseract_motion_planners/descartes/src/profile/descartes_default_plan_profile.cpp:31:16: required from here /usr/include/c++/9/ext/new_allocator.h:146:4: error: invalid new-expression of abstract class type 'descartes_light::StateEvaluator' 146 | { ::new((void *)p) _Up(std::forward<_Args>(args)...); } image

Levi-Armstrong commented 1 year ago

Can you provide the versions of descates, tesseract, tesseract_planning, tesseract_ros, tesseract_qt that you are using?

Levi-Armstrong commented 1 year ago

Also if you are building tesseract from source there is a know issue with having it install as binary. So I would remove ros-noetic-tesseract*

vegfood commented 1 year ago

my env: ubuntu20.04 gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) catkin build -j3 pkg :tesseract_planning-0.13.0

/home/taimi/ws_tesseract_060/src/tesseract_planning-0.13.0/tesseract_motion_planners/descartes/src/profile/descartes_default_plan_profile.cpp:31:16: required from here /usr/include/c++/9/ext/new_allocator.h:146:4: error: invalid new-expression of abstract class type 'descartes_light::StateEvaluator' 146 | { ::new((void *)p) _Up(std::forward<_Args>(args)...); } image

I have encountered the same problem as mentioned above with descartes_light version 0.3.0. After I checkout current master HEAD of descates_light (rev. fbb74ebe679ba21cf1a49d4f7b5e353da75f0549), the error disappears.

dbdxnuliba commented 1 year ago

Can you provide the versions of descates, tesseract, tesseract_planning, tesseract_ros, tesseract_qt that you are using?

descartes_light version 0.3.0,tesseract-0.13.1,tesseract_planning-0.13.0,tesseract_ros0.6.0,tesseract_qt-0.13.0

dbdxnuliba commented 1 year ago

@vegfood ,yes it is, we fix the issue by using descartes_light current master HEAD of descates_light (rev. fbb74ebe679ba21cf1a49d4f7b5e353da75f0549),

my env: ubuntu20.04 gcc version 9.4.0 (Ubuntu 9.4.0-1ubuntu1~20.04.1) catkin build -j3 pkg :tesseract_planning-0.13.0 /home/taimi/ws_tesseract_060/src/tesseract_planning-0.13.0/tesseract_motion_planners/descartes/src/profile/descartes_default_plan_profile.cpp:31:16: required from here /usr/include/c++/9/ext/new_allocator.h:146:4: error: invalid new-expression of abstract class type 'descartes_light::StateEvaluator' 146 | { ::new((void *)p) _Up(std::forward<_Args>(args)...); } image

I have encountered the same problem as mentioned above with descartes_light version 0.3.0. After I checkout current master HEAD of descates_light (rev. fbb74ebe679ba21cf1a49d4f7b5e353da75f0549), the error disappears.

dbdxnuliba commented 1 year ago

you can close the issue now thanks