Good day,
I am trying to run ROS/MAVROS off board example by following the steps in PX4 documentation: MAVROS Offboard control example (Python) | PX4 User Guide
However, when I insert the command: roslaunch offboard_py start_offb.launch
, I was met with the following error.
RLException: Unable to launch [offb_node_py-7].
If it is a script, you may be missing a ‘#!’ declaration at the top.
The traceback for the exception was written to the log file
I’ve checked the offb_node.py script in ~/catkin_ws/src/scripts folder and there is a ‘#!’ declaration at the top.
“”"
- File: offb_node.py
- Stack and tested in Gazebo Classic 9 SITL
“”"
#! /usr/bin/env python
import rospy
I’m not very sure what’s going wrong, would appreciate any help/insights on this! Thank you!