-
Notifications
You must be signed in to change notification settings - Fork 13.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resource not found: px4 ROS path [0] .. #20437
Comments
@JomondLim Are you sure your PX4 autopilot source exists in the path You can check with
|
Hi thanks for the reply, When we ran ls PX4-Autopilot, we received Correct me if i'm wrong, but isn't src PX4 Autopilot's source? |
Hi @JomondLim Currently I am facing the same issue as you :( |
I'm currently facing the exact same problem. DId you guys managed to fix this? @stevenchangg @JomondLim. I really need help on this. Thank you very much |
@FrancSerra are you referring to this script? |
Yes indeed I am |
ok, then try to use source ~/PX4-Autopilot/Tools/simulation/gazebo-classic/setup_gazebo.bash ~/PX4-Autopilot ~/PX4-Autopilot/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/PX4-Autopilot
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/PX4-Autopilot/Tools/simulation/gazebo-classic/sitl_gazebo-classic instead of source ~/PX4-Autopilot/Tools/simulation/gazebo/setup_gazebo.bash ~/PX4-Autopilot ~/PX4-Autopilot/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/PX4-Autopilot
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/PX4-Autopilot/Tools/simulation/gazebo/sitl_gazebo
export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/usr/lib/x86_64-linux-gnu/gazebo-9/plugins the reason is the |
Did anyone solve this issue? I am still getting the same error, even changing to gazebo-classic? |
Did you solve my friend? |
@pranavc2255 High chance that your change to |
I'm getting the same error and I'm new to PX4. what if I use this for simulation "make -j8 px4_sitl_default gazebo " |
@mgrallos |
|
@mgrallos , you are working with version 1.12 then, please follow the gazebo simulation documentation for that version |
This really works!!!! |
After following the offboard control example (python), when running roslaunch offboard_py start_offb.launch, i received this error despite adding the extra few lines to the bashrc as instructed in the tutorial:
Resource not found: px4
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/ubuntu/catkin_ws/src/mavlink
ROS path [2]=/home/ubuntu/catkin_ws/src/mavros/libmavconn
ROS path [3]=/home/ubuntu/catkin_ws/src/mavros/mavros_msgs
ROS path [4]=/home/ubuntu/catkin_ws/src/mavros/mavros
ROS path [5]=/home/ubuntu/catkin_ws/src/mavros/mavros_extras
ROS path [6]=/home/ubuntu/catkin_ws/src/offboard_py
ROS path [7]=/home/ubuntu/catkin_ws/src/mavros/test_mavros
ROS path [8]=/opt/ros/melodic/share
The traceback for the exception was written to the log file
This is what my .bashrc file is looking like:
source /opt/ros/melodic/setup.bash
source
/PX4-Autopilot/Tools/simulation/gazebo/setup_gazebo.bash/PX4-Autopilot/Tools/simulation/gazebo/sitl_gazebo/PX4-Autopilot/PX4-Autopilot/Tools/simulation/gazebo/sitl_gazebo/PX4-Autopilot/build/px4_sitl_default/PX4-Autopilotsource /home/ubuntu/catkin_ws/devel/setup.bash
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:
export GAZEBO_MODEL_PATH=$GAZEBO_MODEL_PATH:
export GAZEBO_PLUGIN_PATH=$GAZEBO_PLUGIN_PATH:/usr/lib/aarch64-linux-gnu/gazebo-9/plugins
Would appreciate if someone helps with this issue.
Thanks in advance
The text was updated successfully, but these errors were encountered: