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

    RVIZ2可视化URDF模型报错

    已定时 已固定 已锁定 已移动
    无人机
    rviz2不能显示模型问题 urdf
    2
    2
    604
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • 21865064802
      2186506480
      最后由 编辑

      RVIZ2中不显示机器人模型,输入运行命令ros2 launch fishbot_description display_rviz2.launch.py后显示
      [INFO] [launch]: All log files can be found below /home/ros2/.ros/log/2023-12-04-21-31-36-456212-ros2-virtual-machine-10632
      [INFO] [launch]: Default logging verbosity is set to INFO
      [INFO] [robot_state_publisher-1]: process started with pid [10638]
      [INFO] [joint_state_publisher_gui-2]: process started with pid [10640]
      [INFO] [rviz2-3]: process started with pid [10642]
      [robot_state_publisher-1] [WARN] [1701696696.917959925] [robot_state_publisher]: No robot_description parameter, but command-line argument available. Assuming argument is name of URDF file. This backwards compatibility fallback will be removed in the future.
      [robot_state_publisher-1] [FATAL] [1701696696.919028357] [robot_state_publisher]: Failed to open URDF file: /home/ros2/chapt8_ws/install/fishbot_description/share/fishbot_description/urdf/fishbot_base.urdf: No such file or directory
      [robot_state_publisher-1] terminate called after throwing an instance of 'std::system_error'
      [robot_state_publisher-1] what(): Failed to open URDF file: /home/ros2/chapt8_ws/install/fishbot_description/share/fishbot_description/urdf/fishbot_base.urdf: No such file or directory
      [rviz2-3] qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
      [joint_state_publisher_gui-2] qt.qpa.plugin: Could not find the Qt platform plugin "wayland" in ""
      [rviz2-3] [INFO] [1701696698.245036043] [rviz2]: Stereo is NOT SUPPORTED
      [rviz2-3] [INFO] [1701696698.245313097] [rviz2]: OpenGl version: 4.3 (GLSL 4.3)
      [rviz2-3] [INFO] [1701696698.527562561] [rviz2]: Stereo is NOT SUPPORTED
      [joint_state_publisher_gui-2] Traceback (most recent call last):
      [joint_state_publisher_gui-2] File "/opt/ros/humble/lib/joint_state_publisher_gui/joint_state_publisher_gui", line 33, in <module>
      [joint_state_publisher_gui-2] sys.exit(load_entry_point('joint-state-publisher-gui==2.4.0', 'console_scripts', 'joint_state_publisher_gui')())
      [joint_state_publisher_gui-2] File "/opt/ros/humble/lib/python3.10/site-packages/joint_state_publisher_gui/joint_state_publisher_gui.py", line 284, in main
      [joint_state_publisher_gui-2] JointStatePublisher(parsed_args.urdf_file))
      [joint_state_publisher_gui-2] File "/opt/ros/humble/lib/python3.10/site-packages/joint_state_publisher/joint_state_publisher.py", line 302, in init
      [joint_state_publisher_gui-2] with open(description_file, 'r') as infp:
      [joint_state_publisher_gui-2] FileNotFoundError: [Errno 2] 没有那个文件或目录: '/home/ros2/chapt8_ws/install/fishbot_description/share/fishbot_description/urdf/fishbot_base.urdf'
      [ERROR] [joint_state_publisher_gui-2]: process has died [pid 10640, exit code 1, cmd '/opt/ros/humble/lib/joint_state_publisher_gui/joint_state_publisher_gui /home/ros2/chapt8_ws/install/fishbot_description/share/fishbot_description/urdf/fishbot_base.urdf --ros-args -r __node:=joint_state_publisher_gui'].
      [ERROR] [robot_state_publisher-1]: process has died [pid 10638, exit code -6, cmd '/opt/ros/humble/lib/robot_state_publisher/robot_state_publisher /home/ros2/chapt8_ws/install/fishbot_description/share/fishbot_description/urdf/fishbot_base.urdf --ros-args'].
      942c0afe-a119-43d9-bffc-6b25f64c26b9-71E331EF55EFCE8EFF55C9B3DD3E17A6.jpg
      RVIZ2中没有显示所建立的模型

      3832305743 1 条回复 最后回复 回复 引用 0
      • 3832305743
        鱼小小 @2186506480
        最后由 编辑

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