Open rrajnidhi opened 4 years ago
You need to have COM_OBS_AVOID set to 1 otherwise Obstacle Avoidance is disabled and you will fly into obstacles. In Rviz you should see the vehicle, the world and the pointcloud. Most liklely your environment is not set correctly. Please run the following commands and share the output here
echo $ROS_PACKAGE_PATH
echo $GAZEBO_PLUGIN_PATH
echo $GAZEBO_MODEL_PATH
echo $LD_LIBRARY_PATH
Hi, thanks for the response, attaching the outputs for the commands : nidhi@nidhi-HP:~$ echo $ROS_PACKAGE_PATH /home/nidhi/catkin_ws/src/beg_tut:/home/nidhi/catkin_ws/src/mavlink:/home/nidhi/catkin_ws/src/mavros/libmavconn:/home/nidhi/catkin_ws/src/mavros/mavros_msgs:/home/nidhi/catkin_ws/src/mavros/mavros:/home/nidhi/catkin_ws/src/mavros/mavros_extras:/home/nidhi/catkin_ws/src/avoidance/avoidance:/home/nidhi/catkin_ws/src/avoidance/global_planner:/home/nidhi/catkin_ws/src/avoidance/local_planner:/home/nidhi/catkin_ws/src/avoidance/safe_landing_planner:/home/nidhi/catkin_ws/src/mavros/test_mavros:/opt/ros/kinetic/share nidhi@nidhi-HP:~$ echo $GAZEBO_PLUGIN_PATH
nidhi@nidhi-HP:~$ echo $GAZEBO_MODEL_PATH :/home/nidhi/Firmware/Tools/sitl_gazebo/models:/home/nidhi/catkin_ws/src/avoidance/avoidance/sim/models:/home/nidhi/catkin_ws/src/avoidance/avoidance/sim/worlds nidhi@nidhi-HP:~$ echo $LD_LIBRARY_PATH /home/nidhi/catkin_ws/devel/lib:/opt/ros/kinetic/lib:/opt/ros/kinetic/lib/x86_64-linux-gnu
most likely you haven;t run the instructions at point 3 here https://github.com/PX4/avoidance#build-and-run-the-simulator
Make sure to change the last line based on the path to the Firmware directory on your machine
Hi, I am trying to do simulation, i faced with following issues: