Open LYF579 opened 7 months ago
直接看报错信息,显示cpp文件中使用‘warning_range’时发现没有声明,又提示.h文件中声明 ‘warning_range’时,‘_Float32’ 类型不存在,那就是缺少定义‘_Float32’的地方或者没找到,你直接把‘_Float32’改成’float‘试试
/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: 没有那个文件或目录
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated. 编译的时候出现了这个错误
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 编译的时候出现了这个错误