Skip to content

Commit

Permalink
remove boost dependency fixes #81
Browse files Browse the repository at this point in the history
  • Loading branch information
tfoote committed Dec 21, 2015
1 parent 28971ce commit 2560c8e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 1 addition & 4 deletions sensor_msgs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ cmake_minimum_required(VERSION 2.8.3)
project(sensor_msgs)

find_package(catkin REQUIRED COMPONENTS geometry_msgs message_generation std_msgs)
# We want boost/format.hpp, which isn't in its own component.
find_package(Boost REQUIRED)

# For point_cloud2.py
catkin_python_setup()
Expand Down Expand Up @@ -49,8 +47,7 @@ generate_messages(DEPENDENCIES geometry_msgs std_msgs)

catkin_package(
INCLUDE_DIRS include
CATKIN_DEPENDS geometry_msgs message_runtime std_msgs
DEPENDS Boost)
CATKIN_DEPENDS geometry_msgs message_runtime std_msgs)

install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
Expand Down
3 changes: 2 additions & 1 deletion sensor_msgs/include/sensor_msgs/point_cloud_conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ static inline bool convertPointCloud2ToPointCloud (const sensor_msgs::PointCloud
{
if (input.fields[d].datatype != sensor_msgs::PointField::FLOAT32)
{
std::cerr << boost::str(boost::format("sensor_msgs::PointCloud accepts only float32 values, but field %d (%s) has field type %d!")%(int)d% input.fields[d].name%input.fields[d].datatype) << std::endl;
std::cerr << "sensor_msgs::PointCloud accepts only float32 values, but field "\
<<(int)d << "( " << input.fields[d].name <<") has field type " << input.fields[d].datatype << "!" << std::endl;
}
}

Expand Down

0 comments on commit 2560c8e

Please sign in to comment.