提交 efdadfca 编写于 作者: C Calvin Miao 提交者: Yajia Zhang

localization: fixed a couple of warnings

上级 6db1cb29
......@@ -32,8 +32,8 @@ void LidarMsgTransfer::Transfer(const drivers::PointCloud &msg,
CHECK_NOTNULL(lidar_frame);
if (msg.height() > 1 && msg.width() > 1) {
for (int i = 0; i < msg.height(); ++i) {
for (int j = 0; j < msg.width(); ++j) {
for (unsigned int i = 0; i < msg.height(); ++i) {
for (unsigned int j = 0; j < msg.width(); ++j) {
Eigen::Vector3d pt3d;
pt3d[0] = static_cast<double>(msg.point(i * msg.width() + j).x());
pt3d[1] = static_cast<double>(msg.point(i * msg.width() + j).y());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册