Closed Muzaib95Anjum closed 4 years ago
@Muzaib95Anjum looks like you did not includ PX4 SITL packages on the path. Did you do the setup using the setup.sh
script in the install folder? It already does that for you and the necessary lines in your .bashrc
file
@mzahana yes i did setup using setup.sh script in the install folder! But the error remains....
@Muzaib95Anjum Are the paths updated in your .bashrc
?
Also make sure that you source your .bashrc
before you launch the setup?
cd
source .bashrc
@mzahana let me check again then tell you the situation.
@Muzaib95Anjum I just noticed that there are few steps missing in the setup.sh
file. I will update it.
@mzahana okay when you update the the file kindly do notify.
@Muzaib95Anjum setup.sh
file is updated. Kindly re-run it and check.
@mzahana okay checking it.
Also make sure that the end of your .bashrc
looks like the following
source /opt/ros/melodic/setup.bash
source /home/arrow/catkin_ws/devel/setup.bash
source ~/Firmware/Tools/setup_gazebo.bash ~/Firmware ~/Firmware/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware/Tools/sitl_gazebo
export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/usr/lib/x86_64-linux-gnu/gazebo-9/plugins
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/arrow/catkin_ws/src/px4_fast_planner/models
Note that your home folder name can be different.
Also make sure that
source $HOME/catkin_ws/devel/setup.bash
is before all the export
lines.
@mzahana okay thanks i am re running it.
If your issue is solved please close it.
@mzahana i have re runned the file and after this command roslaunch px4_fast_planner px4_fast_planner.launch these errors are listed:
... logging to /home/muzaib/.ros/log/8ac84420-bfb5-11ea-91fb-54ab3ae22b7e/roslaunch-Lenovo-V310-15ISK-5357.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.
WARN: unrecognized 'param' tag in
CLEAR PARAMETERS
PARAMETERS
NODES / camera_pose_publisher (px4_fast_planner/camera_pose_publisher.py) fast_planner_node (plan_manage/fast_planner_node) gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient) geometric_controller (geometric_controller/geometric_controller_node) mavros (mavros/mavros_node) rqt_reconfigure (rqt_reconfigure/rqt_reconfigure) rvizvisualisation (rviz/rviz) sitl (px4/px4) tf_camera (tf/static_transform_publisher) traj_msg_converter (px4_fast_planner/trajectory_msg_converter.py) traj_server (plan_manage/traj_server) vehicle_spawn_Lenovo_V310_15ISK_5357_7201448473956089106 (gazebo_ros/spawn_model) waypoint_generator (waypoint_generator/waypoint_generator) world_map_linker (tf/static_transform_publisher)
auto-starting new master process[master]: started with pid [5367] ROS_MASTER_URI=http://localhost:11311
setting /run_id to 8ac84420-bfb5-11ea-91fb-54ab3ae22b7e
process[rosout-1]: started with pid [5378]
started core service [/rosout]
process[world_map_linker-2]: started with pid [5386]
process[tf_camera-3]: started with pid [5387]
ERROR: cannot launch node of type [px4/px4]: Cannot locate node of type [px4] in package [px4]. Make sure file exists in package path and permission is set to executable (chmod +x)
process[gazebo-5]: started with pid [5398]
process[gazebo_gui-6]: started with pid [5403]
process[vehicle_spawn_Lenovo_V310_15ISK_5357_7201448473956089106-7]: started with pid [5408]
process[mavros-8]: started with pid [5409]
process[fast_planner_node-9]: started with pid [5410]
process[traj_server-10]: started with pid [5412]
process[waypoint_generator-11]: started with pid [5417]
process[geometric_controller-12]: started with pid [5427]
process[rqt_reconfigure-13]: started with pid [5430]
process[camera_pose_publisher-14]: started with pid [5434]
process[traj_msg_converter-15]: started with pid [5435]
process[rvizvisualisation-16]: started with pid [5438]
[ INFO] [1594059704.238122743]: FCU URL: udp://:14540@localhost:14557
[ INFO] [1594059704.246192999]: udp0: Bind address: 0.0.0.0:14540
[ INFO] [1594059704.246332989]: udp0: Remote address: 127.0.0.1:14557
[ INFO] [1594059704.246491125]: GCS bridge disabled
[ INFO] [1594059704.294175661]: Plugin 3dr_radio loaded
[ INFO] [1594059704.300580186]: Plugin 3dr_radio initialized
[ INFO] [1594059704.300948356]: Plugin actuator_control loaded
[ INFO] [1594059704.313296778]: Plugin actuator_control initialized
[ INFO] [1594059704.317570200]: Plugin adsb loaded
[ INFO] [1594059704.327994246]: Plugin adsb initialized
[ INFO] [1594059704.328231945]: Plugin altitude loaded
[ INFO] [1594059704.333555721]: Plugin altitude initialized
[ INFO] [1594059704.333810118]: Plugin cam_imu_sync loaded
[ INFO] [1594059704.337134773]: Plugin cam_imu_sync initialized
[ INFO] [1594059704.337374773]: Plugin command loaded
[ INFO] [1594059704.357393246]: Plugin command initialized
[ INFO] [1594059704.357625138]: Plugin companion_process_status loaded
hit: 0.619039
miss: -0.619039
min log: -1.99243
max: 2.19722
thresh log: 1.38629
[ INFO] [1594059704.379226005]: Plugin companion_process_status initialized
[ INFO] [1594059704.379429320]: Plugin debug_value loaded
[ INFO] [1594059704.414871201]: Plugin debug_value initialized
[ INFO] [1594059704.415029391]: Plugin distance_sensor blacklisted
[ INFO] [1594059704.415243853]: Plugin fake_gps loaded
[ INFO] [1594059704.470497239]: Plugin fake_gps initialized
[ INFO] [1594059704.470755389]: Plugin ftp loaded
[ INFO] [1594059704.492654804]: Plugin ftp initialized
[ INFO] [1594059704.492914146]: Plugin global_position loaded
[ INFO] [1594059704.541828995]: Plugin global_position initialized
[ INFO] [1594059704.542060286]: Plugin gps_rtk loaded
[ INFO] [1594059704.548399238]: Plugin gps_rtk initialized
[ INFO] [1594059704.548649588]: Plugin hil loaded
[ INFO] [1594059704.582129546]: Plugin hil initialized
[ INFO] [1594059704.582383771]: Plugin home_position loaded
[ INFO] [1594059704.591473112]: Plugin home_position initialized
[ INFO] [1594059704.591713203]: Plugin imu loaded
[ INFO] [1594059704.633062406]: Plugin imu initialized
[ INFO] [1594059704.633325766]: Plugin landing_target loaded
[ INFO] [1594059704.710566627]: Plugin landing_target initialized
[ INFO] [1594059704.710828121]: Plugin local_position loaded
[ INFO] [1594059704.742924701]: Plugin local_position initialized
[ INFO] [1594059704.743165244]: Plugin log_transfer loaded
[ INFO] [1594059704.758540254]: Plugin log_transfer initialized
[ INFO] [1594059704.758812260]: Plugin manual_control loaded
[ INFO] [1594059704.765133180]: Plugin manual_control initialized
[ INFO] [1594059704.765380925]: Plugin mocap_pose_estimate loaded
[ INFO] [1594059704.785122846]: Plugin mocap_pose_estimate initialized
[ INFO] [1594059704.785456238]: Plugin mount_control loaded
[ INFO] [1594059704.800483944]: Plugin mount_control initialized
[ INFO] [1594059704.800715532]: Plugin obstacle_distance loaded
[ INFO] [1594059704.804805702]: Plugin obstacle_distance initialized
[ INFO] [1594059704.805061602]: Plugin odom loaded
[ INFO] [1594059704.823334670]: Plugin odom initialized
[ INFO] [1594059704.823568689]: Plugin onboard_computer_status loaded
[ INFO] [1594059704.830478579]: Plugin onboard_computer_status initialized
[ INFO] [1594059704.830735243]: Plugin param loaded
[ INFO] [1594059704.845938988]: Plugin param initialized
[ INFO] [1594059704.846084038]: Plugin px4flow loaded
[ INFO] [1594059704.860394160]: Plugin px4flow initialized
[ INFO] [1594059704.860565082]: Plugin rangefinder blacklisted
[ INFO] [1594059704.860754730]: Plugin rc_io loaded
[ INFO] [1594059704.880090159]: Plugin rc_io initialized
[ INFO] [1594059704.880244735]: Plugin safety_area blacklisted
[ INFO] [1594059704.880436798]: Plugin setpoint_accel loaded
[ INFO] [1594059704.883804521]: Plugin setpoint_accel initialized
[ INFO] [1594059704.884060047]: Plugin setpoint_attitude loaded
[ INFO] [1594059704.902430662]: Plugin setpoint_attitude initialized
[ INFO] [1594059704.902678500]: Plugin setpoint_position loaded
[ INFO] [1594059704.936384694]: Plugin setpoint_position initialized
[ INFO] [1594059704.936653904]: Plugin setpoint_raw loaded
[ INFO] [1594059704.976500764]: Plugin setpoint_raw initialized
[ INFO] [1594059704.976749763]: Plugin setpoint_trajectory loaded
[ INFO] [1594059704.990373521]: Plugin setpoint_trajectory initialized
[ INFO] [1594059704.990693251]: Plugin setpoint_velocity loaded
[ INFO] [1594059705.031320866]: Plugin setpoint_velocity initialized
[ INFO] [1594059705.031579472]: Plugin sys_status loaded
[ INFO] [1594059705.081508347]: Plugin sys_status initialized
[ INFO] [1594059705.081937292]: Plugin sys_time loaded
[ INFO] [1594059705.096134314]: TM: Timesync mode: MAVLINK
[ INFO] [1594059705.103766710]: Plugin sys_time initialized
[ INFO] [1594059705.103992710]: Plugin trajectory loaded
[ INFO] [1594059705.131770312]: Plugin trajectory initialized
[ INFO] [1594059705.132013739]: Plugin vfr_hud loaded
[ INFO] [1594059705.133958635]: Plugin vfr_hud initialized
[ INFO] [1594059705.134019394]: Plugin vibration blacklisted
[ INFO] [1594059705.134136288]: Plugin vision_pose_estimate loaded
[ INFO] [1594059705.170399094]: Plugin vision_pose_estimate initialized
[ INFO] [1594059705.170543293]: Plugin vision_speed_estimate loaded
[ INFO] [1594059705.192105483]: Plugin vision_speed_estimate initialized
[ INFO] [1594059705.192268712]: Plugin waypoint loaded
[ INFO] [1594059705.216331762]: Plugin waypoint initialized
[ INFO] [1594059705.216393337]: Plugin wheel_odometry blacklisted
[ INFO] [1594059705.216518275]: Plugin wind_estimation loaded
[ INFO] [1594059705.219204316]: Plugin wind_estimation initialized
[ INFO] [1594059705.219266162]: Autostarting mavlink via USB on PX4
[ INFO] [1594059705.219417413]: Built-in SIMD instructions: SSE, SSE2
[ INFO] [1594059705.219451325]: Built-in MAVLink package version: 2020.6.6
[ INFO] [1594059705.219493696]: Known MAVLink dialects: common ardupilotmega ASLUAV autoquad icarous matrixpilot paparazzi slugs standard uAvionix ualberta
[ INFO] [1594059705.219521839]: MAVROS started. MY ID 1.240, TARGET ID 1.1
[ INFO] [1594059705.333032618]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1594059705.337210940]: waitForService: Service [/gazebo/set_physics_properties] has not been advertised, waiting...
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
libGL error: failed to create drawable
rviz: /build/ogre-1.9-B6QkmW/ogre-1.9-1.9.0+dfsg1/RenderSystems/GL/src/OgreGLSupport.cpp:56: virtual void Ogre::GLSupport::initialiseExtensions(): Assertion `pcVer && "Problems getting GL version string using glGetString"' failed.
[ INFO] [1594059705.772355186]: Finished loading Gazebo ROS API Plugin.
[ INFO] [1594059705.776171128]: waitForService: Service [/gazebo_gui/set_physics_properties] has not been advertised, waiting...
[rvizvisualisation-16] process has died [pid 5438, exit code -6, cmd /opt/ros/melodic/lib/rviz/rviz -d /home/muzaib/catkin_ws/src/px4_fast_planner/rviz/rviz.rviz name:=rvizvisualisation log:=/home/muzaib/.ros/log/8ac84420-bfb5-11ea-91fb-54ab3ae22b7e/rvizvisualisation-16.log].
log file: /home/muzaib/.ros/log/8ac84420-bfb5-11ea-91fb-54ab3ae22b7e/rvizvisualisation-16.log
libGL error: failed to create drawable
libGL error: failed to create drawable
X Error of failed request: GLXBadContext
Major opcode of failed request: 152 (GLX)
Minor opcode of failed request: 26 (X_GLXMakeContextCurrent)
Serial number of failed request: 40
Current serial number in output stream: 40
terminate called after throwing an instance of 'boost::exception_detail::clone_impl<boost::exception_detail::error_info_injector
RVIZ opened and closed immediately and Gazebo has no models!!
How does your .bashrc look like? Did you source it before you launch? Also expect Gazebo to take some time the first time you run the setup as it downloads worrd models
My .bashrc
source /opt/ros/melodic/setup.bash source /home/muzaib/catkin_ws/devel/setup.bash source ~/Firmware/Tools/setup_gazebo.bash ~/Firmware ~/Firmware/build/px4_sitl_default export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware/Tools/sitl_gazebo export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/usr/lib/x86_64-linux-gnu/gazebo-9/plugins export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/muzaib/catkin_ws/src/px4_fast_planner/models
Yes i sourced it when opened new terminal source .bashrc
you need to also have
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware/Tools/sitl_gazebo
This is my .bashrc
source /opt/ros/melodic/setup.bash source /home/muzaib/catkin_ws/devel/setup.bash source ~/Firmware/Tools/setup_gazebo.bash ~/Firmware ~/Firmware/build/px4_sitl_default export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware/Tools/sitl_gazebo export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/usr/lib/x86_64-linux-gnu/gazebo-9/plugins export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/muzaib/catkin_ws/src/px4_fast_planner/models
I am not sure why are you crossing source ~/Firmware/Tools/setup_gazebo.bash /Firmware /Firmware/build/px4_sitl_default export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/Firmware export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:/Firmware/Tools/sitl_gazebo
are they not included in your bashrc?
@mzahana i am not crossing them when i paste them from terminal it gets crossed. Yes they are included in my .bashrc. And Gazebo is opened with the world but i cant see the drone in it. And rviz is not opened also kindly guide.
I am not sure what your issue is here. The setup seems correct. Are you able to launch PX$ SITL alone?
@ i have run the command roslaunch px4_fast_planner px4_fast_planner.launch it opened the following
But i cant see the drone in the Simulation and Rviz opened and immediately closed.. This is i am assking..
Can you run ?
cd ~/Firmware
make px4_sitl_default gazebo
@mzahana Yes i ran and gazebo opened with empty world and a Drone
That means PX4 SITL is compiled and successfully. Then, I see no reason why the setup should not work.
I just notice that your .bashrc is not correct. The Firmware
folder should be in home i.e. ~/Firmware
, and the correct .bashrc should point to ~/Firmware
not /Firmware
@mzahana the project is started to work Fine now Thank you for your cooperation.
Hello! I am new to ROS and Linux. Right now I am doing research that requires the use of them. When trying to run the ORB_SLAM2_CUDA project on a jetson nano, but I have an error specified as follows:
Resource not found: the following package was not found in
I don't know what to do to fix this error. I would appreciate your cooperation.
@DavidLlantenC Hi!
Unfortunately, this is not the right place for your question. It's better to ask on the corresponding repository issue tracker.
Hello !!..i'm trying to the simulation but it's show the same like @Muzaib95Anjum and my .bashrc looks like . .
source /opt/ros/melodic/setup.bash
source /home/tanmay/catkin_ws/devel/setup.bash
export PATH=/usr/lib/ccache:$PATH
export GAZEBO_MODEL_PATH=~/ardupilot_gazebo/model
source ~/Firmware/Tools/setup_gazebo.bash ~/Firmware ~/Firmware/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/Firmware/Tools/sitl_gazebo
export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/usr/lib/x86_64-linux-gnu/gazebo-9/plugins
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:/home/tanmay/catkin_ws/src/px4_fast_planner/models
.
.
.
And the error shown in the terminal is
Resource not found: The following package was not found in
And after adding /opt/ros/melodic/share to .bashrc, I'm getting this error
.
.
WARN: unrecognized 'param' tag in
CLEAR PARAMETERS
PARAMETERS
NODES / camera_pose_publisher (px4_fast_planner/camera_pose_publisher.py) fast_planner_node (plan_manage/fast_planner_node) gazebo (gazebo_ros/gzserver) gazebo_gui (gazebo_ros/gzclient) geometric_controller (geometric_controller/geometric_controller_node) mavros (mavros/mavros_node) rqt_reconfigure (rqt_reconfigure/rqt_reconfigure) rvizvisualisation (rviz/rviz) sitl (px4/px4) tf_camera (tf/static_transform_publisher) traj_msg_converter (px4_fast_planner/trajectory_msg_converter.py) traj_server (plan_manage/traj_server) vehicle_spawn_tanmay_Nitro_AN515_54_7906_5010508217689179395 (gazebo_ros/spawn_model) waypoint_generator (waypoint_generator/waypoint_generator) world_map_linker (tf/static_transform_publisher)
auto-starting new master process[master]: started with pid [7917] ROS_MASTER_URI=http://localhost:11311
[rvizvisualisation-16] killing on exit
[rqt_reconfigure-13] killing on exit
[camera_pose_publisher-14] killing on exit
[mavros-8] killing on exit
[vehicle_spawn_tanmay_Nitro_AN515_54_7906_5010508217689179395-7] killing on exit
[gazebo_gui-6] killing on exit
[gazebo-5] killing on exit
[tf_camera-3] killing on exit
[world_map_linker-2] killing on exit
Traceback (most recent call last):
Traceback (most recent call last):
File "/opt/ros/melodic/lib/gazebo_ros/spawn_model", line 34, in
'''
KeyboardInterrupt
Traceback (most recent call last):
File "/opt/ros/melodic/lib/rqt_reconfigure/rqt_reconfigure", line 5, in
Well in my case I just rebooted the computer with sudo reboot now
after installing px4 dependencies and everything works finally
I have the same issue after install zsh terminal. I solve it by delete the build and devel folder and then catkin build again. After that, I close the terminal and reopen the the terminal. Then. it works
After following all the instructions when i run roslaunch px4_fast_planner px4_fast_planner.launch. i get the errors: Resource not found: The following package was not found in : mavlink_sitl_gazebo
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/muzaib/catkin_ws/src
ROS path [2]=/opt/ros/melodic/share
ROS path [3]=/home/muzaib/Firmware
The traceback for the exception was written to the log file