嘿,伙计们,所以我试图启动turtlebot3_gazebo_rviz,但我得到这个错误。
roslaunch turtlebot3_gazebo turtlebot3_gazebo_rviz.launch
... logging to /home/zac1405/.ros/log/78418374-e1c4-11ec-86d1-000c295c3592/roslaunch-
ubuntu-10618.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.
xacro: in-order processing became default in ROS Melodic. You can drop the option.
started roslaunch server http://ubuntu:40921/
SUMMARY
========
PARAMETERS
* /robot_description: <?xml version="1....
* /robot_state_publisher/publish_frequency: 50.0
* /robot_state_publisher/tf_prefix:
* /rosdistro: melodic
* /rosversion: 1.14.13
NODES
/
robot_state_publisher (robot_state_publisher/robot_state_publisher)
rviz (rviz/rviz)
ROS_MASTER_URI=http://localhost:11311
process[robot_state_publisher-1]: started with pid [10693]
ERROR: cannot launch node of type [rviz/rviz]: rviz
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/zac1405/catkin_ws/src
ROS path [2]=/opt/ros/melodic/share
我怀疑启动器无法选择正确的路径开始,这就是为什么它摇动三个不同的路径。我的想法是删除路径0和路径2,只使用索引为1的路径。我希望我的期望是正确的,否则我希望有人能帮助我。提前谢谢你
所以经过一番研究,我可以告诉你我的解释是错误的,要解决这个问题,只需安装ros-melodic.rviz
sudo apt-get install ros-melodic-rviz
我希望我对你有帮助