Closed JeonHyeongJunKW closed 2 years ago
Hi @JeonHyeongJunKW . Sorry for late I just checked the issue.
I am pretty sure this is because your GAZEBO_MODEL_PATH
is somewhat wrong in your .bashrc
Can you attach your ~/.bashrc
file here?
It should be like:
....
source ~/khnp_ws/devel/setup.bash # order is important, workspace's setup.bash should be ahead of ROS_PACKAGE_PATH
export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/home/mason/PX4-Autopilot/build/px4_sitl_default/build_gazebo
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/mason/khnp_ws/src/KVRC2022/gazebo_map_for_khnp/season2:/home/mason/PX4-Autopilot/Tools/sitl_gazebo/models
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/mason/PX4-Autopilot/build/px4_sitl_default/build_gazebo
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/mason/PX4-Autopilot:/home/mason/PX4-Autopilot/Tools/sitl_gazebo # order is important, workspace's setup.bash should be ahead of ROS_PACKAGE_PATH
....
And can you also tell me where you cloned this repository?
Thank you for your detailed reply. I installed it yesterday and checked it again today, and it worked normally. I think the computer needs to reboot after installing the related package(In my case, this repository, Gazebo, PX4-SITL, mavros).
Our computer environment is as follows
my "~/.bashrc" file is writen as
source /home/jeon/challenge/devel/setup.bash
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/jeon/challenge/src/KVRC2022/gazebo_map_for_khnp/season2:/home/jeon/PX4-Autopilot/Tools/sitl_gazebo/models
export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/home/jeon/PX4-Autopilot/build/px4_sitl_default/build_gazebo
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/jeon/PX4-Autopilot/build/px4_sitl_default/build_gazebo
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/home/jeon/PX4-Autopilot:/home/jeon/PX4-Autopilot/Tools/sitl_gazebo
When I run 'gazebo.launch', I can only see the drone on the gazebo. However there isn't the map. I want to solve this problem.
I commanded like this:
Gazebo window : there is no structure like a building.
My command window prints this :