鱼香ROS社区
    • 版块
    • 最新
    • 未解决
    • 已解决
    • 群组
    • 注册
    • 登录
    紧急通知:禁止一切关于政治&VPN翻墙等话题,发现相关帖子会立马删除封号
    提问前必看的发帖注意事项: 社区问答规则(小鱼个人)更新 | 高质量帖子发布指南

    导航中加上 sonar,无法加持膨胀层

    已定时 已固定 已锁定 已移动
    Nav2
    ros2 galactic nav2 ros2 sonar
    2
    3
    490
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 11573543821
      大预言家·福尔摩斯·睿
      最后由 编辑

      小鱼老师好!各位大佬好!
      系统为ubuntu20 galactic 旭日X3派
      目前在导航中加入 超声波后,出现了个问题:
      costmap 中仅仅显示了 障碍物,没有给他铺上 膨胀层
      2023-04-23 17-40-43 的屏幕截图.png
      这是啥子情况?
      另附上这部分的代码:

      plugins: ["static_layer", "obstacle_layer", "inflation_layer"]
            static_layer:
                    plugin: "nav2_costmap_2d::StaticLayer"
                    map_subscribe_transient_local: True
      
            sonar_layer:
              plugin: "nav2_costmap_2d::RangeSensorLayer" 
              enabled: True
              topics: ["/sonar3"]
              phi: 1.2
              inflate_cone: 5.0
              no_readings_timeout: 0.0
              clear_threshold: 0.2
              mark_threshold: 0.8
              clear_on_max_reading: True
              input_sensor_type: ALL
      
            obstacle_layer:
                    plugin: "nav2_costmap_2d::ObstacleLayer"
                    enabled: True
                    observation_sources: scan
                    scan:
                      topic: /scan
                      max_obstacle_height: 0.3
                      clearing: True
                      marking: True
                      data_type: "LaserScan"
            
            inflation_layer:
              plugin: "nav2_costmap_2d::InflationLayer"
              cost_scaling_factor: 5.0
              inflation_radius: 0.4
            always_send_full_costmap: True
      

      恳请解答

      11573543821 1 条回复 最后回复 回复 引用 0
      • 11573543821
        大预言家·福尔摩斯·睿 @1157354382
        最后由 编辑

        @1157354382 尼玛 插件加载顺序不对,但是有出来了一个问题:

        [controller_server-11] [INFO] [1682258773.781507330] [local_costmap.local_costmap]: Range sensor layer can't transform from odom to sonar3_link
        [controller_server-11] [INFO] [1682258773.981475366] [local_costmap.local_costmap]: Range sensor layer can't transform from odom to sonar3_link
        [controller_server-11] [INFO] [1682258774.281503211] [local_costmap.local_costmap]: Range sensor layer can't transform from odom to sonar3_link
        [planner_server-12] [INFO] [1682258774.353429141] [global_costmap.global_costmap]: Range sensor layer can't transform from map to sonar3_link
        

        这又是 啥情况阿 各位大佬

        小鱼小 1 条回复 最后回复 回复 引用 0
        • 小鱼小
          小鱼 技术大佬 @1157354382
          最后由 编辑

          @1157354382 看起来改下urdf

          新书配套视频:https://www.bilibili.com/video/BV1GW42197Ck/

          1 条回复 最后回复 回复 引用 -1
          • 第一个帖子
            最后一个帖子
          皖ICP备16016415号-7
          Powered by NodeBB | 鱼香ROS