Navigation

    蓝鲸ROS机器人论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • Popular
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

    提高roslaunch和rosrun启动速度

    技术交流
    1
    1
    1050
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • xiaoqiang
      xiaoqiang last edited by xiaoqiang

      优化方向是减少磁盘读写过程:
      1.对于rosrun主要是catkin_find函数太占用时间,可以去掉–share选项,同时把搜索share的过程去掉。最后把debug函数注释掉。
      2.对于roslaunch,可以将–skip-log-check选项默认值改成true,不检查log大小
      3.如果执行下列语句发现numpy加载太慢,比如耗时2秒以上

      python -X importtime -c "import numpy" 
      

      可以重新升级安装numpy

      python -m pip install --upgrade -force-reinstall numpy
      
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2015-2023 BlueWhale community