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: no matching function for call to ‘op::WrapperStructPose::WrapperStructPose #35

Closed
KeundongKang opened this issue Feb 27, 2021 · 3 comments
Labels
seemingly openpose related It seems that this issue is related to OpenPose.

Comments

@KeundongKang
Copy link

KeundongKang commented Feb 27, 2021

Hello, I'm having trouble with catkin_make because the error below keeps occuring.

[ 98%] Built target transform_nodelet
/home/isr_gd/isr_gd_ws/src/ros_openpose/src/rosOpenpose.cpp: In function ‘void configureOpenPose(op::Wrapper&, const std::shared_ptr<ros_openpose::CameraReader>&, const ros::Publisher&, const string&, bool)’:
/home/isr_gd/isr_gd_ws/src/ros_openpose/src/rosOpenpose.cpp:392:70: error: no matching function for call to ‘op::WrapperStructPose::WrapperStructPose(<brace-enclosed initializer list>)’
                                                   enableGoogleLogging};
                                                                      ^
In file included from /usr/local/include/openpose/wrapper/wrapper.hpp:13:0,
                 from /usr/local/include/openpose/wrapper/headers.hpp:6,
                 from /usr/local/include/openpose/headers.hpp:47,
                 from /home/isr_gd/isr_gd_ws/src/ros_openpose/src/rosOpenpose.cpp:16:
/usr/local/include/openpose/wrapper/wrapperStructPose.hpp:221:9: note: candidate: op::WrapperStructPose::WrapperStructPose(op::PoseMode, const op::Point<int>&, double, const op::Point<int>&, op::ScaleMode, int, int, int, float, op::RenderMode, op::PoseModel, bool, float, float, int, const op::String&, const std::vector<op::HeatMapType>&, op::ScaleMode, bool, float, int, bool, double, const op::String&, const op::String&, float, bool)
         WrapperStructPose(
         ^~~~~~~~~~~~~~~~~
/usr/local/include/openpose/wrapper/wrapperStructPose.hpp:221:9: note:   no known conversion for argument 3 from ‘const op::Point<int>’ to ‘double’
/usr/local/include/openpose/wrapper/wrapperStructPose.hpp:18:19: note: candidate: op::WrapperStructPose::WrapperStructPose(const op::WrapperStructPose&)
     struct OP_API WrapperStructPose
                   ^~~~~~~~~~~~~~~~~
/usr/local/include/openpose/wrapper/wrapperStructPose.hpp:18:19: note:   candidate expects 1 argument, 26 provided
/usr/local/include/openpose/wrapper/wrapperStructPose.hpp:18:19: note: candidate: op::WrapperStructPose::WrapperStructPose(op::WrapperStructPose&&)
/usr/local/include/openpose/wrapper/wrapperStructPose.hpp:18:19: note:   candidate expects 1 argument, 26 provided
ros_openpose/CMakeFiles/rosOpenpose.dir/build.make:75: recipe for target 'ros_openpose/CMakeFiles/rosOpenpose.dir/src/rosOpenpose.cpp.o' failed
make[2]: *** [ros_openpose/CMakeFiles/rosOpenpose.dir/src/rosOpenpose.cpp.o] Error 1
CMakeFiles/Makefile2:5279: recipe for target 'ros_openpose/CMakeFiles/rosOpenpose.dir/all' failed
make[1]: *** [ros_openpose/CMakeFiles/rosOpenpose.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j16 -l16" failed

I'm using Ubuntu 18.04 with CUDA 10..

It would be really thankful to solve this issue.

@ravijo
Copy link
Owner

ravijo commented Feb 28, 2021

@KeundongKang

I suspect about the OpenPose version you are using. Can you please use find the version of the OpenPose installed on your machine? Please read point number 3 in the FAQ for the same.

So far, I have not tested ros_openpose with OpenPose 1.7.0. Please check Supported OpenPose Versions which are confirmed already. Well, my intuition says that the newer version (i.e., OpenPose 1.7.0) should work well too because there are no changes in APIs as stated here.

Finally, If you have OpenPose v != 1.6.0 and you still face the problem, I recommend using OpenPose v1.6.0. Please revert back with the outcome.

@KeundongKang
Copy link
Author

I found that my openpose version was 1.7.0.
So I changed it to 1.6.0 and now it works.

Thanks for the kind reply!

@ravijo
Copy link
Owner

ravijo commented Feb 28, 2021

Hi @KeundongKang

I debug the issue in detail. Below is what I found:

I guess you cloned the master branch of OpenPose. The master branch is the current branch. Although it says OpenPose v1.7.0, you should always check out from Git tag to confirm the actual OpenPose 1.7.0. Please read point #1 in troubleshooting.

Just now, I have pushed a few changes to ros_openpose. These changes support OpenPose 1.7.0. You may consider pulling the changes. However, make sure to checkout tag 1.7.0.

Closing this issue now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
seemingly openpose related It seems that this issue is related to OpenPose.
Projects
None yet
Development

No branches or pull requests

2 participants