mzahana / mavros_apriltag_tracking

This package implements methods to enable a PX4-powered multi-rotor to track a moving vehicle.
BSD 3-Clause "New" or "Revised" License
129 stars 36 forks source link

roslaunch mavros_apriltag_tracking tracker.launch #11

Open Sunyuzxy opened 2 years ago

Sunyuzxy commented 2 years ago

My environment is as below: Ubuntu18.04 Ros melodic PX4 v1.10.1 I set up my environment as the instructions in PX4 website and your README.md, however there is some error as below:

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/sy/catkin_ws/src/mavros_apriltag_tracking ROS path [2]=/home/sy/can_module/src ROS path [3]=/opt/ros/melodic/share The traceback for the exception was written to the log file

Can you give me a hand please?

Soapen commented 2 years ago

How did you fixed it?

Ethan-02 commented 2 years ago

I have the issue too. Did you fixed it?

AlexWUrobot commented 2 years ago

Ubuntu 18.04 ROS melodic I already source devel/setup.zsh, but I have a similar issue. image

AlexWUrobot commented 2 years ago

I solve it by put the whole package installing with PX4-Autopilot. Then, catkin build again Then, source Then, check the package "mavlink_sitl_gazebo" exists by using "rospack list-names" image

bytesByHarsh commented 1 year ago

Hi You can solve this by running the following commands:

source ~/catkin_ws/devel/setup.bash 
source Tools/setup_gazebo.bash $(pwd) $(pwd)/build/px4_sitl_default
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)
export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:$(pwd)/Tools/sitl_gazebo

Assuming, that you are running the command from the PX4 SITL folder. You can change the relative path if you want.