3. Troubleshooting - AmyPhung/ROS-Toolbox GitHub Wiki
Error 1:
Command: roslaunch simple_create create_world.launch
Error Message:
environment variable 'GAZEBO_RESOURCE_PATH' is not set
The traceback for the exception was written to the log file
Solution:
export GAZEBO_RESOURCE_PATH=/path/to/catkin_ws/src/simple_create/worlds
Mine was export GAZEBO_RESOURCE_PATH=/home/amy/catkin_ws/src/simple_create/worlds
Currently only a temporary fix, to avoid having to re-do this every time edit .bashrc
Error 2:
Command: roslaunch simple_create create_world.launch
Error Message:
[create_world.launch] is neither a launch file in package [simple_create] nor is [simple_create] a launch file name
The traceback for the exception was written to the log file
Solution:
source ~/catkin_ws/devel/setup.bash
Currently only a temporary fix, to avoid having to re-do this every time edit .bashrc
Error 3:
Command: roslaunch simple_create create_world.launch
Error Message:
ImportError: No module named catkin_pkg.packages
Solution:
pip install catkin_pkg
Error 4:
Command: roslaunch simple_create create_world.launch
Error Message:
ModuleNotFoundError: No module named 'rospkg'
Solution:
pip install rospkg
Error 5:
Command: sudo apt-get install ros-kinetic-desktop-full
Error Message:
Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation:
The following packages have unmet dependencies: ros-kinetic-desktop-full : Depends: ros-kinetic-simulators but it is not going to be installed E: Unable to correct problems, you have held broken packages.
Solution:
Make sure all ROS and Gazebo packages are completely uninstalled.
To remove Gazebo:
sudo apt-get remove '.*gazebo.*' '.*sdformat.*' '.*ignition-math.*' '.*ignition-msgs.*' '.*ignition-transport.*'