小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
RVIZ2可视化URDF模型报错
-
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'].
RVIZ2中没有显示所建立的模型 -
此回复已被删除!