Ask Your Question
0

Cannot include trajectory_planner_ros.h [closed]

asked 2015-09-30 21:30:26 -0500

mwerezak gravatar image

updated 2015-09-30 22:05:36 -0500

Hi, I am working on a simple turtlebot node that uses base_local_planner to generate velocity commands. If put the following in my .cpp source file:

#include <base_local_planner/trajectory_planner_ros.h>

The compilation (using catkin_make) fails with the following error message:

[100%] Building CXX object turtlebot_example/CMakeFiles/turtlebot_example_node.dir/src/turtlebot_example_node.cpp.o
In file included from /opt/ros/indigo/include/base_local_planner/world_model.h:41:0,
                 from /opt/ros/indigo/include/base_local_planner/trajectory_planner_ros.h:44,
                 from <workspace path>/src/turtlebot_example/src/turtlebot_example_node.cpp:22:
/opt/ros/indigo/include/costmap_2d/observation.h:36:29: fatal error: pcl/point_types.h: No such file or directory
 #include <pcl/point_types.h>
                             ^
compilation terminated.
make[2]: *** [turtlebot_example/CMakeFiles/turtlebot_example_node.dir/src/turtlebot_example_node.cpp.o] Error 1
make[1]: *** [turtlebot_example/CMakeFiles/turtlebot_example_node.dir/all] Error 2
make: *** [all] Error 2

It seems like the error is in some header in ros/indigo/include, which is frustrating.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by mwerezak
close date 2015-10-01 15:20:31.472843

Comments

After some more investigating, I'm pretty sure the issue here is that I don't understand cmake, or how to update the CMakeLists.txt to include and properly link to the PCL library.

mwerezak gravatar image mwerezak  ( 2015-10-01 15:16:14 -0500 )edit

It seems the answer can be found here.

mwerezak gravatar image mwerezak  ( 2015-10-01 15:20:20 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-10-01 01:52:21 -0500

clynamen gravatar image

The missing file is * pcl/point_types.h* . Have you installed pcl?

edit flag offensive delete link more

Comments

Ah, I wasn't aware pcl was separate from ROS. That's probably it.

mwerezak gravatar image mwerezak  ( 2015-10-01 11:03:54 -0500 )edit

I installed pcl using the instructions here, yet it still fails on that file :(

If that's not good enough, I also have what appear to be several dozen libpcl packages installed, plus ros-indigo-pcl-ros.

mwerezak gravatar image mwerezak  ( 2015-10-01 11:07:35 -0500 )edit

Question Tools

Stats

Asked: 2015-09-30 21:30:26 -0500

Seen: 423 times

Last updated: Oct 01 '15