Hi Lisa, I agree with Jeremy's suggestion, but can you be a little more specific about what code you were trying to compile? You mention the "IntroductionToWorkingWithLaserScannerData" tutorial, but your error messages look like they're in a drive_base_tutorial package. I just want to make sure that we fix this typo/mistake for the tutorial that you're working on. Vijay On Mon, Sep 27, 2010 at 10:52 AM, Jeremy Leibs wrote: > Is the code for the tutorial in a package which declares a dependency > on laser_geometry? > > Make sure there is a line such as: > > > > in the manifest file for the package you are using for the tutorial. > > On Sun, Sep 26, 2010 at 11:47 AM, Lisa Miller > wrote: > > I'm trying to work on the IntroductionToWorkingWithLaserScannerData > > tutorial and cannot get the given code to compile. It is having > > trouble with laser_geometry.h > > > > If I try to make the code as is I get this error: > > laser_scan.cpp:6:43: error: laser_geometry/laser_geometry.h: No such > > file or directory > > > > rospack find can find laser_geometry > > > > If I code in the full path to laser_geometry. h > > #include > "/opt/ros/cturtle/stacks/laser_pipeline/laser_geometry/include/laser_geometry/laser_geometry.h" > > > > Then I get all sorts of compiler errors: > > Building CXX object CMakeFiles/laser_scan.dir/src/laser_scan.o > > Linking CXX executable ../bin/laser_scan > > CMakeFiles/laser_scan.dir/src/laser_scan.o: In function > > `~LaserScanToPointCloud': > > /home/lizajane999/ros/stacks/drive_base_tutorial/src/laser_scan.cpp:8: > > undefined reference to > > `laser_geometry::LaserProjection::~LaserProjection()' > > /home/lizajane999/ros/stacks/drive_base_tutorial/src/laser_scan.cpp:8: > > undefined reference to > > `laser_geometry::LaserProjection::~LaserProjection()' > > /home/lizajane999/ros/stacks/drive_base_tutorial/src/laser_scan.cpp:8: > > undefined reference to > > `laser_geometry::LaserProjection::~LaserProjection()' > > /home/lizajane999/ros/stacks/drive_base_tutorial/src/laser_scan.cpp:8: > > undefined reference to > > `laser_geometry::LaserProjection::~LaserProjection()' > > CMakeFiles/laser_scan.dir/src/laser_scan.o: In function > > > `laser_geometry::LaserProjection::transformLaserScanToPointCloud(std::basic_string > std::char_traits, std::allocator > const&, > > sensor_msgs::LaserScan_ > const&, > > sensor_msgs::PointCloud_ >&, tf::Transformer&, > > int)': > > > /opt/ros/cturtle/stacks/laser_pipeline/laser_geometry/include/laser_geometry/laser_geometry.h:159: > > undefined reference to > > > `laser_geometry::LaserProjection::transformLaserScanToPointCloud_(std::basic_string > std::char_traits, std::allocator > const&, > > sensor_msgs::PointCloud_ >&, > > sensor_msgs::LaserScan_ > const&, > > tf::Transformer&, int, bool)' > > CMakeFiles/laser_scan.dir/src/laser_scan.o: In function > > `LaserScanToPointCloud': > > /home/lizajane999/ros/stacks/drive_base_tutorial/src/laser_scan.cpp:28: > > undefined reference to > > `laser_geometry::LaserProjection::~LaserProjection()' > > collect2: ld returned 1 exit status > > > > > > I've tried reinstalling laser_pipeline from both svn and Ubuntu > > packages but it doesn't change these errors. > > > > > > > > Lisa J. Miller > > > > Graduate Research Assistant > > Information and Computer Sciences Dept. > > University of Hawaii at Manoa > > > > lisa.miller@hawaii.edu > > lizajane999@gmail.com > > > > (808) 220-9029 > > _______________________________________________ > > ros-users mailing list > > ros-users@code.ros.org > > https://code.ros.org/mailman/listinfo/ros-users > > > _______________________________________________ > ros-users mailing list > ros-users@code.ros.org > https://code.ros.org/mailman/listinfo/ros-users > -- Vijay Pradeep Systems Engineer Willow Garage, Inc. vpradeep@willowgarage.com