Add proto3 installation to jenkins Dockerfile. (#590)

[RFC=0000](https://github.com/googlecartographer/rfcs/blob/master/text/0000-proto3-transition.md)
master
Christoph Schütte 2017-11-13 18:52:10 +01:00 committed by Wally B. Feed
parent 5210e92533
commit 3e684b298b
4 changed files with 9 additions and 4 deletions

View File

@ -31,8 +31,9 @@ DEFINE_string(map_filename, "", "If non-empty, filename of a map to load.");
DEFINE_bool(
start_trajectory_with_default_topics, true,
"Enable to immediately start the first trajectory with default topics.");
DEFINE_string(save_map_filename, "",
"If non-empty, serialize state and write it to disk before shutting down.");
DEFINE_string(
save_map_filename, "",
"If non-empty, serialize state and write it to disk before shutting down.");
namespace cartographer_ros {
namespace {

View File

@ -194,7 +194,8 @@ void Node::PublishOccupancyGrid(const std::string& frame_id,
occupancy_grid.info.origin.orientation.y = 0.;
occupancy_grid.info.origin.orientation.z = 0.;
const uint32_t* pixel_data = reinterpret_cast<uint32_t*>(cairo_image_surface_get_data(surface));
const uint32_t* pixel_data =
reinterpret_cast<uint32_t*>(cairo_image_surface_get_data(surface));
occupancy_grid.data.reserve(width * height);
for (int y = height - 1; y >= 0; --y) {
for (int x = 0; x < width; ++x) {

View File

@ -27,7 +27,7 @@ namespace {
TEST(TimeConversion, testToRos) {
std::vector<int64_t> values = {0, 1469091375, 1466481821, 1462101382,
1468238899};
1468238899};
for (int64_t seconds_since_epoch : values) {
::ros::Time ros_now;
ros_now.fromSec(seconds_since_epoch);

View File

@ -37,6 +37,9 @@ COPY cartographer_rviz/package.xml catkin_ws/src/cartographer_ros/cartographer_r
COPY scripts/install_debs.sh cartographer_ros/scripts/
RUN cartographer_ros/scripts/install_debs.sh && rm -rf /var/lib/apt/lists/*
# Install proto3.
RUN /catkin_ws/src/cartographer/scripts/install_proto3.sh
# Build, install, and test all packages individually to allow caching. The
# ordering of these steps must match the topological package ordering as
# determined by Catkin.