KumarRobotics / kr_autonomous_flight

KR (KumarRobotics) autonomous flight system for GPS-denied quadrotors
Other
685 stars 120 forks source link

smach_ros cannot be imported properly with ROS melodic or lower (no module named ‘util’) #122

Closed XuRobotics closed 2 years ago

XuRobotics commented 2 years ago

smach_ros cannot be imported properly with ROS melodic or lower (no module named ‘until’)

XuRobotics commented 2 years ago

ROS noetic uses python3, and therefore we default in the python script to use python 3. You’ll need to change it to use python 2 if you are running on ROS melodic or lower version.

In the beginning of main_state_machine.py, change

!/usr/bin/env python3

into

!/usr/bin/env python