小鱼 ROS 2 新书上线!点击链接查看, 新书配套视频点击链接查看。
提问前必看的发帖注意事项—— 提问前必看!不符合要求的问题拒绝回答!!
社区使用指南—如何添加标签修改密码
求助:rviz2无法打开stl文件
-
i@li-B550-Pro:~/dev_ws/install$ ros2 launch air501 view_air501_launch.py
[INFO] [launch]: All log files can be found below /home/li/.ros/log/2023-05-17-12-57-10-501779-li-B550-Pro-9353
[INFO] [launch]: Default logging verbosity is set to INFO
[INFO] [joint_state_publisher_gui-1]: process started with pid [9354]
[INFO] [robot_state_publisher-2]: process started with pid [9356]
[INFO] [rviz2-3]: process started with pid [9358]
[robot_state_publisher-2] [WARN] [1684299430.584880536] [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-2] [INFO] [1684299430.586545838] [robot_state_publisher]: got segment base_link
[robot_state_publisher-2] [INFO] [1684299430.586559655] [robot_state_publisher]: got segment dummy_link
[robot_state_publisher-2] [INFO] [1684299430.586563773] [robot_state_publisher]: got segment link1
[robot_state_publisher-2] [INFO] [1684299430.586566759] [robot_state_publisher]: got segment link2
[robot_state_publisher-2] [INFO] [1684299430.586569424] [robot_state_publisher]: got segment link3
[robot_state_publisher-2] [INFO] [1684299430.586571969] [robot_state_publisher]: got segment link4
[robot_state_publisher-2] [INFO] [1684299430.586574574] [robot_state_publisher]: got segment link5
[robot_state_publisher-2] [INFO] [1684299430.586577129] [robot_state_publisher]: got segment link6
[joint_state_publisher_gui-1] [INFO] [1684299430.894130472] [joint_state_publisher_gui]: Centering
[rviz2-3] [INFO] [1684299431.079756745] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-3] [INFO] [1684299431.079886638] [rviz2]: OpenGl version: 4.6 (GLSL 4.6)
[rviz2-3] [INFO] [1684299431.175392342] [rviz2]: Stereo is NOT SUPPORTED
[rviz2-3] [ERROR] [1684299431.262163123] [rviz2]: Error retrieving file [file:///home/li/dev_ws/src/air501/meshes/base_link.stl]: Couldn't open file /home/li/dev_ws/src/air501/meshes/base_link.stl
[rviz2-3] [ERROR] [1684299431.262257076] [rviz2]: Error retrieving file [file:///home/li/dev_ws/src/air501/meshes/base_link.stl]: Couldn't open file /home/li/dev_ws/src/air501/meshes/base_link.stl
[rviz2-3] [ERROR] [1684299431.262738326] [rviz2]: Error retrieving file [file:///home/li/dev_ws/src/air501/meshes/base_link.stl]: Couldn't open file /home/li/dev_ws/src/air501/meshes/base_link.stl -
@2415174932 1.确认目录
2. 确认文件是否完整正确 -
@小鱼 我的目录是没有问题,浏览了之前rviz的一个帖子,目录是按照您的指点设置的。stl文件是使用solidworks2022导出的,导出的stl每一部部分都是一个装配体,无法打开。然后我使用solidwroks2022把每一个零件单独转成stl,就是目前这个样子,也无法打开。
-
@小鱼 因此我想先把rviz的其他报错都解决掉,在查看stl的问题
-
@2415174932 我最后解决了,原因是SW 2021 2022导出的stl有问题,我换用SW2019解决了
-
@2415174932 OK