feilonghonghong / ros_gazebo_navigation

使用Gazebo仿真和ros的navigation栈实现了二轮差速小车的建图导航和避障,并添加了cartographer纯定位的使用和基于图像匹配的重定位功能。
9 stars 2 forks source link

出现问题 #1

Open LYF579 opened 7 months ago

LYF579 commented 7 months ago

In file included from /home/kinetic/ros_gazebo_navigation-main/src/range_sensor_layer/src/range_sensor_layer.cpp:2:0: /home/kinetic/ros_gazebo_navigation-main/src/range_sensor_layer/include/range_sensor_layer/range_sensor_layer.h:91:3: error: ‘_Float32’ does not name a type _Float32 warning_range=0.95; ^ /home/kinetic/ros_gazebo_navigation-main/src/range_sensor_layer/src/range_sensor_layer.cpp: In member function ‘void range_sensor_layer::RangeSensorLayer::processVariableRangeMsg(sensor_msgs::Range&)’: /home/kinetic/ros_gazebo_navigation-main/src/range_sensor_layer/src/range_sensor_layer.cpp:243:29: error: ‘warning_range’ was not declared in this scope 编译的时候出现了这个错误

feilonghonghong commented 7 months ago

直接看报错信息,显示cpp文件中使用‘warning_range’时发现没有声明,又提示.h文件中声明 ‘warning_range’时,‘_Float32’ 类型不存在,那就是缺少定义‘_Float32’的地方或者没找到,你直接把‘_Float32’改成’float‘试试

chenjiabin752 commented 7 months ago

/home/wheeltec-client/ros_gazebo_navigation/src/cartographer_ros/cartographer_ros/cartographer_ros/ros_map_writing_points_processor.h:25:10: fatal error: cartographer/mapping/proto/probability_grid_range_data_inserter_options_2d.pb.h: 没有那个文件或目录

include "cartographer/mapping/proto/probability_grid_range_data_inserter_options_2d.pb.h"

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. 编译的时候出现了这个错误