Robotics StackExchange | Archived questions

How to include "cvd/thread.h" header from boost?

Hello, I'm Kim. I'm using ROS1 Kinetic on Ubuntu 16.04.

I clone this project. And I checked out the kinetic-devel branch on it. I got errors from this project. Below log has those.

usr/include/boost/type_traits/detail/has_binary_operator.hpp:10:24: fatal error: cvd/thread.h: No such file or directory
compilation terminated.

What is the cvd/thread.h header?
I was trying to find it on my pc, but I couldn't find it.

Here is all of the logs.

In file included from /usr/include/boost/type_traits/has_plus.hpp:48:0,
                 from /usr/include/boost/next_prior.hpp:23,
                 from /usr/include/boost/utility.hpp:18,
                 from /usr/include/boost/range/size.hpp:25,
                 from /usr/include/boost/range/functions.hpp:20,
                 from /usr/include/boost/range/iterator_range_core.hpp:38,
                 from /usr/include/boost/lexical_cast.hpp:30,
                 from /opt/ros/kinetic/include/ros/transport_hints.h:34,
                 from /opt/ros/kinetic/include/ros/subscribe_options.h:33,
                 from /opt/ros/kinetic/include/ros/node_handle.h:42,
                 from /opt/ros/kinetic/include/ros/ros.h:45,
                 from /home/kwanghoe/Desktop/Posting/Vision_Message_Visualization/imu_visualization/catkin_ws/src/visualization_tutorials/visualization_marker_tutorials/src/points_and_lines.cpp:31:
/usr/include/boost/type_traits/detail/has_binary_operator.hpp:10:24: fatal error: cvd/thread.h: No such file or directory
compilation terminated.
visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/build.make:62: recipe for target 'visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/src/points_and_lines.cpp.o' failed
make[2]: *** [visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/src/points_and_lines.cpp.o] Error 1
CMakeFiles/Makefile2:2927: recipe for target 'visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/all' failed
make[1]: *** [visualization_tutorials/visualization_marker_tutorials/CMakeFiles/points_and_lines.dir/all] Error 2
Makefile:138: recipe for target 'all' failed
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

This is the source code which have error line.

on /usr/include/boost/type_traits/detail/has_binary_operator.hpp

#ifndef Q_MOC_RUN
#include "cvd/thread.h"
#include "tum_ardrone/filter_state.h"
#include "std_msgs/String.h"
#include "geometry_msgs/Twist.h"
#include "ardrone_autonomy/Navdata.h"
#include "ros/ros.h"
#include "sensor_msgs/Joy.h"
#include "std_srvs/Empty.h"
#include "std_msgs/Empty.h"
#endif

Asked by harderthan on 2019-02-08 00:50:56 UTC

Comments

Answers

Hello, I solved this issue by myself. I just comment out all of header. like this.

/* Comment Out By User
#ifndef Q_MOC_RUN
#include "cvd/thread.h"
#include "tum_ardrone/filter_state.h"
#include "std_msgs/String.h"
#include "geometry_msgs/Twist.h"
#include "ardrone_autonomy/Navdata.h"
#include "ros/ros.h"
#include "sensor_msgs/Joy.h"
#include "std_srvs/Empty.h"
#include "std_msgs/Empty.h"
#endif
*/

Now it is working...
But I don't know wheather it'll make some other problem...

Asked by harderthan on 2019-02-08 01:16:33 UTC

Comments

But I don't know wheather it'll make some other problem...

commenting all headers is not a good solution.

Asked by gvdhoorn on 2019-02-08 04:38:08 UTC

Hello, @gvdhoorn . But, I don't have any options. Someone who will want to use this way should understand this history to solve.

Asked by harderthan on 2019-02-10 23:19:33 UTC