Skip to content

Commit b4ffd43

Browse files
lianglia-apolloycool
authored andcommitted
Navigation planning: fixed test.
1 parent b971204 commit b4ffd43

File tree

2 files changed

+733
-732
lines changed

2 files changed

+733
-732
lines changed

modules/drivers/lidar_velodyne/pointcloud/lib/util.h

+3-2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define MODULES_DRIVERS_LIDAR_VELODYNE_POINTCLOUD_LIB_UTIL_H_
1919

2020
#include <fstream>
21+
#include <string>
2122

2223
#include "angles/angles.h"
2324
#include "ros/ros.h"
@@ -34,7 +35,7 @@ void dump_msg(const T& msg, const std::string& file_path) {
3435
boost::shared_array<uint8_t> obuffer(new uint8_t[serial_size]);
3536
ros::serialization::OStream ostream(obuffer.get(), serial_size);
3637
ros::serialization::serialize(ostream, msg);
37-
ofs.write((char*)obuffer.get(), serial_size);
38+
ofs.write(reinterpret_cast<char*>(obuffer.get()), serial_size);
3839
ofs.close();
3940
}
4041

@@ -49,7 +50,7 @@ void load_msg(const std::string& file_path, T* msg) {
4950

5051
uint32_t file_size = end - begin;
5152
boost::shared_array<uint8_t> ibuffer(new uint8_t[file_size]);
52-
ifs.read((char*)ibuffer.get(), file_size);
53+
ifs.read(reinterpret_cast<char*>(ibuffer.get()), file_size);
5354
ros::serialization::IStream istream(ibuffer.get(), file_size);
5455
ros::serialization::deserialize(istream, *msg);
5556
ifs.close();

0 commit comments

Comments
 (0)