Jaeyoung-Lim / mavros_controllers

Aggressive trajectory tracking using mavros for PX4 enabled vehicles
BSD 3-Clause "New" or "Revised" License
400 stars 164 forks source link

roslaunch geometric_controller seems to be not working #221

Closed nswang1994 closed 2 years ago

nswang1994 commented 2 years ago

Here is the error output:

Resource not found: px4 ROS path [0]=/opt/ros/melodic/share/ros ROS path [1]=/home/ubuntu/catkin_ws/src/catkin_simple ROS path [2]=/home/ubuntu/catkin_ws/src/mavros_controllers/controller_msgs ROS path [3]=/home/ubuntu/catkin_ws/src/eigen_catkin ROS path [4]=/home/ubuntu/catkin_ws/src/mavros_controllers/geometric_controller ROS path [5]=/home/ubuntu/catkin_ws/src/mav_comm/mav_comm ROS path [6]=/home/ubuntu/catkin_ws/src/mav_comm/mav_msgs ROS path [7]=/home/ubuntu/catkin_ws/src/mav_comm/mav_planning_msgs ROS path [8]=/home/ubuntu/catkin_ws/src/mav_comm/mav_state_machine_msgs ROS path [9]=/home/ubuntu/catkin_ws/src/mav_comm/mav_system_msgs ROS path [10]=/home/ubuntu/catkin_ws/src/mavros_controllers/mavros_controllers ROS path [11]=/home/ubuntu/catkin_ws/src/mavros_controllers/trajectory_publisher ROS path [12]=/opt/ros/melodic/share The traceback for the exception was written to the log file

Jaeyoung-Lim commented 2 years ago

@nswang1994 The readme explains how to setup your environment. I believe you have skipped this step: https://github.com/Jaeyoung-Lim/mavros_controllers#install-px4-sitlonly-to-simulate

nswang1994 commented 2 years ago

Thank you Jaeyoung. It works well now.

mzahana commented 1 year ago

@Jaeyoung-Lim There is an issue with running multiple vehicles in simulation. With recent firmware versions (v1.13.1), virtual joystick has to be enabled in QGC to be able to arm and set OFFBOARD mode. However, this can be done for 1 vehicle at a time. If I switch vehicles in QGC, the other vehicle(s) go to failsafe mode.

How to solve this issue? Thanks