我为 Crazyflie 安装了 ROS 包,我想运行一个简单的脚本,但是当我输入时
sudo python3 execute_trajectory.py,它给了我一个没有名为 rospy 的模块的错误。
这是包:https : //github.com/whoenig/crazyflie_ros并且文件在 crazyflie_demo/scripts 中。此外,我正在使用 Ubuntu 16.04 和 ROS Kinect,我尝试在没有 ROS 的情况下运行 Python3 脚本,并且一切正常。
这是我的 CMakeLists.txt
cmake_minimum_required(VERSION 2.8.3)
project(crazyflie_demo)
## Find catkin macros and libraries
## if COMPONENTS list like find_package(catkin REQUIRED COMPONENTS xyz)
## is used, also find other catkin packages
find_package(catkin REQUIRED COMPONENTS
roscpp
)
## System dependencies are found with CMake's conventions
# find_package(Boost REQUIRED COMPONENTS system)
## Uncomment this if the package has …Run Code Online (Sandbox Code Playgroud)