Robotics StackExchange | Archived questions

I've been working on a simulation with swarm robots using action client and messages, where I had to implement Boost::bind() in a action client. Now I'm stuck on a error where I have no clue how to even debug using the log file. Any advices?

In file included from /usr/include/boost/function/detail/maybeinclude.hpp:22, from /usr/include/boost/function/detail/functioniterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:53, from /usr/include/boost/function.hpp:71, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/function/functiontemplate.hpp: In instantiation of ‘static void boost::detail::function::functionvoidmeminvoker1::invoke(boost::detail::function::functionbuffer&, T0) [with MemberPtr = void (actionClient::*)(stdmsgs::Int64std::allocator<void >); R = void; T0 = const boost::sharedptr > >&]’: /usr/include/boost/function/functiontemplate.hpp:931:38: required from ‘void boost::function1::assignto(Functor) [with Functor = void (actionClient::)(stdmsgs::Int64std::allocator<void >); R = void; T0 = const boost::sharedptr<const stdmsgs::Int64std::allocator<void > >&]’ /usr/include/boost/function/functiontemplate.hpp:720:7: required from ‘boost::function1::function1(Functor, typename boost::enableif<(! boost::is_integral::value), int>::type) [with Functor = void (actionClient::)(stdmsgs::Int64std::allocator<void >); R = void; T0 = const boost::sharedptr<const stdmsgs::Int64std::allocator<void > >&; typename boost::enableif<(! boost::isintegral::value), int>::type = int]’ /usr/include/boost/function/functiontemplate.hpp:1068:16: required from ‘boost::function::function(Functor, typename boost::enableif<(! boost::isintegral::value), int>::type) [with Functor = void (actionClient::)(stdmsgs::Int64std::allocator<void >); R = void; T0 = const boost::sharedptr<const stdmsgs::Int64std::allocator<void > >&; typename boost::enableif<(! boost::isintegral::value), int>::type = int]’ /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:52:81: required from here /usr/include/boost/function/functiontemplate.hpp:230:11: error: no match for call to ‘(boost::mfi::mf1 > >) (const boost::sharedptr<const stdmsgs::Int64std::allocator<void > >&)’ 230 | BOOSTFUNCTIONRETURN(boost::memfn(f)(BOOSTFUNCTIONARGS)); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/memfn.hpp:215, from /usr/include/boost/memfn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/bind/memfntemplate.hpp:163:7: note: candidate: ‘R boost::mfi::mf1::operator()(T*, A1) const [with R = void; T = actionClient; A1 = stdmsgs::Int64std::allocator<void >]’ 163 | R operator()(T * p, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/memfntemplate.hpp:163:7: note: candidate expects 2 arguments, 1 provided /usr/include/boost/bind/memfntemplate.hpp:168:25: note: candidate: ‘template R boost::mfi::mf1::operator()(U&, A1) const [with U = U; R = void; T = actionClient; A1 = stdmsgs::Int64std::allocator<void >]’ 168 | template R operator()(U & u, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/memfntemplate.hpp:168:25: note: template argument deduction/substitution failed: In file included from /usr/include/boost/function/detail/maybeinclude.hpp:22, from /usr/include/boost/function/detail/functioniterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:53, from /usr/include/boost/function.hpp:71, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/function/functiontemplate.hpp:230:11: note: candidate expects 2 arguments, 1 provided 230 | BOOSTFUNCTIONRETURN(boost::memfn(f)(BOOSTFUNCTIONARGS)); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/memfn.hpp:215, from /usr/include/boost/memfn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/bind/memfntemplate.hpp:176:25: note: candidate: ‘template R boost::mfi::mf1::operator()(const U&, A1) const [with U = U; R = void; T = actionClient; A1 = stdmsgs::Int64std::allocator<void >]’ 176 | template R operator()(U const & u, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/memfntemplate.hpp:176:25: note: template argument deduction/substitution failed: In file included from /usr/include/boost/function/detail/maybeinclude.hpp:22, from /usr/include/boost/function/detail/functioniterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:53, from /usr/include/boost/function.hpp:71, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/function/functiontemplate.hpp:230:11: note: candidate expects 2 arguments, 1 provided 230 | BOOSTFUNCTIONRETURN(boost::mem_fn(f)(BOOSTFUNCTIONARGS)); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/memfn.hpp:215, from /usr/include/boost/memfn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/bind/memfntemplate.hpp:184:7: note: candidate: ‘R boost::mfi::mf1::operator()(T&, A1) const [with R = void; T = actionClient; A1 = stdmsgs::Int64std::allocator<void >]’ 184 | R operator()(T & t, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/memfntemplate.hpp:184:7: note: candidate expects 2 arguments, 1 provided In file included from /usr/include/boost/function/detail/maybeinclude.hpp:22, from /usr/include/boost/function/detail/functioniterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:53, from /usr/include/boost/function.hpp:71, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/function/functiontemplate.hpp: In instantiation of ‘static void boost::detail::function::functionvoidmeminvoker1::invoke(boost::detail::function::functionbuffer&, T0) [with MemberPtr = void (actionClient::)(const turtlesim::Posestd::allocator<void >&); R = void; T0 = const boost::sharedptr > >&]’: /usr/include/boost/function/functiontemplate.hpp:931:38: required from ‘void boost::function1::assignto(Functor) [with Functor = void (actionClient::)(const turtlesim::Posestd::allocator<void >&); R = void; T0 = const boost::sharedptr > >&]’ /usr/include/boost/function/functiontemplate.hpp:720:7: required from ‘boost::function1::function1(Functor, typename boost::enableif<(! boost::isintegral::value), int>::type) [with Functor = void (actionClient::)(const turtlesim::Posestd::allocator<void >&); R = void; T0 = const boost::sharedptr > >&; typename boost::enableif<(! boost::isintegral::value), int>::type = int]’ /usr/include/boost/function/functiontemplate.hpp:1068:16: required from ‘boost::function::function(Functor, typename boost::enableif<(! boost::is_integral::value), int>::type) [with Functor = void (actionClient::)(const turtlesim::Posestd::allocator<void >&); R = void; T0 = const boost::sharedptr > >&; typename boost::enableif<(! boost::isintegral::value), int>::type = int]’ /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:53:106: required from here /usr/include/boost/function/functiontemplate.hpp:230:11: error: no match for call to ‘(boost::mfi::mf1<void, actionClient, const turtlesim::Posestd::allocator<void >&>) (const boost::sharedptr<const turtlesim::Posestd::allocator<void > >&)’ 230 | BOOSTFUNCTIONRETURN(boost::memfn(*f)(BOOSTFUNCTIONARGS)); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/memfn.hpp:215, from /usr/include/boost/memfn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/bind/memfntemplate.hpp:163:7: note: candidate: ‘R boost::mfi::mf1::operator()(T, A1) const [with R = void; T = actionClient; A1 = const turtlesim::Posestd::allocator<void >&]’ 163 | R operator()(T * p, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/memfntemplate.hpp:163:7: note: candidate expects 2 arguments, 1 provided /usr/include/boost/bind/memfntemplate.hpp:168:25: note: candidate: ‘template R boost::mfi::mf1::operator()(U&, A1) const [with U = U; R = void; T = actionClient; A1 = const turtlesim::Posestd::allocator<void >&]’ 168 | template R operator()(U & u, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/memfntemplate.hpp:168:25: note: template argument deduction/substitution failed: In file included from /usr/include/boost/function/detail/maybeinclude.hpp:22, from /usr/include/boost/function/detail/functioniterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:53, from /usr/include/boost/function.hpp:71, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/function/functiontemplate.hpp:230:11: note: candidate expects 2 arguments, 1 provided 230 | BOOSTFUNCTIONRETURN(boost::mem_fn(f)(BOOSTFUNCTIONARGS)); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/memfn.hpp:215, from /usr/include/boost/memfn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/bind/memfntemplate.hpp:176:25: note: candidate: ‘template R boost::mfi::mf1::operator()(const U&, A1) const [with U = U; R = void; T = actionClient; A1 = const turtlesim::Posestd::allocator<void >&]’ 176 | template R operator()(U const & u, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/memfntemplate.hpp:176:25: note: template argument deduction/substitution failed: In file included from /usr/include/boost/function/detail/maybeinclude.hpp:22, from /usr/include/boost/function/detail/functioniterate.hpp:14, from /usr/include/boost/preprocessor/iteration/detail/iter/forward1.hpp:53, from /usr/include/boost/function.hpp:71, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/function/functiontemplate.hpp:230:11: note: candidate expects 2 arguments, 1 provided 230 | BOOSTFUNCTIONRETURN(boost::memfn(f)(BOOSTFUNCTIONARGS)); | ^~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/boost/bind/memfn.hpp:215, from /usr/include/boost/memfn.hpp:22, from /usr/include/boost/function/detail/prologue.hpp:18, from /usr/include/boost/function.hpp:30, from /opt/ros/noetic/include/ros/forwards.h:40, from /opt/ros/noetic/include/ros/common.h:37, from /opt/ros/noetic/include/ros/ros.h:43, from /home/jkr/projects/SwarmSimulation/src/swarmsimulation/src/client.cpp:1: /usr/include/boost/bind/memfntemplate.hpp:184:7: note: candidate: ‘R boost::mfi::mf1::operator()(T&, A1) const [with R = void; T = actionClient; A1 = const turtlesim::Posestd::allocator<void >&]’ 184 | R operator()(T & t, A1 a1) const | ^~~~~~~~ /usr/include/boost/bind/memfntemplate.hpp:184:7: note: candidate expects 2 arguments, 1 provided make[2]: ** [CMakeFiles/client.dir/build.make:63: CMakeFiles/client.dir/src/client.cpp.o] Error 1 make[1]: *** [CMakeFiles/Makefile2:857: CMakeFiles/client.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 cd /home/jkr/projects/SwarmSimulation/build/swarmsimulation; catkin build --get-env swarm_simulation | catkin env -si /usr/bin/make --jobserver-auth=3,4; cd -

.................................................................................................................................................................................................................... Failed << swarmsimulation:make [ Exited with code 2 ]
Failed <<< swarm
simulation [ 3.7 seconds ]
[build] Summary: 3 of 4 packages succeeded.
[build] Ignored: None.
[build] Warnings: None.
[build] Abandoned: None.
[build] Failed: 1 packages failed.
[build] Runtime: 3.7 seconds total.

Asked by JKRoopan on 2023-01-05 06:17:05 UTC

Comments

Answers