导航

    蓝鲸ROS机器人论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 热门
    ROS交流群
    ROS Group
    产品服务
    Product Service
    开源代码库
    Github
    官网
    Official website
    技术交流
    Technological exchanges
    激光雷达
    LIDAR
    ROS教程
    ROS Tourials
    深度学习
    Deep Learning
    机器视觉
    Computer Vision

    自动回充功能没反应

    产品服务
    自动回充功能没反应,求解决。
    2
    3
    1441
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • grouce
      grouce 最后由 编辑

      执行roslaunch bw_auto_dock xiaoqiang_local.launch
      … logging to /home/wheeltec/.ros/log/00d4f7f6-87e0-11eb-a243-00044beac535/roslaunch-wheeltec-9099.log
      Checking log directory for disk usage. This may take a while.
      Press Ctrl-C to interrupt
      Done checking log file disk usage. Usage is <1GB.

      started roslaunch server http://192.168.1.100:42439/

      SUMMARY

      PARAMETERS

      • /dock_driver/back_distance: 0.25
      • /dock_driver/back_dock_kd: 0.0
      • /dock_driver/back_dock_ki: 0.04
      • /dock_driver/back_dock_kp: 0.2
      • /dock_driver/barDetectFlag: 0
      • /dock_driver/crash_distance: 120
      • /dock_driver/global_frame_id: map
      • /dock_driver/grid_length: 4.0
      • /dock_driver/max_linearspeed: 0.2
      • /dock_driver/max_rotspeed: 1.0
      • /dock_driver/port: /dev/ttyUSB004
      • /dock_driver/power_scale: 1.0
      • /dock_driver/power_threshold: 25.0
      • /dock_driver/station_filename: /home/wheeltec/sl…
      • /rosdistro: melodic
      • /rosversion: 1.14.10

      NODES
      /
      dock_driver (bw_auto_dock/bw_auto_dock)

      ROS_MASTER_URI=http://192.168.1.100
      输入Last login: Thu Mar 18 19:34:56 2021 from 192.168.1.101
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/dockposition_save std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      ERROR: Unable to communicate with master!
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      ERROR: Unable to communicate with master!
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/dockposition_save std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/dockposition_save std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$ rostopic pub /bw_auto_dock/EnableCharge std_msgs/Bool ‘{data: true}’ -1
      publishing and latching message for 3.0 seconds
      wheeltec@wheeltec:~$
      没有任何反应

      xiaoqiang 2 条回复 最后回复 回复 引用 0
      • xiaoqiang
        xiaoqiang @grouce 最后由 编辑

        @grouce 正常工作条件,launch中设置的里程计话题要正常发布,launch中设置的global_frame_id 到里程计的tf关系要发布。global_frame_id 可以设成odom,这样充电桩位置就是在odom坐标系下,不需要额外的tf,但是这样设置,下次会导致里程计重启后,充电桩位置不准确。

        1 条回复 最后回复 回复 引用 0
        • xiaoqiang
          xiaoqiang @grouce 最后由 编辑

          @grouce 还有话题和tf 的frame_id是不同的东西,可以叫同一个名字。比如odom这个单词,里程计坐标系可以叫odom,里程计话题也可以叫odom。

          1 条回复 最后回复 回复 引用 0
          • 1 / 1
          • First post
            Last post
          Copyright © 2015-2023 BlueWhale community