当前位置:   article > 正文

使用离线数据测试apollo7.0_cyber_launch lidar

cyber_launch lidar

https://zhuanlan.zhihu.com/p/510712104

cd /apollo/

视觉测试:

1.启动dreamview,并选择车辆和地图

 ./scripts/bootstrap.sh 
  • 1

2.启动transform模块

 cyber_launch start /apollo/modules/transform/launch/static_transform.launch
  • 1

3.启动图像压缩模块

 cyber_launch start modules/drivers/tools/image_decompress/launch/image_decompress.launch
  • 1

4.启动障碍物检测模块

 修改配置文件第10行和11行的内容
    vim modules/perception/production/conf/perception/camera/fusion_camera_detection_component.pb.txt
    为:
    output_final_obstacles : true
    output_obstacles_channel_name : "/apollo/perception/obstacles"
   启动模块
    mainboard -d modules/perception/production/dag/dag_streaming_perception_camera.dag
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

5.查看

5.1 查看日志

tail -f /apollo/data/log/mainboard.INFO
  • 1

5.2 显存不再变化

watch -n 0.1 nvidia-smi
  • 1
可以看一下之前显存是怎么变化的
  • 1

6.播放离线数据,开始检测

cyber_recorder play -f /apollo/data/bag/demo_sensor_data_for_vision.record  --loop
  • 1

激光测试:

激光雷达要参照感知测试文档:

1.启动dreamview,并选择车辆和地图

 ./scripts/bootstrap.sh 
  • 1

2.启动transform模块

 cyber_launch start /apollo/modules/transform/launch/static_transform.launch
  • 1

3.启动障碍物检测模块

3.1在global_flagfile.txt 中加入:

--pointcloud_topic=/apollo/sensor/velodyne64/compensator/PointCloud2
  • 1

3.2 将/apollo/modules/common/data/global_flagfile.txt中增加数据包中 pointcloud_topic 数据:

--pointcloud_topic=/apollo/sensor/velodyne64/compensator/PointCloud2 :

         #--pointcloud_topic=/apollo/sensor/velodyne64/compensator/PointCloud2
   	 config_file_path: "/apollo/modules/perception/production/conf/perception/lidar/velodyne64_detection_conf.pb.txt"
         flag_file_path: "/apollo/modules/perception/production/conf/perception/perception_common.flag"
         readers {
        	channel: "/apollo/sensor/velodyne64/compensator/PointCloud2"
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

3.3启动模块

mainboard -d /apollo/modules/perception/production/dag/dag_streaming_perception_lidar.dag
  • 1

3.4 或启动launch 文件

cyber_launch start /apollo/modules/perception/production/launch/perception_lidar.launch
停止该节点是时候:cyber_launch stop /apollo/modules/perception/production/launch/perception_lidar.launch
  • 1
  • 2

4.查看

4.1 查看日志

tail -f /apollo/data/log/mainboard.INFO
  • 1

4.2 显存不再变化

watch -n 0.1 nvidia-sm

i

5.播放离线数据,开始检测

cyber_recorder play -f /apollo/data/bag/demo_sensor_data_for_vision.record --loop
或者:

cyber_recorder play -f /apollo/data/bag/sensor_rgb.record -k /perception/vehicle/obstacles /apollo/perception/obstacles /apollo/perception/traffic_light /apollo/prediction

6.重现演示要先关闭节点

cyber_launch stop

7 日志查看:

/apollo/data/log/mainboard.log.INFO.时间

8 测试结果,报错误了。

RuntimeError: CUDA out of memory. Tried to allocate 108.00 MiB (GPU 0; 7.93 GiB total capacity; 1.90 GiB already allocated; 66.56 MiB free; 1.95 GiB reserved in total by PyTorch)

[perception_lidar]

看一下节点订阅关系,看一下GPU的占有率.
重启之后,GPU没有报问题。
  • 1
  • 2
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/414079
推荐阅读
相关标签
  

闽ICP备14008679号