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

catkin_make failed with Ros Melodic #1

Open
TacHuynh opened this issue Jan 16, 2025 · 0 comments
Open

catkin_make failed with Ros Melodic #1

TacHuynh opened this issue Jan 16, 2025 · 0 comments

Comments

@TacHuynh
Copy link

Please help.
I tried to build the ros_sevenbot with Ros Melodic but ran into problem with serial_node.cpp. Error as follow:

jetbot@jetbot:~/sevenbot_robot/catkin_ws$ catkin_make
Base path: /home/jetbot/sevenbot_robot/catkin_ws
Source space: /home/jetbot/sevenbot_robot/catkin_ws/src
Build space: /home/jetbot/sevenbot_robot/catkin_ws/build
Devel space: /home/jetbot/sevenbot_robot/catkin_ws/devel
Install space: /home/jetbot/sevenbot_robot/catkin_ws/install

Running command: "make cmake_check_build_system" in "/home/jetbot/sevenbot_robot/catkin_ws/build"

Running command: "make -j4 -l4" in "/home/jetbot/sevenbot_robot/catkin_ws/build"

[ 0%] Built target _rosserial_mbed_generate_messages_check_deps_Adc
[ 0%] Built target _rosserial_mbed_generate_messages_check_deps_Test
[ 0%] Built target _rosserial_arduino_generate_messages_check_deps_Adc
[ 0%] Built target _rosserial_arduino_generate_messages_check_deps_Test
[ 0%] Built target std_msgs_generate_messages_py
[ 0%] Built target topic_tools_generate_messages_py
[ 0%] Built target topic_tools_generate_messages_nodejs
[ 0%] Built target _rosserial_msgs_generate_messages_check_deps_Log
[ 0%] Built target _rosserial_msgs_generate_messages_check_deps_TopicInfo
[ 0%] Built target topic_tools_generate_messages_lisp
[ 0%] Built target _rosserial_msgs_generate_messages_check_deps_RequestParam
[ 0%] Built target topic_tools_generate_messages_eus
[ 3%] Built target rosserial_server_lookup
[ 3%] Built target roscpp_generate_messages_py
[ 3%] Built target roscpp_generate_messages_lisp
[ 3%] Built target roscpp_generate_messages_eus
[ 3%] Built target rosgraph_msgs_generate_messages_cpp
[ 3%] Built target std_msgs_generate_messages_lisp
[ 3%] Built target roscpp_generate_messages_cpp
[ 3%] Built target rosgraph_msgs_generate_messages_lisp
[ 3%] Built target rosgraph_msgs_generate_messages_eus
[ 3%] Built target std_msgs_generate_messages_cpp
[ 3%] Built target rosgraph_msgs_generate_messages_nodejs
[ 3%] Built target rosgraph_msgs_generate_messages_py
[ 3%] Built target std_msgs_generate_messages_eus
[ 3%] Built target std_msgs_generate_messages_nodejs
[ 3%] Built target topic_tools_generate_messages_cpp
[ 3%] Built target roscpp_generate_messages_nodejs
[ 8%] Built target rosserial_arduino_generate_messages_eus
[ 12%] Built target rosserial_arduino_generate_messages_cpp
[ 16%] Built target sevenbot_state_publisher
[ 19%] Built target rosserial_arduino_generate_messages_lisp
[ 26%] Built target rosserial_arduino_generate_messages_py
[ 30%] Built target rosserial_arduino_generate_messages_nodejs
[ 33%] Built target rosserial_mbed_generate_messages_nodejs
[ 41%] Built target rosserial_mbed_generate_messages_py
[ 46%] Built target rosserial_mbed_generate_messages_eus
[ 50%] Built target rosserial_mbed_generate_messages_cpp
[ 53%] Built target rosserial_mbed_generate_messages_lisp
[ 62%] Built target rosserial_msgs_generate_messages_py
[ 73%] Built target rosserial_msgs_generate_messages_nodejs
[ 75%] Built target rosserial_msgs_generate_messages_eus
[ 80%] Built target rosserial_msgs_generate_messages_cpp
[ 85%] Built target rosserial_msgs_generate_messages_lisp
[ 85%] Built target rosserial_mbed_generate_messages
[ 85%] Built target rosserial_arduino_generate_messages
[ 85%] Built target rosserial_msgs_gencpp
[ 85%] Built target rosserial_msgs_generate_messages
[ 87%] Building CXX object ros_sevenbot/CMakeFiles/ros_sevenbot_serial_node.dir/src/serial_node.cpp.o
[ 91%] Built target rosserial_server_udp_socket_node
[ 94%] Built target rosserial_server_socket_node
[ 98%] Built target rosserial_server_serial_node
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp: In instantiation of ‘void boost::_bi::list2<A1, A2>::operator()(boost::_bi::type, F&, A&, int) [with F = boost::_mfi::mf1<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, ros::serialization::IStream&>; A = boost::_bi::rrlist1ros::serialization::IStream; A1 = boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>; A2 = boost::arg<1>]’:
/usr/include/boost/bind/bind.hpp:1306:50: required from ‘boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1&&) [with A1 = ros::serialization::IStream; R = void; F = boost::_mfi::mf1<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, ros::serialization::IStream&>; L = boost::_bi::list2<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>, boost::arg<1> >; boost::_bi::bind_t<R, F, L>::result_type = void]’
/usr/include/boost/function/function_template.hpp:159:11: required from ‘static void boost::detail::function::void_function_obj_invoker1<FunctionObj, R, T0>::invoke(boost::detail::function::function_buffer&, T0) [with FunctionObj = boost::_bi::bind_t<void, boost::_mfi::mf1<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, ros::serialization::IStream&>, boost::_bi::list2<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1> > >; R = void; T0 = ros::serialization::IStream]’
/usr/include/boost/function/function_template.hpp:925:38: required from ‘void boost::function1<R, T1>::assign_to(Functor) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, ros::serialization::IStream&>, boost::_bi::list2<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>, boost::arg<1> > >; R = void; T0 = ros::serialization::IStream]’
/usr/include/boost/function/function_template.hpp:716:7: required from ‘boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<(! boost::is_integral::value), int>::type) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, ros::serialization::IStream&>, boost::_bi::list2<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1> > >; R = void; T0 = ros::serialization::IStream; typename boost::enable_if_c<(! boost::is_integral::value), int>::type = int]’
/usr/include/boost/function/function_template.hpp:1061:16: required from ‘boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<(! boost::is_integral::value), int>::type) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf1<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, ros::serialization::IStream&>, boost::_bi::list2<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>, boost::arg<1> > >; R = void; T0 = ros::serialization::IStream; typename boost::enable_if_c<(! boost::is_integral::value), int>::type = int]’
/usr/include/boost/function/function_template.hpp:1114:5: required from ‘typename boost::enable_if_c<(! boost::is_integral::value), boost::function<R(T0)>&>::type boost::function<R(T0)>::operator=(Functor) [with Functor = boost::_bi::bind_t<void, boost::mfi::mf1<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, ros::serialization::IStream&>, boost::bi::list2<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1> > >; R = void; T0 = ros::serialization::IStream; typename boost::enable_if_c<(! boost::is_integral::value), boost::function<R(T0)>&>::type = boost::function<void(ros::serialization::IStream)>&]’
/home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/include/rosserial_server/session.h:74:9: required from ‘rosserial_server::Session::Session(boost::asio::io_service&) [with Socket = boost::asio::basic_serial_port<>]’
/home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/include/rosserial_server/serial_session.h:53:74: required from here
/usr/include/boost/bind/bind.hpp:319:35: error: no match for call to ‘(boost::_mfi::mf1<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, ros::serialization::IStream&>) (rosserial_server::Session<boost::asio::basic_serial_port<> >
&, ros::serialization::IStream)’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:163:7: note: candidate: R boost::mfi::mf1<R, T, A1>::operator()(T*, A1) const [with R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = ros::serialization::IStream&]
R operator()(T * p, A1 a1) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:163:7: note: conversion of argument 2 would be ill-formed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:319:35: error: cannot bind non-const lvalue reference of type ‘ros::serialization::IStream&’ to an rvalue of type ‘ros::serialization::IStream’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:168:25: note: candidate: template R boost::_mfi::mf1<R, T, A1>::operator()(U&, A1) const [with U = U; R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = ros::serialization::IStream&]
template R operator()(U & u, A1 a1) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:168:25: note: template argument deduction/substitution failed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:319:35: note: cannot convert ‘(& a)->boost::bi::rrlist1ros::serialization::IStream::operator[](boost::bi::storage2<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >*>, boost::arg<1> >::a2)’ (type ‘ros::serialization::IStream’) to type ‘ros::serialization::IStream&’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:176:25: note: candidate: template R boost::_mfi::mf1<R, T, A1>::operator()(const U&, A1) const [with U = U; R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = ros::serialization::IStream&]
template R operator()(U const & u, A1 a1) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:176:25: note: template argument deduction/substitution failed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:319:35: note: cannot convert ‘(& a)->boost::bi::rrlist1ros::serialization::IStream::operator[](boost::bi::storage2<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >*>, boost::arg<1> >::a2)’ (type ‘ros::serialization::IStream’) to type ‘ros::serialization::IStream&’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:184:7: note: candidate: R boost::_mfi::mf1<R, T, A1>::operator()(T&, A1) const [with R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = ros::serialization::IStream&]
R operator()(T & t, A1 a1) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:184:7: note: no known conversion for argument 1 from ‘rosserial_server::Session<boost::asio::basic_serial_port<> >’ to ‘rosserial_server::Session<boost::asio::basic_serial_port<> >&’
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp: In instantiation of ‘void boost::_bi::list4<A1, A2, A3, A4>::operator()(boost::_bi::type, F&, A&, int) [with F = boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>; A = boost::_bi::rrlist1<std::vector >; A1 = boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>; A2 = boost::arg<1>; A3 = boost::_bi::value; A4 = boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>]’:
/usr/include/boost/bind/bind.hpp:1306:50: required from ‘boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1&&) [with A1 = std::vector; R = void; F = boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>; L = boost::_bi::list4<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1>, boost::_bi::value, boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> >; boost::_bi::bind_t<R, F, L>::result_type = void]’
/usr/include/boost/function/function_template.hpp:159:11: required from ‘static void boost::detail::function::void_function_obj_invoker1<FunctionObj, R, T0>::invoke(boost::detail::function::function_buffer&, T0) [with FunctionObj = boost::_bi::bind_t<void, boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>, boost::_bi::list4<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>, boost::arg<1>, boost::_bi::value, boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> > >; R = void; T0 = std::vector]’
/usr/include/boost/function/function_template.hpp:925:38: required from ‘void boost::function1<R, T1>::assign_to(Functor) [with Functor = boost::_bi::bind_t<void, boost::mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>, boost::bi::list4<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1>, boost::_bi::value, boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> > >; R = void; T0 = std::vector]’
/usr/include/boost/function/function_template.hpp:716:7: required from ‘boost::function1<R, T1>::function1(Functor, typename boost::enable_if_c<(! boost::is_integral::value), int>::type) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>, boost::_bi::list4<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>, boost::arg<1>, boost::bi::value, boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> > >; R = void; T0 = std::vector; typename boost::enable_if_c<(! boost::is_integral::value), int>::type = int]’
/usr/include/boost/function/function_template.hpp:1061:16: required from ‘boost::function<R(T0)>::function(Functor, typename boost::enable_if_c<(! boost::is_integral::value), int>::type) [with Functor = boost::bi::bind_t<void, boost::mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>, boost::bi::list4<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1>, boost::_bi::value, boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> > >; R = void; T0 = std::vector; typename boost::enable_if_c<(! boost::is_integral::value), int>::type = int]’
/home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/include/rosserial_server/session.h:405:23: required from ‘void rosserial_server::Session::setup_subscriber(ros::serialization::IStream&) [with Socket = boost::asio::basic_serial_port<>]’
/home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/include/rosserial_server/session.h:76:23: required from ‘rosserial_server::Session::Session(boost::asio::io_service&) [with Socket = boost::asio::basic_serial_port<>]’
/home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/include/rosserial_server/serial_session.h:53:74: required from here
/usr/include/boost/bind/bind.hpp:463:35: error: no match for call to ‘(boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>) (rosserial_server::Session<boost::asio::basic_serial_port<> >
&, std::vector, short unsigned int&, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version&)’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
], a[base_type::a3], a[base_type::a4]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:391:7: note: candidate: R boost::mfi::mf3<R, T, A1, A2, A3>::operator()(T*, A1, A2, A3) const [with R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = std::vector&; A2 = short unsigned int; A3 = rosserial_server::Session<boost::asio::basic_serial_port<> >::Version]
R operator()(T * p, A1 a1, A2 a2, A3 a3) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:391:7: note: conversion of argument 2 would be ill-formed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:463:35: error: cannot bind non-const lvalue reference of type ‘std::vector&’ to an rvalue of type ‘std::vector’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2], a[base_type::a3], a[base_type::a4]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:396:25: note: candidate: template R boost::mfi::mf3<R, T, A1, A2, A3>::operator()(U&, A1, A2, A3) const [with U = U; R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = std::vector&; A2 = short unsigned int; A3 = rosserial_server::Session<boost::asio::basic_serial_port<> >::Version]
template R operator()(U & u, A1 a1, A2 a2, A3 a3) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:396:25: note: template argument deduction/substitution failed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:463:35: note: cannot convert ‘(& a)->boost::bi::rrlist1<std::vector >::operator[](boost::bi::storage2<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >*>, boost::arg<1> >::a2)’ (type ‘std::vector’) to type ‘std::vector&’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
], a[base_type::a3], a[base_type::a4]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:404:25: note: candidate: template R boost::mfi::mf3<R, T, A1, A2, A3>::operator()(const U&, A1, A2, A3) const [with U = U; R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = std::vector&; A2 = short unsigned int; A3 = rosserial_server::Session<boost::asio::basic_serial_port<> >::Version]
template R operator()(U const & u, A1 a1, A2 a2, A3 a3) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:404:25: note: template argument deduction/substitution failed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:463:35: note: cannot convert ‘(& a)->boost::bi::rrlist1<std::vector >::operator[](boost::bi::storage2<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >*>, boost::arg<1> >::a2)’ (type ‘std::vector’) to type ‘std::vector&’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
], a[base_type::a3], a[base_type::a4]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:412:7: note: candidate: R boost::_mfi::mf3<R, T, A1, A2, A3>::operator()(T&, A1, A2, A3) const [with R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = std::vector&; A2 = short unsigned int; A3 = rosserial_server::Session<boost::asio::basic_serial_port<> >::Version]
R operator()(T & t, A1 a1, A2 a2, A3 a3) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:412:7: note: no known conversion for argument 1 from ‘rosserial_server::Session<boost::asio::basic_serial_port<> >’ to ‘rosserial_server::Session<boost::asio::basic_serial_port<> >&’
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp: In instantiation of ‘void boost::_bi::list4<A1, A2, A3, A4>::operator()(boost::_bi::type, F&, A&, int) [with F = boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>; A = boost::_bi::rrlist2<std::vector, short unsigned int>; A1 = boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>; A2 = boost::arg<1>; A3 = boost::arg<2>; A4 = boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>]’:
/usr/include/boost/bind/bind.hpp:1318:50: required from ‘boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1&&, A2&&) [with A1 = std::vector; A2 = short unsigned int; R = void; F = boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>; L = boost::_bi::list4<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1>, boost::arg<2>, boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> >; boost::_bi::bind_t<R, F, L>::result_type = void]’
/usr/include/boost/function/function_template.hpp:159:11: required from ‘static void boost::detail::function::void_function_obj_invoker2<FunctionObj, R, T0, T1>::invoke(boost::detail::function::function_buffer&, T0, T1) [with FunctionObj = boost::_bi::bind_t<void, boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>, boost::_bi::list4<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>, boost::arg<1>, boost::arg<2>, boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> > >; R = void; T0 = std::vector; T1 = short unsigned int]’
/usr/include/boost/function/function_template.hpp:925:38: required from ‘void boost::function2<R, T1, T2>::assign_to(Functor) [with Functor = boost::bi::bind_t<void, boost::mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>, boost::bi::list4<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1>, boost::arg<2>, boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> > >; R = void; T0 = std::vector; T1 = short unsigned int]’
/usr/include/boost/function/function_template.hpp:716:7: required from ‘boost::function2<R, T1, T2>::function2(Functor, typename boost::enable_if_c<(! boost::is_integral::value), int>::type) [with Functor = boost::_bi::bind_t<void, boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>, boost::_bi::list4<boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >
>, boost::arg<1>, boost::arg<2>, boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> > >; R = void; T0 = std::vector; T1 = short unsigned int; typename boost::enable_if_c<(! boost::is_integral::value), int>::type = int]’
/usr/include/boost/function/function_template.hpp:1061:16: required from ‘boost::function<R(T0, T1)>::function(Functor, typename boost::enable_if_c<(! boost::is_integral::value), int>::type) [with Functor = boost::bi::bind_t<void, boost::mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>, boost::bi::list4<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >>, boost::arg<1>, boost::arg<2>, boost::_bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >::Version> > >; R = void; T0 = std::vector; T1 = short unsigned int; typename boost::enable_if_c<(! boost::is_integral::value), int>::type = int]’
/home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/include/rosserial_server/session.h:424:28: required from ‘void rosserial_server::Session::setup_service_client_publisher(ros::serialization::IStream&) [with Socket = boost::asio::basic_serial_port<>]’
/home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/include/rosserial_server/session.h:78:23: required from ‘rosserial_server::Session::Session(boost::asio::io_service&) [with Socket = boost::asio::basic_serial_port<>]’
/home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/include/rosserial_server/serial_session.h:53:74: required from here
/usr/include/boost/bind/bind.hpp:463:35: error: no match for call to ‘(boost::_mfi::mf3<void, rosserial_server::Session<boost::asio::basic_serial_port<> >, std::vector&, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version>) (rosserial_server::Session<boost::asio::basic_serial_port<> >
&, std::vector, short unsigned int, rosserial_server::Session<boost::asio::basic_serial_port<> >::Version&)’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
], a[base_type::a3], a[base_type::a4]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:391:7: note: candidate: R boost::mfi::mf3<R, T, A1, A2, A3>::operator()(T*, A1, A2, A3) const [with R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = std::vector&; A2 = short unsigned int; A3 = rosserial_server::Session<boost::asio::basic_serial_port<> >::Version]
R operator()(T * p, A1 a1, A2 a2, A3 a3) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:391:7: note: conversion of argument 2 would be ill-formed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:463:35: error: cannot bind non-const lvalue reference of type ‘std::vector&’ to an rvalue of type ‘std::vector’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2], a[base_type::a3], a[base_type::a4]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:396:25: note: candidate: template R boost::mfi::mf3<R, T, A1, A2, A3>::operator()(U&, A1, A2, A3) const [with U = U; R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = std::vector&; A2 = short unsigned int; A3 = rosserial_server::Session<boost::asio::basic_serial_port<> >::Version]
template R operator()(U & u, A1 a1, A2 a2, A3 a3) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:396:25: note: template argument deduction/substitution failed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:463:35: note: cannot convert ‘(& a)->boost::bi::rrlist2<std::vector, short unsigned int>::operator[](boost::bi::storage2<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >*>, boost::arg<1> >::a2)’ (type ‘std::vector’) to type ‘std::vector&’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
], a[base_type::a3], a[base_type::a4]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:404:25: note: candidate: template R boost::mfi::mf3<R, T, A1, A2, A3>::operator()(const U&, A1, A2, A3) const [with U = U; R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = std::vector&; A2 = short unsigned int; A3 = rosserial_server::Session<boost::asio::basic_serial_port<> >::Version]
template R operator()(U const & u, A1 a1, A2 a2, A3 a3) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:404:25: note: template argument deduction/substitution failed:
In file included from /usr/include/boost/bind.hpp:22:0,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/bind.hpp:463:35: note: cannot convert ‘(& a)->boost::bi::rrlist2<std::vector, short unsigned int>::operator[](boost::bi::storage2<boost::bi::value<rosserial_server::Session<boost::asio::basic_serial_port<> >*>, boost::arg<1> >::a2)’ (type ‘std::vector’) to type ‘std::vector&’
unwrapper::unwrap(f, 0)(a[base_type::a1
], a[base_type::a2
], a[base_type::a3], a[base_type::a4]);
~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/boost/bind/mem_fn.hpp:215:0,
from /usr/include/boost/mem_fn.hpp:22,
from /usr/include/boost/bind/bind.hpp:26,
from /usr/include/boost/bind.hpp:22,
from /home/jetbot/sevenbot_robot/catkin_ws/src/ros_sevenbot/src/serial_node.cpp:35:
/usr/include/boost/bind/mem_fn_template.hpp:412:7: note: candidate: R boost::_mfi::mf3<R, T, A1, A2, A3>::operator()(T&, A1, A2, A3) const [with R = void; T = rosserial_server::Session<boost::asio::basic_serial_port<> >; A1 = std::vector&; A2 = short unsigned int; A3 = rosserial_server::Session<boost::asio::basic_serial_port<> >::Version]
R operator()(T & t, A1 a1, A2 a2, A3 a3) const
^~~~~~~~
/usr/include/boost/bind/mem_fn_template.hpp:412:7: note: no known conversion for argument 1 from ‘rosserial_server::Session<boost::asio::basic_serial_port<> >*’ to ‘rosserial_server::Session<boost::asio::basic_serial_port<> >&’
ros_sevenbot/CMakeFiles/ros_sevenbot_serial_node.dir/build.make:75: recipe for target 'ros_sevenbot/CMakeFiles/ros_sevenbot_serial_node.dir/src/serial_node.cpp.o' failed
make[2]: *** [ros_sevenbot/CMakeFiles/ros_sevenbot_serial_node.dir/src/serial_node.cpp.o] Error 1
CMakeFiles/Makefile2:3832: recipe for target 'ros_sevenbot/CMakeFiles/ros_sevenbot_serial_node.dir/all' failed
make[1]: *** [ros_sevenbot/CMakeFiles/ros_sevenbot_serial_node.dir/all] Error 2
Makefile:145: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j4 -l4" failed
jetbot@jetbot:/sevenbot_robot/catkin_ws$ ls /opt/ros
melodic
jetbot@jetbot:
/sevenbot_robot/catkin_ws$

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

1 participant