new file: .vscode/settings.json
new file: Legs_controller.py modified: README.md new file: __pycache__/Legs_controller.cpython-310.pyc new file: __pycache__/Legs_controller.cpython-313.pyc new file: __pycache__/balance.cpython-310.pyc new file: __pycache__/gradio.cpython-310.pyc new file: __pycache__/gradio.cpython-313.pyc new file: app_ui.py new file: balance.py new file: build/.cmake/api/v1/query/client-vscode/query.json new file: build/.cmake/api/v1/reply/cache-v2-ae4a9db768b4bbb36baa.json new file: build/.cmake/api/v1/reply/cmakeFiles-v1-389eb8769a8295e7571d.json new file: build/.cmake/api/v1/reply/codemodel-v2-5ea8cfc0b9263cbe5ae5.json new file: build/.cmake/api/v1/reply/directory-.-Debug-f5ebdc15457944623624.json new file: build/.cmake/api/v1/reply/index-2025-09-11T04-53-20-0515.json new file: build/.cmake/api/v1/reply/target-imu_py-Debug-3913d741f2156d7faae9.json new file: build/.cmake/api/v1/reply/toolchains-v1-3105704d088db7adbfb5.json new file: build/CMakeCache.txt new file: build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake new file: build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_CXX.bin new file: build/CMakeFiles/3.22.1/CMakeSystem.cmake new file: build/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp new file: build/CMakeFiles/3.22.1/CompilerIdCXX/a.out new file: build/CMakeFiles/CMakeDirectoryInformation.cmake new file: build/CMakeFiles/CMakeOutput.log new file: build/CMakeFiles/Makefile.cmake new file: build/CMakeFiles/Makefile2 new file: build/CMakeFiles/TargetDirectories.txt new file: build/CMakeFiles/cmake.check_cache new file: build/CMakeFiles/imu_py.dir/DependInfo.cmake new file: build/CMakeFiles/imu_py.dir/build.make new file: build/CMakeFiles/imu_py.dir/cmake_clean.cmake new file: build/CMakeFiles/imu_py.dir/compiler_depend.make new file: build/CMakeFiles/imu_py.dir/compiler_depend.ts new file: build/CMakeFiles/imu_py.dir/depend.make new file: build/CMakeFiles/imu_py.dir/flags.make new file: build/CMakeFiles/imu_py.dir/link.txt new file: build/CMakeFiles/imu_py.dir/progress.make new file: build/CMakeFiles/progress.marks new file: build/Makefile new file: build/cmake_install.cmake new file: build/compile_commands.json new file: dm_imu/bsp_crc.cpp new file: dm_imu/bsp_crc.h new file: dm_imu/imu_data.csv new file: dm_imu/imu_driver.cpp new file: dm_imu/imu_driver.h new file: dm_imu/imu_plot.png new file: dm_imu/plot_imu.py new file: dm_imu/test_imu.cpp new file: imu_data.csv new file: pybind_imu/CMakeLists.txt new file: pybind_imu/README.md new file: pybind_imu/build/CMakeCache.txt new file: pybind_imu/build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake new file: pybind_imu/build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_CXX.bin new file: pybind_imu/build/CMakeFiles/3.22.1/CMakeSystem.cmake new file: pybind_imu/build/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp new file: pybind_imu/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out new file: pybind_imu/build/CMakeFiles/CMakeDirectoryInformation.cmake new file: pybind_imu/build/CMakeFiles/CMakeOutput.log new file: pybind_imu/build/CMakeFiles/Makefile.cmake new file: pybind_imu/build/CMakeFiles/Makefile2 new file: pybind_imu/build/CMakeFiles/TargetDirectories.txt new file: pybind_imu/build/CMakeFiles/cmake.check_cache new file: pybind_imu/build/CMakeFiles/imu_py.dir/DependInfo.cmake new file: pybind_imu/build/CMakeFiles/imu_py.dir/build.make new file: pybind_imu/build/CMakeFiles/imu_py.dir/cmake_clean.cmake new file: pybind_imu/build/CMakeFiles/imu_py.dir/compiler_depend.make new file: pybind_imu/build/CMakeFiles/imu_py.dir/compiler_depend.ts new file: pybind_imu/build/CMakeFiles/imu_py.dir/depend.make new file: pybind_imu/build/CMakeFiles/imu_py.dir/flags.make new file: pybind_imu/build/CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o new file: pybind_imu/build/CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o.d new file: pybind_imu/build/CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o new file: pybind_imu/build/CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o.d new file: pybind_imu/build/CMakeFiles/imu_py.dir/link.txt new file: pybind_imu/build/CMakeFiles/imu_py.dir/progress.make new file: pybind_imu/build/CMakeFiles/imu_py.dir/pybind_imu.cpp.o new file: pybind_imu/build/CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d new file: pybind_imu/build/CMakeFiles/progress.marks new file: pybind_imu/build/Makefile new file: pybind_imu/build/cmake_install.cmake new file: pybind_imu/build/imu_py.cpython-310-aarch64-linux-gnu.so new file: pybind_imu/example.py new file: pybind_imu/pybind_imu.cpp new file: src/example.py new file: test_imu new file: u2can/DM_CAN.py new file: u2can/DM_Motor_Test.py new file: u2can/LICENSE new file: u2can/README.md new file: u2can/__pycache__/DM_CAN.cpython-310.pyc new file: u2can/__pycache__/DM_CAN.cpython-312.pyc new file: u2can/__pycache__/DM_CAN.cpython-313.pyc new file: u2can/__pycache__/gradio.cpython-313.pyc new file: u2can/__pycache__/motor_interface.cpython-313.pyc new file: u2can/motor_interface.py new file: u2can/requirements.txt new file: ui.log
This commit is contained in:
3
.vscode/settings.json
vendored
Normal file
3
.vscode/settings.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"cmake.sourceDirectory": "/home/allenyuan/balance/pybind_imu"
|
||||
}
|
||||
94
Legs_controller.py
Normal file
94
Legs_controller.py
Normal file
@@ -0,0 +1,94 @@
|
||||
import math
|
||||
import time
|
||||
import serial
|
||||
from u2can.DM_CAN import (
|
||||
Motor, MotorControl,
|
||||
DM_Motor_Type, Control_Type, DM_variable
|
||||
)
|
||||
|
||||
class LegsController:
|
||||
"""
|
||||
简单的达妙腿部/轮子控制类,只实现基本的初始化、使能、
|
||||
失能、扭矩读取以及位置控制。
|
||||
"""
|
||||
|
||||
def __init__(self, port="/dev/dm-u2can", baudrate=921600, timeout=0.5):
|
||||
"""打开串口、创建 MotorControl、实例化并注册所有电机。"""
|
||||
self.serial_device = serial.Serial(port, baudrate, timeout=timeout)
|
||||
self.mc = MotorControl(self.serial_device)
|
||||
|
||||
# 四条腿电机(DM4340)
|
||||
self.motor1 = Motor(DM_Motor_Type.DM4340, 0x01, 0x11)
|
||||
self.motor2 = Motor(DM_Motor_Type.DM4340, 0x02, 0x12)
|
||||
self.motor3 = Motor(DM_Motor_Type.DM4340, 0x03, 0x13)
|
||||
self.motor4 = Motor(DM_Motor_Type.DM4340, 0x04, 0x14)
|
||||
|
||||
# 四个轮子电机(DMH6215)
|
||||
self.wheel1 = Motor(DM_Motor_Type.DMH6215, 0x05, 0x15)
|
||||
self.wheel2 = Motor(DM_Motor_Type.DMH6215, 0x06, 0x16)
|
||||
self.wheel3 = Motor(DM_Motor_Type.DMH6215, 0x07, 0x17)
|
||||
self.wheel4 = Motor(DM_Motor_Type.DMH6215, 0x08, 0x18)
|
||||
|
||||
# 注册所有电机
|
||||
for m in (self.motor1, self.motor2, self.motor3, self.motor4,
|
||||
self.wheel1, self.wheel2, self.wheel3, self.wheel4):
|
||||
self.mc.addMotor(m)
|
||||
|
||||
# ---------- 串口管理 ----------
|
||||
def open_serial(self):
|
||||
"""重新打开已关闭的串口(如果需要)。"""
|
||||
if not self.serial_device.is_open:
|
||||
self.serial_device.open()
|
||||
|
||||
def close_serial(self):
|
||||
"""关闭串口,释放资源。"""
|
||||
if self.serial_device.is_open:
|
||||
self.serial_device.close()
|
||||
|
||||
# ---------- 使能 ----------
|
||||
def enable_legs(self):
|
||||
"""使能四条腿电机。"""
|
||||
for m in (self.motor1, self.motor2, self.motor3, self.motor4):
|
||||
self.mc.enable(m)
|
||||
|
||||
def enable_wheels(self):
|
||||
"""使能四个轮子电机。"""
|
||||
for w in (self.wheel1, self.wheel2, self.wheel3, self.wheel4):
|
||||
self.mc.enable(w)
|
||||
|
||||
def disable_all(self):
|
||||
"""一次性失能所有电机(腿+轮子)。"""
|
||||
for m in (self.motor1, self.motor2, self.motor3, self.motor4,
|
||||
self.wheel1, self.wheel2, self.wheel3, self.wheel4):
|
||||
self.mc.disable(m)
|
||||
|
||||
# ---------- 状态读取 ----------
|
||||
def get_legs_torque(self):
|
||||
"""刷新四条腿的状态并返回它们的扭矩列表。"""
|
||||
for m in (self.motor1, self.motor2, self.motor3, self.motor4):
|
||||
self.mc.refresh_motor_status(m)
|
||||
return [
|
||||
self.motor1.getTorque(),
|
||||
self.motor2.getTorque(),
|
||||
self.motor3.getTorque(),
|
||||
self.motor4.getTorque(),
|
||||
]
|
||||
|
||||
# ---------- 位置控制 ----------
|
||||
def control_legs_pos(self, pos1, pos2, pos3, pos4, vel=0.5):
|
||||
"""
|
||||
使用位置‑速度模式控制四条腿。
|
||||
参数:
|
||||
pos1‑pos4: 目标位置(单位依据电机规格)
|
||||
vel: 速度比例,默认 0.5
|
||||
"""
|
||||
self.mc.control_Pos_Vel(self.motor1, -pos1, vel)
|
||||
self.mc.control_Pos_Vel(self.motor2, pos2, vel)
|
||||
self.mc.control_Pos_Vel(self.motor3, pos3, vel)
|
||||
self.mc.control_Pos_Vel(self.motor4, -pos4, vel)
|
||||
|
||||
def control_wheels_vel(self,vel,of_vel):
|
||||
self.mc.control_Vel(self.wheel1,vel+of_vel)
|
||||
self.mc.control_Vel(self.wheel2,vel-of_vel)
|
||||
self.mc.control_Vel(self.wheel3,vel-of_vel)
|
||||
self.mc.control_Vel(self.wheel4,vel+of_vel)
|
||||
113
README.md
113
README.md
@@ -1,2 +1,111 @@
|
||||
# balance
|
||||
A robot balance package for damiao.
|
||||
# DM‑IMU USB 驱动库
|
||||
|
||||
## 项目简介
|
||||
`dm_imu` 目录下实现了一个 **纯 C++ 的 USB IMU 驱动库**,原始代码基于 ROS,但已完全去除 ROS 依赖,使用 POSIX 串口 API 与 IMU 通信。库提供:
|
||||
|
||||
- 串口初始化、波特率配置
|
||||
- IMU 启动、停止以及配置指令(加速度、陀螺仪、欧拉角等)
|
||||
- 线程安全的数据采集(`IMU_Data` 结构体)
|
||||
- 简单的 C++ 接口 `DmImu`,无需任何 ROS 环境即可使用
|
||||
|
||||
## 目录结构
|
||||
```
|
||||
dm_imu/
|
||||
├─ bsp_crc.cpp / bsp_crc.h # CRC 校验实现
|
||||
├─ imu_driver.cpp / imu_driver.h# 主驱动实现(已去除 ROS)
|
||||
├─ test_imu.cpp # 示例程序,演示如何使用库
|
||||
└─ README.md # 本文档
|
||||
```
|
||||
|
||||
## 编译方法
|
||||
|
||||
### 依赖
|
||||
- **C++17** 编译器(gcc/clang)
|
||||
- POSIX 系统(Linux)提供的串口头文件 `<fcntl.h>、<unistd.h>、<termios.h>`
|
||||
- 标准库(`<thread>、<mutex>、<atomic>` 等)
|
||||
|
||||
### 编译示例
|
||||
```bash
|
||||
# 进入项目根目录
|
||||
cd /home/allenyuan/balance
|
||||
|
||||
# 编译库源码(生成目标文件)
|
||||
g++ -std=c++17 -c dm_imu/bsp_crc.cpp -o bsp_crc.o
|
||||
g++ -std=c++17 -c dm_imu/imu_driver.cpp -o imu_driver.o
|
||||
|
||||
# 编译示例程序并链接
|
||||
g++ -std=c++17 test_imu.cpp bsp_crc.o imu_driver.o -o test_imu -lpthread
|
||||
```
|
||||
|
||||
> **说明**:如果你希望将库封装为静态或动态库,只需将 `bsp_crc.o` 与 `imu_driver.o` 打包为 `libdm_imu.a`(或 `libdm_imu.so`),然后在链接时使用 `-L. -ldm_imu`。
|
||||
|
||||
## 示例程序 `test_imu.cpp`
|
||||
|
||||
```cpp
|
||||
// test_imu.cpp
|
||||
// 演示如何使用纯 C++ 的 DM‑IMU 驱动库读取数据
|
||||
|
||||
#include "imu_driver.h"
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
|
||||
int main()
|
||||
{
|
||||
// 根据实际设备路径与波特率创建对象
|
||||
dmbot_serial::DmImu imu("/dev/ttyACM1", 921600);
|
||||
|
||||
// 启动采集线程
|
||||
if (!imu.start()) {
|
||||
std::cerr << "Failed to start IMU driver." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// 连续读取 1000 次数据(约 10 秒)
|
||||
for (int i = 0; i < 1000; ++i) {
|
||||
IMU_Data d = imu.getData();
|
||||
|
||||
std::cout << "Roll: " << d.roll << " Pitch: " << d.pitch
|
||||
<< " Yaw: " << d.yaw << std::endl;
|
||||
std::cout << "Acc : [" << d.accx << ", " << d.accy << ", " << d.accz << "]"
|
||||
<< std::endl;
|
||||
std::cout << "Gyro : [" << d.gyrox << ", " << d.gyroy << ", " << d.gyroz << "]"
|
||||
<< std::endl;
|
||||
std::cout << "-----------------------------------------" << std::endl;
|
||||
|
||||
// 10 ms 间隔(约 100 Hz)
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
|
||||
// 停止采集并关闭串口
|
||||
imu.stop();
|
||||
|
||||
return 0;
|
||||
}
|
||||
```
|
||||
|
||||
### 运行示例
|
||||
```bash
|
||||
# 编译(参考上面的编译示例)
|
||||
g++ -std=c++17 test_imu.cpp bsp_crc.o imu_driver.o -o test_imu -lpthread
|
||||
|
||||
# 运行
|
||||
./test_imu
|
||||
```
|
||||
|
||||
运行后,程序会在终端持续打印 IMU 的欧拉角、加速度和陀螺仪数据。若串口未打开或设备路径错误,程序会在初始化阶段输出错误信息并退出。
|
||||
|
||||
## 常见问题
|
||||
|
||||
| 问题 | 可能原因 | 解决办法 |
|
||||
|------|----------|----------|
|
||||
| 程序启动后没有数据输出 | 串口未打开或设备路径错误 | 确认 IMU 已正确连接,`/dev/ttyACM1` 是否存在;如有不同,请在 `test_imu.cpp` 中修改构造函数的 `port` 参数 |
|
||||
| `write` / `read` 返回错误 | 波特率不匹配 | 检查 IMU 手册,确认波特率是否为 921600;如需修改,请在 `DmImu` 构造函数的 `baud` 参数中传入正确值 |
|
||||
| 编译报缺少头文件 | 开发环境缺少 POSIX 串口头文件 | 在 Linux 上默认可用;若使用交叉编译,请确保交叉工具链包含对应头文件 |
|
||||
|
||||
## 许可证
|
||||
本项目采用 MIT 许可证,详情见 `LICENSE`(若项目中未提供,请自行添加)。
|
||||
|
||||
---
|
||||
|
||||
**祝你使用愉快!** 如有其他需求(如添加四元数计算、回调机制等),欢迎进一步扩展此库。
|
||||
|
||||
BIN
__pycache__/Legs_controller.cpython-310.pyc
Normal file
BIN
__pycache__/Legs_controller.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/Legs_controller.cpython-313.pyc
Normal file
BIN
__pycache__/Legs_controller.cpython-313.pyc
Normal file
Binary file not shown.
BIN
__pycache__/balance.cpython-310.pyc
Normal file
BIN
__pycache__/balance.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/gradio.cpython-310.pyc
Normal file
BIN
__pycache__/gradio.cpython-310.pyc
Normal file
Binary file not shown.
BIN
__pycache__/gradio.cpython-313.pyc
Normal file
BIN
__pycache__/gradio.cpython-313.pyc
Normal file
Binary file not shown.
231
app_ui.py
Normal file
231
app_ui.py
Normal file
@@ -0,0 +1,231 @@
|
||||
import gradio as gr
|
||||
from balance import BalanceController
|
||||
import logging
|
||||
import threading
|
||||
import time
|
||||
import os
|
||||
|
||||
# -------------------------------------------------
|
||||
# 全局配置 & 日志系统(写入磁盘文件 ui.log)
|
||||
# -------------------------------------------------
|
||||
LOG_PATH = "ui.log"
|
||||
logging.basicConfig(
|
||||
filename=LOG_PATH,
|
||||
level=logging.INFO,
|
||||
format="%(asctime)s - %(levelname)s - %(message)s",
|
||||
)
|
||||
logger = logging.getLogger("ui")
|
||||
|
||||
def log(msg: str) -> None:
|
||||
"""统一写入日志的函数,同时打印到控制台(方便调试)。"""
|
||||
logger.info(msg)
|
||||
for h in logger.handlers:
|
||||
h.flush()
|
||||
print(msg) # optional, 可删除
|
||||
|
||||
# -------------------------------------------------
|
||||
# 全局状态
|
||||
# -------------------------------------------------
|
||||
controller: BalanceController | None = None # 单例
|
||||
|
||||
# -------------------------------------------------
|
||||
# 安全创建 BalanceController(带重试)
|
||||
# -------------------------------------------------
|
||||
def create_controller(retries: int = 3, delay: float = 1.0) -> BalanceController | None:
|
||||
"""尝试实例化 BalanceController,失败则记录日志并返回 None。"""
|
||||
for attempt in range(1, retries + 1):
|
||||
try:
|
||||
log(f"尝试创建 BalanceController(第 {attempt} 次)")
|
||||
return BalanceController()
|
||||
except Exception as e:
|
||||
log(f"创建 BalanceController 失败: {e}")
|
||||
if attempt < retries:
|
||||
time.sleep(delay)
|
||||
log("全部重试结束,仍未能创建 BalanceController")
|
||||
return None
|
||||
|
||||
# -------------------------------------------------
|
||||
# UI 操作函数(统一异常捕获、日志记录、返回状态文字)
|
||||
# -------------------------------------------------
|
||||
def open_port() -> tuple:
|
||||
"""创建 BalanceController 实例并打开串口(不自动使能)。"""
|
||||
global controller
|
||||
if controller is None:
|
||||
controller = create_controller()
|
||||
if controller is None:
|
||||
msg = "打开串口失败:无法创建 BalanceController"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
msg = "串口已打开"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
msg = "串口已打开(已存在实例)"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
|
||||
def enable_all() -> tuple:
|
||||
"""使能所有电机(腿部+轮子)。"""
|
||||
global motors_enabled
|
||||
if controller is None:
|
||||
msg = "请先打开串口"
|
||||
return (msg, msg)
|
||||
try:
|
||||
controller.enable_all()
|
||||
motors_enabled = True
|
||||
msg = "电机已全部使能"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
except Exception as e:
|
||||
msg = f"使能电机异常: {e}"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
|
||||
def disable_all() -> tuple:
|
||||
"""失能所有电机。"""
|
||||
global motors_enabled
|
||||
if controller is None:
|
||||
msg = "请先打开串口"
|
||||
return (msg, msg)
|
||||
try:
|
||||
controller.disable_all()
|
||||
motors_enabled = False
|
||||
msg = "所有电机已失能"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
except Exception as e:
|
||||
msg = f"失能电机异常: {e}"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
|
||||
def set_position(pos1, pos2, pos3, pos4, vel) -> tuple:
|
||||
"""设置四条腿的位置与速度比例。"""
|
||||
if controller is None:
|
||||
msg = "请先打开串口"
|
||||
return (msg, msg)
|
||||
try:
|
||||
controller.control_legs_pos(pos1, pos2, pos3, pos4, vel)
|
||||
msg = f"已设置位置: {pos1}, {pos2}, {pos3}, {pos4}(速度比例 {vel})"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
except Exception as e:
|
||||
msg = f"设置位置异常: {e}"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
|
||||
def get_torque() -> tuple:
|
||||
"""读取四条腿的扭矩,返回字符串列表。"""
|
||||
if controller is None:
|
||||
msg = "未打开串口"
|
||||
log(msg)
|
||||
return (["未打开串口"] * 4, msg)
|
||||
try:
|
||||
torques = controller.get_legs_torque()
|
||||
msg = f"读取扭矩: {torques}"
|
||||
log(msg)
|
||||
return ([f"{t:.2f}" if t is not None else "N/A" for t in torques], msg)
|
||||
except Exception as e:
|
||||
msg = f"读取扭矩异常: {e}"
|
||||
log(msg)
|
||||
return (["错误"] * 4, msg)
|
||||
|
||||
# -------------------------------------------------
|
||||
# 后台平衡循环(守护线程)
|
||||
# -------------------------------------------------
|
||||
def _balance_thread(ctrl: BalanceController) -> None:
|
||||
"""后台线程入口,运行平衡循环并确保资源安全释放。"""
|
||||
try:
|
||||
ctrl.enable_all()
|
||||
log("平衡循环启动")
|
||||
ctrl.run_balance_loop()
|
||||
except Exception as e:
|
||||
log(f"平衡循环异常: {e}")
|
||||
finally:
|
||||
ctrl.shutdown()
|
||||
log("平衡循环已结束,资源已清理")
|
||||
|
||||
def start_balance_thread() -> None:
|
||||
"""在守护线程中启动平衡循环。"""
|
||||
global controller
|
||||
if controller is None:
|
||||
controller = create_controller()
|
||||
if controller is None:
|
||||
log("启动平衡控制失败:无法创建 BalanceController")
|
||||
return
|
||||
thread = threading.Thread(target=_balance_thread, args=(controller,), daemon=True)
|
||||
thread.start()
|
||||
log("平衡控制线程已启动")
|
||||
|
||||
def start_balance() -> tuple:
|
||||
"""检查电机是否已使能后启动平衡控制。"""
|
||||
if not motors_enabled:
|
||||
msg = "启动平衡控制失败:电机未使能"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
start_balance_thread()
|
||||
msg = "平衡控制已启动"
|
||||
log(msg)
|
||||
return (msg, msg)
|
||||
|
||||
# -------------------------------------------------
|
||||
# 日志刷新(用于 UI 按钮)
|
||||
# -------------------------------------------------
|
||||
def refresh_log() -> str:
|
||||
"""读取最新的日志文件内容返回给 UI。"""
|
||||
if not os.path.exists(LOG_PATH):
|
||||
return ""
|
||||
with open(LOG_PATH, "r", encoding="utf-8") as f:
|
||||
return f.read()
|
||||
|
||||
# -------------------------------------------------
|
||||
# 自动打开串口并初始化 UI
|
||||
# -------------------------------------------------
|
||||
init_status, _ = open_port() # 自动打开串口
|
||||
|
||||
# -------------------------------------------------
|
||||
# Gradio UI
|
||||
# -------------------------------------------------
|
||||
with gr.Blocks() as demo:
|
||||
# 日志显示区
|
||||
log_box = gr.Textbox(label="运行日志", lines=15, interactive=False)
|
||||
refresh_btn = gr.Button("刷新日志")
|
||||
refresh_btn.click(fn=refresh_log, inputs=None, outputs=log_box)
|
||||
|
||||
gr.Markdown("# 🤖 四足机器人控制面板")
|
||||
|
||||
with gr.Row():
|
||||
# 左侧:电机控制
|
||||
with gr.Column():
|
||||
gr.Markdown("## 电机控制")
|
||||
# 已移除 “打开串口” 按钮,串口在启动时已自动打开
|
||||
enable_btn = gr.Button("✅ 使能全部")
|
||||
disable_btn = gr.Button("❌ 失能全部")
|
||||
start_btn = gr.Button("▶️ 启动平衡控制")
|
||||
status_box = gr.Textbox(label="状态", value=init_status, interactive=False)
|
||||
|
||||
enable_btn.click(fn=enable_all, inputs=None, outputs=[status_box, log_box])
|
||||
disable_btn.click(fn=disable_all, inputs=None, outputs=[status_box, log_box])
|
||||
start_btn.click(fn=start_balance, inputs=None, outputs=[status_box, log_box])
|
||||
|
||||
# 中间:位置控制
|
||||
with gr.Column():
|
||||
gr.Markdown("## 位置控制")
|
||||
pos1 = gr.Slider(0, 0.85, label="腿 1 位置")
|
||||
pos2 = gr.Slider(0, 0.85, label="腿 2 位置")
|
||||
pos3 = gr.Slider(0, 0.85, label="腿 3 位置")
|
||||
pos4 = gr.Slider(0, 0.85, label="腿 4 位置")
|
||||
vel = gr.Slider(0.1, 1.0, value=0.5, step=0.1, label="速度比例")
|
||||
set_btn = gr.Button("📍 设置位置")
|
||||
pos_status = gr.Textbox(label="位置设置结果", interactive=False)
|
||||
|
||||
set_btn.click(fn=set_position,
|
||||
inputs=[pos1, pos2, pos3, pos4, vel],
|
||||
outputs=[pos_status, log_box])
|
||||
|
||||
# 右侧:扭矩读取
|
||||
with gr.Column():
|
||||
gr.Markdown("## 扭矩读取")
|
||||
torque_output = gr.Textbox(label="腿部扭矩 (N/m)", interactive=False)
|
||||
read_btn = gr.Button("🔍 读取扭矩")
|
||||
read_btn.click(fn=get_torque, inputs=None, outputs=[torque_output, log_box])
|
||||
|
||||
demo.launch(server_name="0.0.0.0", server_port=7860, debug=True)
|
||||
157
balance.py
Normal file
157
balance.py
Normal file
@@ -0,0 +1,157 @@
|
||||
import time
|
||||
import imu_py
|
||||
from Legs_controller import LegsController
|
||||
|
||||
class BalanceController:
|
||||
"""
|
||||
BalanceController 将原 balance.py 的平衡控制逻辑封装为类,
|
||||
复用 LegsController 中已实现的电机初始化、使能、失能、扭矩读取
|
||||
与位置控制等接口,保持脚本仍可直接运行。
|
||||
"""
|
||||
|
||||
def __init__(self, imu_port="/dev/dm-imu", imu_baud=921600, leg_port="/dev/dm-u2can"):
|
||||
# 实例化 LegsController(内部完成串口、MotorControl、所有电机的注册)
|
||||
# 若实际硬件不存在,LegsController 会在内部捕获异常,仍可安全实例化
|
||||
try:
|
||||
self.legs = LegsController(port=leg_port)
|
||||
except Exception as e:
|
||||
print(f"初始化 LegsController 失败: {e}")
|
||||
# 创建一个空对象,后续通过 getattr 检查其是否拥有 mc 属性
|
||||
self.legs = type('DummyLegs', (), {})()
|
||||
# 初始化 IMU(若硬件不可用则使用模拟对象)
|
||||
try:
|
||||
self.imu = imu_py.DmImu(imu_port, imu_baud)
|
||||
self.imu.start()
|
||||
except Exception as e:
|
||||
print(f"初始化 IMU 失败: {e}")
|
||||
class DummyImu:
|
||||
def getData(self):
|
||||
# 返回零姿态以便算法继续运行
|
||||
return {'roll': 0.0, 'pitch': 0.0, 'yaw': 0.0}
|
||||
self.imu = DummyImu()
|
||||
# 运行标志,控制主循环的退出
|
||||
self._running = False
|
||||
|
||||
# ---------- 电机管理 ----------
|
||||
def enable_all(self):
|
||||
"""使能四条腿和四个轮子电机。"""
|
||||
if getattr(self.legs, "mc", None):
|
||||
self.legs.enable_legs()
|
||||
self.legs.enable_wheels()
|
||||
else:
|
||||
print("警告: LegsController 未成功初始化串口,跳过使能步骤。")
|
||||
|
||||
def disable_all(self):
|
||||
"""一次性失能所有电机(腿+轮子)。"""
|
||||
if getattr(self.legs, "mc", None):
|
||||
self.legs.disable_all()
|
||||
else:
|
||||
print("警告: LegsController 未成功初始化串口,跳过失能步骤。")
|
||||
|
||||
# ---------- 状态读取 ----------
|
||||
def get_legs_torque(self):
|
||||
"""返回四条腿电机的扭矩列表。"""
|
||||
if getattr(self.legs, "mc", None):
|
||||
return self.legs.get_legs_torque()
|
||||
else:
|
||||
print("警告: LegsController 未成功初始化串口,返回空列表。")
|
||||
return []
|
||||
|
||||
# ---------- 位置控制 ----------
|
||||
def control_legs_pos(self, pos1, pos2, pos3, pos4, vel=0.5):
|
||||
"""使用 LegsController 的位置‑速度控制四条腿。"""
|
||||
if getattr(self.legs, "mc", None):
|
||||
self.legs.control_legs_pos(pos1, pos2, pos3, pos4, vel)
|
||||
else:
|
||||
print("警告: LegsController 未成功初始化串口,跳过位置控制。")
|
||||
|
||||
# ---------- 私有工具 ----------
|
||||
def _limit_offsets(self, offs):
|
||||
"""将偏置限制在 0~0.5 之间。"""
|
||||
return min(max(offs, 0.0), 0.5)
|
||||
|
||||
def _update_offsets(self, data, dt):
|
||||
offs=[0.0,0.0,0.0,0.0]
|
||||
if data['pitch']>0.2:
|
||||
offs[0]=offs[0]+0.0001*(data['pitch'])*pow(data['pitch'],0.1)
|
||||
offs[1]=offs[1]+0.0001*(data['pitch'])*pow(data['pitch'],0.1)
|
||||
if data['pitch']<-0.2:
|
||||
offs[2]=offs[2]+0.0001*(-data['pitch'])*pow(-data['pitch'],0.1)
|
||||
offs[3]=offs[3]+0.0001*(-data['pitch'])*pow(-data['pitch'],0.1)
|
||||
if data['roll']<-0.2:
|
||||
offs[0]=offs[0]+0.0001*(-data['roll'])*pow(-data['roll'],0.1)
|
||||
offs[3]=offs[3]+0.0001*(-data['roll'])*pow(-data['roll'],0.1)
|
||||
if data['roll']>0.2:
|
||||
offs[1]=offs[1]+0.0001*(data['roll'])*pow(data['roll'],0.1)
|
||||
offs[2]=offs[2]+0.0001*(data['roll'])*pow(data['roll'],0.1)
|
||||
|
||||
# 归一化到 0~0.5 区间
|
||||
min_off = min(offs)
|
||||
offs = [o - min_off for o in offs]
|
||||
offs = [self._limit_offsets(o) for o in offs]
|
||||
|
||||
return offs
|
||||
|
||||
# ---------- 主循环 ----------
|
||||
def run_balance_loop(self, max_vel=1.0):
|
||||
self._running = True
|
||||
offs = [0.0, 0.0, 0.0, 0.0]
|
||||
prev_time = time.time()
|
||||
|
||||
while self._running:
|
||||
try:
|
||||
cur_time = time.time()
|
||||
dt = cur_time - prev_time
|
||||
if dt <= 0:
|
||||
# 防止除以零或极小 dt 导致的异常
|
||||
dt = 1e-6
|
||||
prev_time = cur_time
|
||||
|
||||
data = self.imu.getData()
|
||||
offs = self._update_offsets(data, dt)
|
||||
|
||||
if getattr(self.legs, "mc", None):
|
||||
vel = min(1.0, max_vel)
|
||||
self.control_legs_pos(
|
||||
0.85 - offs[0],
|
||||
0.85 - offs[1],
|
||||
0.85 - offs[2],
|
||||
0.85 - offs[3],
|
||||
vel=vel,
|
||||
)
|
||||
else:
|
||||
print("调试: 偏置计算结果", offs)
|
||||
|
||||
#print(f"euler: (roll={data['roll']:.2f}, pitch={data['pitch']:.2f}, yaw={data['yaw']:.2f})")
|
||||
time.sleep(0.001)
|
||||
except Exception as e:
|
||||
print(f"平衡循环内部异常, 退出循环: {e}")
|
||||
break
|
||||
|
||||
# ---------- 收尾 ----------
|
||||
def shutdown(self):
|
||||
"""关闭所有资源:失能电机、关闭串口、停止 IMU。"""
|
||||
# 先停止循环
|
||||
self._running = False
|
||||
self.disable_all()
|
||||
# 若 LegsController 成功初始化串口则关闭,否则跳过
|
||||
if getattr(self.legs, "close_serial", None):
|
||||
try:
|
||||
self.legs.close_serial()
|
||||
except Exception as e:
|
||||
print(f"关闭串口时出现异常: {e}")
|
||||
# 若 imu_py 提供 stop 方法,可取消注释以下行
|
||||
# self.imu.stop()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# 直接运行脚本时的入口
|
||||
controller = BalanceController()
|
||||
controller.enable_all()
|
||||
# 初始位置设置(与原脚本保持一致)
|
||||
controller.control_legs_pos(0.85, 0.85, 0.85, 0.85, vel=0.5)
|
||||
time.sleep(5) # 与原脚本的延时保持一致
|
||||
# 进入平衡控制循环
|
||||
controller.run_balance_loop()
|
||||
# 结束后清理资源
|
||||
controller.shutdown()
|
||||
1
build/.cmake/api/v1/query/client-vscode/query.json
Normal file
1
build/.cmake/api/v1/query/client-vscode/query.json
Normal file
@@ -0,0 +1 @@
|
||||
{"requests":[{"kind":"cache","version":2},{"kind":"codemodel","version":2},{"kind":"toolchains","version":1},{"kind":"cmakeFiles","version":1}]}
|
||||
1323
build/.cmake/api/v1/reply/cache-v2-ae4a9db768b4bbb36baa.json
Normal file
1323
build/.cmake/api/v1/reply/cache-v2-ae4a9db768b4bbb36baa.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,166 @@
|
||||
{
|
||||
"inputs" :
|
||||
[
|
||||
{
|
||||
"path" : "CMakeLists.txt"
|
||||
},
|
||||
{
|
||||
"isGenerated" : true,
|
||||
"path" : "/home/allenyuan/balance/build/CMakeFiles/3.22.1/CMakeSystem.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake"
|
||||
},
|
||||
{
|
||||
"isGenerated" : true,
|
||||
"path" : "/home/allenyuan/balance/build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CMakeGenericSystem.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Platform/Linux.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Platform/UnixPaths.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CMakeCXXInformation.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Compiler/GNU-CXX.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Compiler/GNU.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-CXX.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Platform/Linux-GNU.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake"
|
||||
},
|
||||
{
|
||||
"isExternal" : true,
|
||||
"path" : "/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11ConfigVersion.cmake"
|
||||
},
|
||||
{
|
||||
"isExternal" : true,
|
||||
"path" : "/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Config.cmake"
|
||||
},
|
||||
{
|
||||
"isExternal" : true,
|
||||
"path" : "/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Targets.cmake"
|
||||
},
|
||||
{
|
||||
"isExternal" : true,
|
||||
"path" : "/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Common.cmake"
|
||||
},
|
||||
{
|
||||
"isExternal" : true,
|
||||
"path" : "/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Tools.cmake"
|
||||
},
|
||||
{
|
||||
"isExternal" : true,
|
||||
"path" : "/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/FindPythonLibsNew.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/FindPythonInterp.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/FindPackageMessage.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CheckCXXCompilerFlag.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CheckCXXSourceCompiles.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Internal/CheckSourceCompiles.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Internal/CheckCompilerFlag.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/Internal/CheckSourceCompiles.cmake"
|
||||
},
|
||||
{
|
||||
"isCMake" : true,
|
||||
"isExternal" : true,
|
||||
"path" : "/usr/share/cmake-3.22/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake"
|
||||
}
|
||||
],
|
||||
"kind" : "cmakeFiles",
|
||||
"paths" :
|
||||
{
|
||||
"build" : "/home/allenyuan/balance/build",
|
||||
"source" : "/home/allenyuan/balance/pybind_imu"
|
||||
},
|
||||
"version" :
|
||||
{
|
||||
"major" : 1,
|
||||
"minor" : 0
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"configurations" :
|
||||
[
|
||||
{
|
||||
"directories" :
|
||||
[
|
||||
{
|
||||
"build" : ".",
|
||||
"jsonFile" : "directory-.-Debug-f5ebdc15457944623624.json",
|
||||
"minimumCMakeVersion" :
|
||||
{
|
||||
"string" : "3.14"
|
||||
},
|
||||
"projectIndex" : 0,
|
||||
"source" : ".",
|
||||
"targetIndexes" :
|
||||
[
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"name" : "Debug",
|
||||
"projects" :
|
||||
[
|
||||
{
|
||||
"directoryIndexes" :
|
||||
[
|
||||
0
|
||||
],
|
||||
"name" : "imu_py",
|
||||
"targetIndexes" :
|
||||
[
|
||||
0
|
||||
]
|
||||
}
|
||||
],
|
||||
"targets" :
|
||||
[
|
||||
{
|
||||
"directoryIndex" : 0,
|
||||
"id" : "imu_py::@6890427a1f51a3e7e1df",
|
||||
"jsonFile" : "target-imu_py-Debug-3913d741f2156d7faae9.json",
|
||||
"name" : "imu_py",
|
||||
"projectIndex" : 0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"kind" : "codemodel",
|
||||
"paths" :
|
||||
{
|
||||
"build" : "/home/allenyuan/balance/build",
|
||||
"source" : "/home/allenyuan/balance/pybind_imu"
|
||||
},
|
||||
"version" :
|
||||
{
|
||||
"major" : 2,
|
||||
"minor" : 3
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"backtraceGraph" :
|
||||
{
|
||||
"commands" : [],
|
||||
"files" : [],
|
||||
"nodes" : []
|
||||
},
|
||||
"installers" : [],
|
||||
"paths" :
|
||||
{
|
||||
"build" : ".",
|
||||
"source" : "."
|
||||
}
|
||||
}
|
||||
132
build/.cmake/api/v1/reply/index-2025-09-11T04-53-20-0515.json
Normal file
132
build/.cmake/api/v1/reply/index-2025-09-11T04-53-20-0515.json
Normal file
@@ -0,0 +1,132 @@
|
||||
{
|
||||
"cmake" :
|
||||
{
|
||||
"generator" :
|
||||
{
|
||||
"multiConfig" : false,
|
||||
"name" : "Unix Makefiles"
|
||||
},
|
||||
"paths" :
|
||||
{
|
||||
"cmake" : "/usr/bin/cmake",
|
||||
"cpack" : "/usr/bin/cpack",
|
||||
"ctest" : "/usr/bin/ctest",
|
||||
"root" : "/usr/share/cmake-3.22"
|
||||
},
|
||||
"version" :
|
||||
{
|
||||
"isDirty" : false,
|
||||
"major" : 3,
|
||||
"minor" : 22,
|
||||
"patch" : 1,
|
||||
"string" : "3.22.1",
|
||||
"suffix" : ""
|
||||
}
|
||||
},
|
||||
"objects" :
|
||||
[
|
||||
{
|
||||
"jsonFile" : "codemodel-v2-5ea8cfc0b9263cbe5ae5.json",
|
||||
"kind" : "codemodel",
|
||||
"version" :
|
||||
{
|
||||
"major" : 2,
|
||||
"minor" : 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"jsonFile" : "cache-v2-ae4a9db768b4bbb36baa.json",
|
||||
"kind" : "cache",
|
||||
"version" :
|
||||
{
|
||||
"major" : 2,
|
||||
"minor" : 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"jsonFile" : "cmakeFiles-v1-389eb8769a8295e7571d.json",
|
||||
"kind" : "cmakeFiles",
|
||||
"version" :
|
||||
{
|
||||
"major" : 1,
|
||||
"minor" : 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"jsonFile" : "toolchains-v1-3105704d088db7adbfb5.json",
|
||||
"kind" : "toolchains",
|
||||
"version" :
|
||||
{
|
||||
"major" : 1,
|
||||
"minor" : 0
|
||||
}
|
||||
}
|
||||
],
|
||||
"reply" :
|
||||
{
|
||||
"client-vscode" :
|
||||
{
|
||||
"query.json" :
|
||||
{
|
||||
"requests" :
|
||||
[
|
||||
{
|
||||
"kind" : "cache",
|
||||
"version" : 2
|
||||
},
|
||||
{
|
||||
"kind" : "codemodel",
|
||||
"version" : 2
|
||||
},
|
||||
{
|
||||
"kind" : "toolchains",
|
||||
"version" : 1
|
||||
},
|
||||
{
|
||||
"kind" : "cmakeFiles",
|
||||
"version" : 1
|
||||
}
|
||||
],
|
||||
"responses" :
|
||||
[
|
||||
{
|
||||
"jsonFile" : "cache-v2-ae4a9db768b4bbb36baa.json",
|
||||
"kind" : "cache",
|
||||
"version" :
|
||||
{
|
||||
"major" : 2,
|
||||
"minor" : 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"jsonFile" : "codemodel-v2-5ea8cfc0b9263cbe5ae5.json",
|
||||
"kind" : "codemodel",
|
||||
"version" :
|
||||
{
|
||||
"major" : 2,
|
||||
"minor" : 3
|
||||
}
|
||||
},
|
||||
{
|
||||
"jsonFile" : "toolchains-v1-3105704d088db7adbfb5.json",
|
||||
"kind" : "toolchains",
|
||||
"version" :
|
||||
{
|
||||
"major" : 1,
|
||||
"minor" : 0
|
||||
}
|
||||
},
|
||||
{
|
||||
"jsonFile" : "cmakeFiles-v1-389eb8769a8295e7571d.json",
|
||||
"kind" : "cmakeFiles",
|
||||
"version" :
|
||||
{
|
||||
"major" : 1,
|
||||
"minor" : 0
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,172 @@
|
||||
{
|
||||
"artifacts" :
|
||||
[
|
||||
{
|
||||
"path" : "imu_py.cpython-310-aarch64-linux-gnu.so"
|
||||
}
|
||||
],
|
||||
"backtrace" : 2,
|
||||
"backtraceGraph" :
|
||||
{
|
||||
"commands" :
|
||||
[
|
||||
"add_library",
|
||||
"pybind11_add_module",
|
||||
"target_link_libraries",
|
||||
"include_directories"
|
||||
],
|
||||
"files" :
|
||||
[
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Tools.cmake",
|
||||
"CMakeLists.txt"
|
||||
],
|
||||
"nodes" :
|
||||
[
|
||||
{
|
||||
"file" : 1
|
||||
},
|
||||
{
|
||||
"command" : 1,
|
||||
"file" : 1,
|
||||
"line" : 19,
|
||||
"parent" : 0
|
||||
},
|
||||
{
|
||||
"command" : 0,
|
||||
"file" : 0,
|
||||
"line" : 159,
|
||||
"parent" : 1
|
||||
},
|
||||
{
|
||||
"command" : 2,
|
||||
"file" : 1,
|
||||
"line" : 24,
|
||||
"parent" : 0
|
||||
},
|
||||
{
|
||||
"command" : 3,
|
||||
"file" : 1,
|
||||
"line" : 12,
|
||||
"parent" : 0
|
||||
},
|
||||
{
|
||||
"command" : 2,
|
||||
"file" : 0,
|
||||
"line" : 161,
|
||||
"parent" : 1
|
||||
}
|
||||
]
|
||||
},
|
||||
"compileGroups" :
|
||||
[
|
||||
{
|
||||
"compileCommandFragments" :
|
||||
[
|
||||
{
|
||||
"fragment" : "-g -fPIC -fvisibility=hidden"
|
||||
},
|
||||
{
|
||||
"fragment" : "-std=gnu++17"
|
||||
}
|
||||
],
|
||||
"defines" :
|
||||
[
|
||||
{
|
||||
"define" : "imu_py_EXPORTS"
|
||||
}
|
||||
],
|
||||
"includes" :
|
||||
[
|
||||
{
|
||||
"backtrace" : 4,
|
||||
"path" : "/home/allenyuan/balance/pybind_imu/.."
|
||||
},
|
||||
{
|
||||
"backtrace" : 4,
|
||||
"isSystem" : true,
|
||||
"path" : "/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include"
|
||||
},
|
||||
{
|
||||
"backtrace" : 5,
|
||||
"isSystem" : true,
|
||||
"path" : "/usr/include/python3.10"
|
||||
}
|
||||
],
|
||||
"language" : "CXX",
|
||||
"languageStandard" :
|
||||
{
|
||||
"backtraces" :
|
||||
[
|
||||
5,
|
||||
5,
|
||||
5
|
||||
],
|
||||
"standard" : "17"
|
||||
},
|
||||
"sourceIndexes" :
|
||||
[
|
||||
0,
|
||||
1,
|
||||
2
|
||||
]
|
||||
}
|
||||
],
|
||||
"id" : "imu_py::@6890427a1f51a3e7e1df",
|
||||
"link" :
|
||||
{
|
||||
"commandFragments" :
|
||||
[
|
||||
{
|
||||
"fragment" : "",
|
||||
"role" : "flags"
|
||||
},
|
||||
{
|
||||
"backtrace" : 3,
|
||||
"fragment" : "-lpthread",
|
||||
"role" : "libraries"
|
||||
}
|
||||
],
|
||||
"language" : "CXX"
|
||||
},
|
||||
"name" : "imu_py",
|
||||
"nameOnDisk" : "imu_py.cpython-310-aarch64-linux-gnu.so",
|
||||
"paths" :
|
||||
{
|
||||
"build" : ".",
|
||||
"source" : "."
|
||||
},
|
||||
"sourceGroups" :
|
||||
[
|
||||
{
|
||||
"name" : "Source Files",
|
||||
"sourceIndexes" :
|
||||
[
|
||||
0,
|
||||
1,
|
||||
2
|
||||
]
|
||||
}
|
||||
],
|
||||
"sources" :
|
||||
[
|
||||
{
|
||||
"backtrace" : 2,
|
||||
"compileGroupIndex" : 0,
|
||||
"path" : "pybind_imu.cpp",
|
||||
"sourceGroupIndex" : 0
|
||||
},
|
||||
{
|
||||
"backtrace" : 2,
|
||||
"compileGroupIndex" : 0,
|
||||
"path" : "/home/allenyuan/balance/dm_imu/imu_driver.cpp",
|
||||
"sourceGroupIndex" : 0
|
||||
},
|
||||
{
|
||||
"backtrace" : 2,
|
||||
"compileGroupIndex" : 0,
|
||||
"path" : "/home/allenyuan/balance/dm_imu/bsp_crc.cpp",
|
||||
"sourceGroupIndex" : 0
|
||||
}
|
||||
],
|
||||
"type" : "MODULE_LIBRARY"
|
||||
}
|
||||
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"kind" : "toolchains",
|
||||
"toolchains" :
|
||||
[
|
||||
{
|
||||
"compiler" :
|
||||
{
|
||||
"id" : "GNU",
|
||||
"implicit" :
|
||||
{
|
||||
"includeDirectories" :
|
||||
[
|
||||
"/usr/include/c++/11",
|
||||
"/usr/include/aarch64-linux-gnu/c++/11",
|
||||
"/usr/include/c++/11/backward",
|
||||
"/usr/lib/gcc/aarch64-linux-gnu/11/include",
|
||||
"/usr/local/include",
|
||||
"/usr/include/aarch64-linux-gnu",
|
||||
"/usr/include"
|
||||
],
|
||||
"linkDirectories" :
|
||||
[
|
||||
"/usr/lib/gcc/aarch64-linux-gnu/11",
|
||||
"/usr/lib/aarch64-linux-gnu",
|
||||
"/usr/lib",
|
||||
"/lib/aarch64-linux-gnu",
|
||||
"/lib"
|
||||
],
|
||||
"linkFrameworkDirectories" : [],
|
||||
"linkLibraries" :
|
||||
[
|
||||
"stdc++",
|
||||
"m",
|
||||
"gcc_s",
|
||||
"gcc",
|
||||
"c",
|
||||
"gcc_s",
|
||||
"gcc"
|
||||
]
|
||||
},
|
||||
"path" : "/usr/bin/aarch64-linux-gnu-g++",
|
||||
"version" : "11.4.0"
|
||||
},
|
||||
"language" : "CXX",
|
||||
"sourceFileExtensions" :
|
||||
[
|
||||
"C",
|
||||
"M",
|
||||
"c++",
|
||||
"cc",
|
||||
"cpp",
|
||||
"cxx",
|
||||
"m",
|
||||
"mm",
|
||||
"mpp",
|
||||
"CPP",
|
||||
"ixx",
|
||||
"cppm"
|
||||
]
|
||||
}
|
||||
],
|
||||
"version" :
|
||||
{
|
||||
"major" : 1,
|
||||
"minor" : 0
|
||||
}
|
||||
}
|
||||
367
build/CMakeCache.txt
Normal file
367
build/CMakeCache.txt
Normal file
@@ -0,0 +1,367 @@
|
||||
# This is the CMakeCache file.
|
||||
# For build in directory: /home/allenyuan/balance/build
|
||||
# It was generated by CMake: /usr/bin/cmake
|
||||
# You can edit this file to change values found and used by cmake.
|
||||
# If you do not want to change any of the values, simply exit the editor.
|
||||
# If you do want to change a value, simply edit, save, and exit the editor.
|
||||
# The syntax for the file is as follows:
|
||||
# KEY:TYPE=VALUE
|
||||
# KEY is the name of a variable in the cache.
|
||||
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
|
||||
# VALUE is the current value for the KEY.
|
||||
|
||||
########################
|
||||
# EXTERNAL cache entries
|
||||
########################
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_ADDR2LINE:FILEPATH=/usr/bin/aarch64-linux-gnu-addr2line
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_AR:FILEPATH=/usr/bin/aarch64-linux-gnu-ar
|
||||
|
||||
//No help, variable specified on the command line.
|
||||
CMAKE_BUILD_TYPE:STRING=Debug
|
||||
|
||||
//Enable/Disable color output during build.
|
||||
CMAKE_COLOR_MAKEFILE:BOOL=ON
|
||||
|
||||
//No help, variable specified on the command line.
|
||||
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-g++
|
||||
|
||||
//A wrapper around 'ar' adding the appropriate '--plugin' option
|
||||
// for the GCC compiler
|
||||
CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/aarch64-linux-gnu-gcc-ar-11
|
||||
|
||||
//A wrapper around 'ranlib' adding the appropriate '--plugin' option
|
||||
// for the GCC compiler
|
||||
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/aarch64-linux-gnu-gcc-ranlib-11
|
||||
|
||||
//Flags used by the CXX compiler during all build types.
|
||||
CMAKE_CXX_FLAGS:STRING=
|
||||
|
||||
//Flags used by the CXX compiler during DEBUG builds.
|
||||
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
|
||||
|
||||
//Flags used by the CXX compiler during MINSIZEREL builds.
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
|
||||
|
||||
//Flags used by the CXX compiler during RELEASE builds.
|
||||
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
|
||||
|
||||
//Flags used by the CXX compiler during RELWITHDEBINFO builds.
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
|
||||
|
||||
//No help, variable specified on the command line.
|
||||
CMAKE_C_COMPILER:FILEPATH=/usr/bin/aarch64-linux-gnu-gcc
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND
|
||||
|
||||
//Flags used by the linker during all build types.
|
||||
CMAKE_EXE_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during DEBUG builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during MINSIZEREL builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during RELEASE builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during RELWITHDEBINFO builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//No help, variable specified on the command line.
|
||||
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=TRUE
|
||||
|
||||
//Install path prefix, prepended onto install directories.
|
||||
CMAKE_INSTALL_PREFIX:PATH=/usr/local
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_LINKER:FILEPATH=/usr/bin/aarch64-linux-gnu-ld
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// all build types.
|
||||
CMAKE_MODULE_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// DEBUG builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// MINSIZEREL builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// RELEASE builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// RELWITHDEBINFO builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_NM:FILEPATH=/usr/bin/aarch64-linux-gnu-nm
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_OBJCOPY:FILEPATH=/usr/bin/aarch64-linux-gnu-objcopy
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_OBJDUMP:FILEPATH=/usr/bin/aarch64-linux-gnu-objdump
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_DESCRIPTION:STATIC=
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_NAME:STATIC=imu_py
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_RANLIB:FILEPATH=/usr/bin/aarch64-linux-gnu-ranlib
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_READELF:FILEPATH=/usr/bin/aarch64-linux-gnu-readelf
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during all build types.
|
||||
CMAKE_SHARED_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during DEBUG builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during MINSIZEREL builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during RELEASE builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during RELWITHDEBINFO builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//If set, runtime paths are not added when installing shared libraries,
|
||||
// but are added when building.
|
||||
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
|
||||
|
||||
//If set, runtime paths are not added when using shared libraries.
|
||||
CMAKE_SKIP_RPATH:BOOL=NO
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during all build types.
|
||||
CMAKE_STATIC_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during DEBUG builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during MINSIZEREL builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during RELEASE builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during RELWITHDEBINFO builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_STRIP:FILEPATH=/usr/bin/aarch64-linux-gnu-strip
|
||||
|
||||
//If this value is on, makefiles will be generated without the
|
||||
// .SILENT directive, and all commands will be echoed to the console
|
||||
// during the make. This is useful for debugging only. With Visual
|
||||
// Studio IDE projects all commands are done without /nologo.
|
||||
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
|
||||
|
||||
//Overwrite cached values read from Python library (classic search).
|
||||
// Turn off if cross-compiling and manually setting these values.
|
||||
PYBIND11_PYTHONLIBS_OVERWRITE:BOOL=ON
|
||||
|
||||
//Python version to use for compiling modules
|
||||
PYBIND11_PYTHON_VERSION:STRING=
|
||||
|
||||
//Path to a program.
|
||||
PYTHON_EXECUTABLE:FILEPATH=/usr/bin/python3
|
||||
|
||||
//Path to a library.
|
||||
PYTHON_LIBRARY:FILEPATH=/usr/lib/aarch64-linux-gnu/libpython3.10.so
|
||||
|
||||
//Value Computed by CMake
|
||||
imu_py_BINARY_DIR:STATIC=/home/allenyuan/balance/build
|
||||
|
||||
//Value Computed by CMake
|
||||
imu_py_IS_TOP_LEVEL:STATIC=ON
|
||||
|
||||
//Value Computed by CMake
|
||||
imu_py_SOURCE_DIR:STATIC=/home/allenyuan/balance/pybind_imu
|
||||
|
||||
//The directory containing a CMake configuration file for pybind11.
|
||||
pybind11_DIR:PATH=/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11
|
||||
|
||||
|
||||
########################
|
||||
# INTERNAL cache entries
|
||||
########################
|
||||
|
||||
//ADVANCED property for variable: CMAKE_ADDR2LINE
|
||||
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_AR
|
||||
CMAKE_AR-ADVANCED:INTERNAL=1
|
||||
//This is the directory where this CMakeCache.txt was created
|
||||
CMAKE_CACHEFILE_DIR:INTERNAL=/home/allenyuan/balance/build
|
||||
//Major version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
|
||||
//Minor version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MINOR_VERSION:INTERNAL=22
|
||||
//Patch version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
|
||||
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Path to CMake executable.
|
||||
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
|
||||
//Path to cpack program executable.
|
||||
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
|
||||
//Path to ctest program executable.
|
||||
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER
|
||||
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
|
||||
CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
|
||||
CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS
|
||||
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
|
||||
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_DLLTOOL
|
||||
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
|
||||
//Executable file format
|
||||
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
|
||||
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//Name of external makefile project generator.
|
||||
CMAKE_EXTRA_GENERATOR:INTERNAL=
|
||||
//Name of generator.
|
||||
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
|
||||
//Generator instance identifier.
|
||||
CMAKE_GENERATOR_INSTANCE:INTERNAL=
|
||||
//Name of generator platform.
|
||||
CMAKE_GENERATOR_PLATFORM:INTERNAL=
|
||||
//Name of generator toolset.
|
||||
CMAKE_GENERATOR_TOOLSET:INTERNAL=
|
||||
//Source directory with the top level CMakeLists.txt file for this
|
||||
// project
|
||||
CMAKE_HOME_DIRECTORY:INTERNAL=/home/allenyuan/balance/pybind_imu
|
||||
//Install .so files without execute permission.
|
||||
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_LINKER
|
||||
CMAKE_LINKER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
|
||||
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
|
||||
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_NM
|
||||
CMAKE_NM-ADVANCED:INTERNAL=1
|
||||
//number of local generators
|
||||
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_OBJCOPY
|
||||
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_OBJDUMP
|
||||
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
|
||||
//Platform information initialized
|
||||
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RANLIB
|
||||
CMAKE_RANLIB-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_READELF
|
||||
CMAKE_READELF-ADVANCED:INTERNAL=1
|
||||
//Path to CMake installation.
|
||||
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.22
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
|
||||
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
|
||||
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_RPATH
|
||||
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
|
||||
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STRIP
|
||||
CMAKE_STRIP-ADVANCED:INTERNAL=1
|
||||
//uname command
|
||||
CMAKE_UNAME:INTERNAL=/usr/bin/uname
|
||||
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
|
||||
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Details about finding PYTHON
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_PYTHON:INTERNAL=/usr/bin/python33.10.12
|
||||
//Details about finding PythonInterp
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_PythonInterp:INTERNAL=[/usr/bin/python3][v3.10.12(3.8)]
|
||||
//Test HAS_FLTO_AUTO
|
||||
HAS_FLTO_AUTO:INTERNAL=1
|
||||
//ADVANCED property for variable: PYTHON_EXECUTABLE
|
||||
PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
PYTHON_INCLUDE_DIRS:INTERNAL=/usr/include/python3.10
|
||||
PYTHON_IS_DEBUG:INTERNAL=0
|
||||
PYTHON_LIBRARIES:INTERNAL=/usr/lib/aarch64-linux-gnu/libpython3.10.so
|
||||
//ADVANCED property for variable: PYTHON_LIBRARY
|
||||
PYTHON_LIBRARY-ADVANCED:INTERNAL=1
|
||||
PYTHON_MODULE_DEBUG_POSTFIX:INTERNAL=
|
||||
PYTHON_MODULE_EXTENSION:INTERNAL=.cpython-310-aarch64-linux-gnu.so
|
||||
PYTHON_MODULE_PREFIX:INTERNAL=
|
||||
PYTHON_VERSION:INTERNAL=3.10.12
|
||||
PYTHON_VERSION_MAJOR:INTERNAL=3
|
||||
PYTHON_VERSION_MINOR:INTERNAL=10
|
||||
Python_ADDITIONAL_VERSIONS:INTERNAL=3.12;3.11;3.10;3.9;3.8
|
||||
_PYBIND11_CROSSCOMPILING:INTERNAL=OFF
|
||||
_Python:INTERNAL=PYTHON
|
||||
//Directories where pybind11 and possibly Python headers are located
|
||||
pybind11_INCLUDE_DIRS:INTERNAL=/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include;/usr/include/python3.10
|
||||
|
||||
83
build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake
Normal file
83
build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake
Normal file
@@ -0,0 +1,83 @@
|
||||
set(CMAKE_CXX_COMPILER "/usr/bin/aarch64-linux-gnu-g++")
|
||||
set(CMAKE_CXX_COMPILER_ARG1 "")
|
||||
set(CMAKE_CXX_COMPILER_ID "GNU")
|
||||
set(CMAKE_CXX_COMPILER_VERSION "11.4.0")
|
||||
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
|
||||
set(CMAKE_CXX_COMPILER_WRAPPER "")
|
||||
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "17")
|
||||
set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON")
|
||||
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23")
|
||||
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
|
||||
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
|
||||
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
|
||||
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
|
||||
set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
|
||||
set(CMAKE_CXX23_COMPILE_FEATURES "cxx_std_23")
|
||||
|
||||
set(CMAKE_CXX_PLATFORM_ID "Linux")
|
||||
set(CMAKE_CXX_SIMULATE_ID "")
|
||||
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
|
||||
set(CMAKE_CXX_SIMULATE_VERSION "")
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_AR "/usr/bin/aarch64-linux-gnu-ar")
|
||||
set(CMAKE_CXX_COMPILER_AR "/usr/bin/aarch64-linux-gnu-gcc-ar-11")
|
||||
set(CMAKE_RANLIB "/usr/bin/aarch64-linux-gnu-ranlib")
|
||||
set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/aarch64-linux-gnu-gcc-ranlib-11")
|
||||
set(CMAKE_LINKER "/usr/bin/aarch64-linux-gnu-ld")
|
||||
set(CMAKE_MT "")
|
||||
set(CMAKE_COMPILER_IS_GNUCXX 1)
|
||||
set(CMAKE_CXX_COMPILER_LOADED 1)
|
||||
set(CMAKE_CXX_COMPILER_WORKS TRUE)
|
||||
set(CMAKE_CXX_ABI_COMPILED TRUE)
|
||||
|
||||
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
|
||||
|
||||
set(CMAKE_CXX_COMPILER_ID_RUN 1)
|
||||
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm)
|
||||
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
|
||||
foreach (lang C OBJC OBJCXX)
|
||||
if (CMAKE_${lang}_COMPILER_ID_RUN)
|
||||
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
|
||||
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
|
||||
endforeach()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(CMAKE_CXX_LINKER_PREFERENCE 30)
|
||||
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
|
||||
|
||||
# Save compiler ABI information.
|
||||
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
|
||||
set(CMAKE_CXX_COMPILER_ABI "ELF")
|
||||
set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
|
||||
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
|
||||
|
||||
if(CMAKE_CXX_SIZEOF_DATA_PTR)
|
||||
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ABI)
|
||||
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
|
||||
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
|
||||
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/11;/usr/include/aarch64-linux-gnu/c++/11;/usr/include/c++/11/backward;/usr/lib/gcc/aarch64-linux-gnu/11/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/11;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
|
||||
BIN
build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_CXX.bin
Normal file
BIN
build/CMakeFiles/3.22.1/CMakeDetermineCompilerABI_CXX.bin
Normal file
Binary file not shown.
15
build/CMakeFiles/3.22.1/CMakeSystem.cmake
Normal file
15
build/CMakeFiles/3.22.1/CMakeSystem.cmake
Normal file
@@ -0,0 +1,15 @@
|
||||
set(CMAKE_HOST_SYSTEM "Linux-5.15.148-tegra")
|
||||
set(CMAKE_HOST_SYSTEM_NAME "Linux")
|
||||
set(CMAKE_HOST_SYSTEM_VERSION "5.15.148-tegra")
|
||||
set(CMAKE_HOST_SYSTEM_PROCESSOR "aarch64")
|
||||
|
||||
|
||||
|
||||
set(CMAKE_SYSTEM "Linux-5.15.148-tegra")
|
||||
set(CMAKE_SYSTEM_NAME "Linux")
|
||||
set(CMAKE_SYSTEM_VERSION "5.15.148-tegra")
|
||||
set(CMAKE_SYSTEM_PROCESSOR "aarch64")
|
||||
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
|
||||
set(CMAKE_SYSTEM_LOADED 1)
|
||||
791
build/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
Normal file
791
build/CMakeFiles/3.22.1/CompilerIdCXX/CMakeCXXCompilerId.cpp
Normal file
@@ -0,0 +1,791 @@
|
||||
/* This source file must have a .cpp extension so that all C++ compilers
|
||||
recognize the extension without flags. Borland does not know .cxx for
|
||||
example. */
|
||||
#ifndef __cplusplus
|
||||
# error "A C compiler has been selected for C++."
|
||||
#endif
|
||||
|
||||
#if !defined(__has_include)
|
||||
/* If the compiler does not have __has_include, pretend the answer is
|
||||
always no. */
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
|
||||
|
||||
/* Version number components: V=Version, R=Revision, P=Patch
|
||||
Version date components: YYYY=Year, MM=Month, DD=Day */
|
||||
|
||||
#if defined(__COMO__)
|
||||
# define COMPILER_ID "Comeau"
|
||||
/* __COMO_VERSION__ = VRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
|
||||
|
||||
#elif defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
# define COMPILER_ID "Intel"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
# endif
|
||||
/* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
|
||||
except that a few beta releases use the old format with V=2021. */
|
||||
# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
|
||||
# if defined(__INTEL_COMPILER_UPDATE)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
|
||||
# else
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
|
||||
# endif
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
|
||||
/* The third version component from --version is an update index,
|
||||
but no macro is provided for it. */
|
||||
# define COMPILER_VERSION_PATCH DEC(0)
|
||||
# endif
|
||||
# if defined(__INTEL_COMPILER_BUILD_DATE)
|
||||
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
|
||||
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
||||
# endif
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
# elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
|
||||
# define COMPILER_ID "IntelLLVM"
|
||||
#if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
#endif
|
||||
/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
|
||||
* later. Look for 6 digit vs. 8 digit version number to decide encoding.
|
||||
* VVVV is no smaller than the current year when a version is released.
|
||||
*/
|
||||
#if __INTEL_LLVM_COMPILER < 1000000L
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
|
||||
#else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
#elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
#endif
|
||||
#if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
#endif
|
||||
#if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
#endif
|
||||
|
||||
#elif defined(__PATHCC__)
|
||||
# define COMPILER_ID "PathScale"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
||||
# if defined(__PATHCC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
|
||||
# define COMPILER_ID "Embarcadero"
|
||||
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
|
||||
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
|
||||
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# define COMPILER_ID "Borland"
|
||||
/* __BORLANDC__ = 0xVRR */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
|
||||
|
||||
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
|
||||
# define COMPILER_ID "Watcom"
|
||||
/* __WATCOMC__ = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# define COMPILER_ID "OpenWatcom"
|
||||
/* __WATCOMC__ = VVRP + 1100 */
|
||||
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SUNPRO_CC)
|
||||
# define COMPILER_ID "SunPro"
|
||||
# if __SUNPRO_CC >= 0x5100
|
||||
/* __SUNPRO_CC = 0xVRRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
|
||||
# else
|
||||
/* __SUNPRO_CC = 0xVRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
|
||||
# endif
|
||||
|
||||
#elif defined(__HP_aCC)
|
||||
# define COMPILER_ID "HP"
|
||||
/* __HP_aCC = VVRRPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
|
||||
|
||||
#elif defined(__DECCXX)
|
||||
# define COMPILER_ID "Compaq"
|
||||
/* __DECCXX_VER = VVRRTPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
|
||||
|
||||
#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__ibmxl__) && defined(__clang__)
|
||||
# define COMPILER_ID "XLClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
|
||||
|
||||
|
||||
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
|
||||
# define COMPILER_ID "VisualAge"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__NVCOMPILER)
|
||||
# define COMPILER_ID "NVHPC"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
|
||||
# if defined(__NVCOMPILER_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
||||
# if defined(__PGIC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_CRAYC)
|
||||
# define COMPILER_ID "Cray"
|
||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
|
||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI"
|
||||
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
|
||||
|
||||
#elif defined(__CLANG_FUJITSU)
|
||||
# define COMPILER_ID "FujitsuClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# define COMPILER_VERSION_INTERNAL_STR __clang_version__
|
||||
|
||||
|
||||
#elif defined(__FUJITSU)
|
||||
# define COMPILER_ID "Fujitsu"
|
||||
# if defined(__FCC_version__)
|
||||
# define COMPILER_VERSION __FCC_version__
|
||||
# elif defined(__FCC_major__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# endif
|
||||
# if defined(__fcc_version)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
|
||||
# elif defined(__FCC_VERSION)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
|
||||
# endif
|
||||
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# define COMPILER_ID "GHS"
|
||||
/* __GHS_VERSION_NUMBER = VVVVRP */
|
||||
# ifdef __GHS_VERSION_NUMBER
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
#elif defined(__ARMCC_VERSION) && !defined(__clang__)
|
||||
# define COMPILER_ID "ARMCC"
|
||||
#if __ARMCC_VERSION >= 1000000
|
||||
/* __ARMCC_VERSION = VRRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#else
|
||||
/* __ARMCC_VERSION = VRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#endif
|
||||
|
||||
|
||||
#elif defined(__clang__) && defined(__apple_build_version__)
|
||||
# define COMPILER_ID "AppleClang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
|
||||
|
||||
#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
|
||||
# define COMPILER_ID "ARMClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
|
||||
|
||||
#elif defined(__clang__)
|
||||
# define COMPILER_ID "Clang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
|
||||
#elif defined(__GNUC__) || defined(__GNUG__)
|
||||
# define COMPILER_ID "GNU"
|
||||
# if defined(__GNUC__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# define COMPILER_ID "MSVC"
|
||||
/* _MSC_VER = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# if defined(_MSC_FULL_VER)
|
||||
# if _MSC_VER >= 1400
|
||||
/* _MSC_FULL_VER = VVRRPPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
|
||||
# else
|
||||
/* _MSC_FULL_VER = VVRRPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
|
||||
# endif
|
||||
# endif
|
||||
# if defined(_MSC_BUILD)
|
||||
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
|
||||
# endif
|
||||
|
||||
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||
# define COMPILER_ID "ADSP"
|
||||
#if defined(__VISUALDSPVERSION__)
|
||||
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
|
||||
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
|
||||
#endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# define COMPILER_ID "IAR"
|
||||
# if defined(__VER__) && defined(__ICCARM__)
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
|
||||
# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# endif
|
||||
|
||||
|
||||
/* These compilers are either not known or too old to define an
|
||||
identification macro. Try to identify the platform and guess that
|
||||
it is the native compiler. */
|
||||
#elif defined(__hpux) || defined(__hpua)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#else /* unknown compiler */
|
||||
# define COMPILER_ID ""
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
||||
#ifdef SIMULATE_ID
|
||||
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
||||
#endif
|
||||
|
||||
#ifdef __QNXNTO__
|
||||
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
||||
#endif
|
||||
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_HELPER(X) #X
|
||||
#define STRINGIFY(X) STRINGIFY_HELPER(X)
|
||||
|
||||
/* Identify known platforms by name. */
|
||||
#if defined(__linux) || defined(__linux__) || defined(linux)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
#elif defined(__MSYS__)
|
||||
# define PLATFORM_ID "MSYS"
|
||||
|
||||
#elif defined(__CYGWIN__)
|
||||
# define PLATFORM_ID "Cygwin"
|
||||
|
||||
#elif defined(__MINGW32__)
|
||||
# define PLATFORM_ID "MinGW"
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
# define PLATFORM_ID "Darwin"
|
||||
|
||||
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||
# define PLATFORM_ID "Windows"
|
||||
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD)
|
||||
# define PLATFORM_ID "FreeBSD"
|
||||
|
||||
#elif defined(__NetBSD__) || defined(__NetBSD)
|
||||
# define PLATFORM_ID "NetBSD"
|
||||
|
||||
#elif defined(__OpenBSD__) || defined(__OPENBSD)
|
||||
# define PLATFORM_ID "OpenBSD"
|
||||
|
||||
#elif defined(__sun) || defined(sun)
|
||||
# define PLATFORM_ID "SunOS"
|
||||
|
||||
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
||||
# define PLATFORM_ID "AIX"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
# define PLATFORM_ID "HP-UX"
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
# define PLATFORM_ID "Haiku"
|
||||
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
# define PLATFORM_ID "BeOS"
|
||||
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
# define PLATFORM_ID "QNX"
|
||||
|
||||
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
|
||||
# define PLATFORM_ID "Tru64"
|
||||
|
||||
#elif defined(__riscos) || defined(__riscos__)
|
||||
# define PLATFORM_ID "RISCos"
|
||||
|
||||
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
|
||||
# define PLATFORM_ID "SINIX"
|
||||
|
||||
#elif defined(__UNIX_SV__)
|
||||
# define PLATFORM_ID "UNIX_SV"
|
||||
|
||||
#elif defined(__bsdos__)
|
||||
# define PLATFORM_ID "BSDOS"
|
||||
|
||||
#elif defined(_MPRAS) || defined(MPRAS)
|
||||
# define PLATFORM_ID "MP-RAS"
|
||||
|
||||
#elif defined(__osf) || defined(__osf__)
|
||||
# define PLATFORM_ID "OSF1"
|
||||
|
||||
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
|
||||
# define PLATFORM_ID "SCO_SV"
|
||||
|
||||
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
|
||||
# define PLATFORM_ID "ULTRIX"
|
||||
|
||||
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
|
||||
# define PLATFORM_ID "Xenix"
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(__LINUX__)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
# elif defined(__DOS__)
|
||||
# define PLATFORM_ID "DOS"
|
||||
|
||||
# elif defined(__OS2__)
|
||||
# define PLATFORM_ID "OS2"
|
||||
|
||||
# elif defined(__WINDOWS__)
|
||||
# define PLATFORM_ID "Windows3x"
|
||||
|
||||
# elif defined(__VXWORKS__)
|
||||
# define PLATFORM_ID "VxWorks"
|
||||
|
||||
# else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
# endif
|
||||
|
||||
#elif defined(__INTEGRITY)
|
||||
# if defined(INT_178B)
|
||||
# define PLATFORM_ID "Integrity178"
|
||||
|
||||
# else /* regular Integrity */
|
||||
# define PLATFORM_ID "Integrity"
|
||||
# endif
|
||||
|
||||
#else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
|
||||
#endif
|
||||
|
||||
/* For windows compilers MSVC and Intel we can determine
|
||||
the architecture of the compiler being used. This is because
|
||||
the compilers do not have flags that can change the architecture,
|
||||
but rather depend on which compiler is being used
|
||||
*/
|
||||
#if defined(_WIN32) && defined(_MSC_VER)
|
||||
# if defined(_M_IA64)
|
||||
# define ARCHITECTURE_ID "IA64"
|
||||
|
||||
# elif defined(_M_ARM64EC)
|
||||
# define ARCHITECTURE_ID "ARM64EC"
|
||||
|
||||
# elif defined(_M_X64) || defined(_M_AMD64)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# elif defined(_M_ARM64)
|
||||
# define ARCHITECTURE_ID "ARM64"
|
||||
|
||||
# elif defined(_M_ARM)
|
||||
# if _M_ARM == 4
|
||||
# define ARCHITECTURE_ID "ARMV4I"
|
||||
# elif _M_ARM == 5
|
||||
# define ARCHITECTURE_ID "ARMV5I"
|
||||
# else
|
||||
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
|
||||
# endif
|
||||
|
||||
# elif defined(_M_MIPS)
|
||||
# define ARCHITECTURE_ID "MIPS"
|
||||
|
||||
# elif defined(_M_SH)
|
||||
# define ARCHITECTURE_ID "SHx"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(_M_I86)
|
||||
# define ARCHITECTURE_ID "I86"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# if defined(__ICCARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__ICCRX__)
|
||||
# define ARCHITECTURE_ID "RX"
|
||||
|
||||
# elif defined(__ICCRH850__)
|
||||
# define ARCHITECTURE_ID "RH850"
|
||||
|
||||
# elif defined(__ICCRL78__)
|
||||
# define ARCHITECTURE_ID "RL78"
|
||||
|
||||
# elif defined(__ICCRISCV__)
|
||||
# define ARCHITECTURE_ID "RISCV"
|
||||
|
||||
# elif defined(__ICCAVR__)
|
||||
# define ARCHITECTURE_ID "AVR"
|
||||
|
||||
# elif defined(__ICC430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__ICCV850__)
|
||||
# define ARCHITECTURE_ID "V850"
|
||||
|
||||
# elif defined(__ICC8051__)
|
||||
# define ARCHITECTURE_ID "8051"
|
||||
|
||||
# elif defined(__ICCSTM8__)
|
||||
# define ARCHITECTURE_ID "STM8"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# if defined(__PPC64__)
|
||||
# define ARCHITECTURE_ID "PPC64"
|
||||
|
||||
# elif defined(__ppc__)
|
||||
# define ARCHITECTURE_ID "PPC"
|
||||
|
||||
# elif defined(__ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__x86_64__)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(__i386__)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# if defined(__TI_ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__MSP430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__TMS320C28XX__)
|
||||
# define ARCHITECTURE_ID "TMS320C28x"
|
||||
|
||||
# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
|
||||
# define ARCHITECTURE_ID "TMS320C6x"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#else
|
||||
# define ARCHITECTURE_ID
|
||||
#endif
|
||||
|
||||
/* Convert integer to decimal digit literals. */
|
||||
#define DEC(n) \
|
||||
('0' + (((n) / 10000000)%10)), \
|
||||
('0' + (((n) / 1000000)%10)), \
|
||||
('0' + (((n) / 100000)%10)), \
|
||||
('0' + (((n) / 10000)%10)), \
|
||||
('0' + (((n) / 1000)%10)), \
|
||||
('0' + (((n) / 100)%10)), \
|
||||
('0' + (((n) / 10)%10)), \
|
||||
('0' + ((n) % 10))
|
||||
|
||||
/* Convert integer to hex digit literals. */
|
||||
#define HEX(n) \
|
||||
('0' + ((n)>>28 & 0xF)), \
|
||||
('0' + ((n)>>24 & 0xF)), \
|
||||
('0' + ((n)>>20 & 0xF)), \
|
||||
('0' + ((n)>>16 & 0xF)), \
|
||||
('0' + ((n)>>12 & 0xF)), \
|
||||
('0' + ((n)>>8 & 0xF)), \
|
||||
('0' + ((n)>>4 & 0xF)), \
|
||||
('0' + ((n) & 0xF))
|
||||
|
||||
/* Construct a string literal encoding the version number. */
|
||||
#ifdef COMPILER_VERSION
|
||||
char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#elif defined(COMPILER_VERSION_MAJOR)
|
||||
char const info_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
|
||||
COMPILER_VERSION_MAJOR,
|
||||
# ifdef COMPILER_VERSION_MINOR
|
||||
'.', COMPILER_VERSION_MINOR,
|
||||
# ifdef COMPILER_VERSION_PATCH
|
||||
'.', COMPILER_VERSION_PATCH,
|
||||
# ifdef COMPILER_VERSION_TWEAK
|
||||
'.', COMPILER_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the internal version number. */
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
char const info_version_internal[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
|
||||
'i','n','t','e','r','n','a','l','[',
|
||||
COMPILER_VERSION_INTERNAL,']','\0'};
|
||||
#elif defined(COMPILER_VERSION_INTERNAL_STR)
|
||||
char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
char const info_simulate_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
|
||||
SIMULATE_VERSION_MAJOR,
|
||||
# ifdef SIMULATE_VERSION_MINOR
|
||||
'.', SIMULATE_VERSION_MINOR,
|
||||
# ifdef SIMULATE_VERSION_PATCH
|
||||
'.', SIMULATE_VERSION_PATCH,
|
||||
# ifdef SIMULATE_VERSION_TWEAK
|
||||
'.', SIMULATE_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
|
||||
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
|
||||
|
||||
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
|
||||
# if defined(__INTEL_CXX11_MODE__)
|
||||
# if defined(__cpp_aggregate_nsdmi)
|
||||
# define CXX_STD 201402L
|
||||
# else
|
||||
# define CXX_STD 201103L
|
||||
# endif
|
||||
# else
|
||||
# define CXX_STD 199711L
|
||||
# endif
|
||||
#elif defined(_MSC_VER) && defined(_MSVC_LANG)
|
||||
# define CXX_STD _MSVC_LANG
|
||||
#else
|
||||
# define CXX_STD __cplusplus
|
||||
#endif
|
||||
|
||||
const char* info_language_standard_default = "INFO" ":" "standard_default["
|
||||
#if CXX_STD > 202002L
|
||||
"23"
|
||||
#elif CXX_STD > 201703L
|
||||
"20"
|
||||
#elif CXX_STD >= 201703L
|
||||
"17"
|
||||
#elif CXX_STD >= 201402L
|
||||
"14"
|
||||
#elif CXX_STD >= 201103L
|
||||
"11"
|
||||
#else
|
||||
"98"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
const char* info_language_extensions_default = "INFO" ":" "extensions_default["
|
||||
/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
|
||||
#if (defined(__clang__) || defined(__GNUC__) || \
|
||||
defined(__TI_COMPILER_VERSION__)) && \
|
||||
!defined(__STRICT_ANSI__) && !defined(_MSC_VER)
|
||||
"ON"
|
||||
#else
|
||||
"OFF"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int require = 0;
|
||||
require += info_compiler[argc];
|
||||
require += info_platform[argc];
|
||||
#ifdef COMPILER_VERSION_MAJOR
|
||||
require += info_version[argc];
|
||||
#endif
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
require += info_version_internal[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_ID
|
||||
require += info_simulate[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
require += info_simulate_version[argc];
|
||||
#endif
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
require += info_cray[argc];
|
||||
#endif
|
||||
require += info_language_standard_default[argc];
|
||||
require += info_language_extensions_default[argc];
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
BIN
build/CMakeFiles/3.22.1/CompilerIdCXX/a.out
Normal file
BIN
build/CMakeFiles/3.22.1/CompilerIdCXX/a.out
Normal file
Binary file not shown.
16
build/CMakeFiles/CMakeDirectoryInformation.cmake
Normal file
16
build/CMakeFiles/CMakeDirectoryInformation.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# Relative path conversion top directories.
|
||||
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/allenyuan/balance/pybind_imu")
|
||||
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/allenyuan/balance/build")
|
||||
|
||||
# Force unix paths in dependencies.
|
||||
set(CMAKE_FORCE_UNIX_PATHS 1)
|
||||
|
||||
|
||||
# The C and CXX include file regular expressions for this directory.
|
||||
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
||||
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
||||
239
build/CMakeFiles/CMakeOutput.log
Normal file
239
build/CMakeFiles/CMakeOutput.log
Normal file
@@ -0,0 +1,239 @@
|
||||
The system is: Linux - 5.15.148-tegra - aarch64
|
||||
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
|
||||
Compiler: /usr/bin/aarch64-linux-gnu-g++
|
||||
Build flags:
|
||||
Id flags:
|
||||
|
||||
The output was:
|
||||
0
|
||||
|
||||
|
||||
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
|
||||
|
||||
The CXX compiler identification is GNU, found in "/home/allenyuan/balance/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out"
|
||||
|
||||
Detecting CXX compiler ABI info compiled with the following output:
|
||||
Change Dir: /home/allenyuan/balance/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_1887e/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1887e.dir/build.make CMakeFiles/cmTC_1887e.dir/build
|
||||
gmake[1]: Entering directory '/home/allenyuan/balance/build/CMakeFiles/CMakeTmp'
|
||||
Building CXX object CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o
|
||||
/usr/bin/aarch64-linux-gnu-g++ -v -o CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp
|
||||
Using built-in specs.
|
||||
COLLECT_GCC=/usr/bin/aarch64-linux-gnu-g++
|
||||
Target: aarch64-linux-gnu
|
||||
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.2' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4
|
||||
Thread model: posix
|
||||
Supported LTO compression algorithms: zlib zstd
|
||||
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2)
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_1887e.dir/'
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/cc1plus -quiet -v -imultiarch aarch64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpdir CMakeFiles/cmTC_1887e.dir/ -dumpbase CMakeCXXCompilerABI.cpp.cpp -dumpbase-ext .cpp -mlittle-endian -mabi=lp64 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -o /tmp/ccvHQlo6.s
|
||||
GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04.2) version 11.4.0 (aarch64-linux-gnu)
|
||||
compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP
|
||||
|
||||
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
|
||||
ignoring duplicate directory "/usr/include/aarch64-linux-gnu/c++/11"
|
||||
ignoring nonexistent directory "/usr/local/include/aarch64-linux-gnu"
|
||||
ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/11/include-fixed"
|
||||
ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/include"
|
||||
#include "..." search starts here:
|
||||
#include <...> search starts here:
|
||||
/usr/include/c++/11
|
||||
/usr/include/aarch64-linux-gnu/c++/11
|
||||
/usr/include/c++/11/backward
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include
|
||||
/usr/local/include
|
||||
/usr/include/aarch64-linux-gnu
|
||||
/usr/include
|
||||
End of search list.
|
||||
GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04.2) version 11.4.0 (aarch64-linux-gnu)
|
||||
compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP
|
||||
|
||||
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
|
||||
Compiler executable checksum: 55b437a9e84fdcc0a3cb139897f42f09
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_1887e.dir/'
|
||||
as -v -EL -mabi=lp64 -o CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccvHQlo6.s
|
||||
GNU assembler version 2.38 (aarch64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38
|
||||
COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/
|
||||
LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../:/lib/:/usr/lib/
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.'
|
||||
Linking CXX executable cmTC_1887e
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1887e.dir/link.txt --verbose=1
|
||||
/usr/bin/aarch64-linux-gnu-g++ -v CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_1887e
|
||||
Using built-in specs.
|
||||
COLLECT_GCC=/usr/bin/aarch64-linux-gnu-g++
|
||||
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper
|
||||
Target: aarch64-linux-gnu
|
||||
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.2' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4
|
||||
Thread model: posix
|
||||
Supported LTO compression algorithms: zlib zstd
|
||||
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2)
|
||||
COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/
|
||||
LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../:/lib/:/usr/lib/
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_1887e' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'cmTC_1887e.'
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/cc7P3H0m.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_1887e /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/11 -L/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/11/../../.. CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_1887e' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'cmTC_1887e.'
|
||||
gmake[1]: Leaving directory '/home/allenyuan/balance/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
|
||||
Parsed CXX implicit include dir info from above output: rv=done
|
||||
found start of include info
|
||||
found start of implicit include info
|
||||
add: [/usr/include/c++/11]
|
||||
add: [/usr/include/aarch64-linux-gnu/c++/11]
|
||||
add: [/usr/include/c++/11/backward]
|
||||
add: [/usr/lib/gcc/aarch64-linux-gnu/11/include]
|
||||
add: [/usr/local/include]
|
||||
add: [/usr/include/aarch64-linux-gnu]
|
||||
add: [/usr/include]
|
||||
end of search list found
|
||||
collapse include dir [/usr/include/c++/11] ==> [/usr/include/c++/11]
|
||||
collapse include dir [/usr/include/aarch64-linux-gnu/c++/11] ==> [/usr/include/aarch64-linux-gnu/c++/11]
|
||||
collapse include dir [/usr/include/c++/11/backward] ==> [/usr/include/c++/11/backward]
|
||||
collapse include dir [/usr/lib/gcc/aarch64-linux-gnu/11/include] ==> [/usr/lib/gcc/aarch64-linux-gnu/11/include]
|
||||
collapse include dir [/usr/local/include] ==> [/usr/local/include]
|
||||
collapse include dir [/usr/include/aarch64-linux-gnu] ==> [/usr/include/aarch64-linux-gnu]
|
||||
collapse include dir [/usr/include] ==> [/usr/include]
|
||||
implicit include dirs: [/usr/include/c++/11;/usr/include/aarch64-linux-gnu/c++/11;/usr/include/c++/11/backward;/usr/lib/gcc/aarch64-linux-gnu/11/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include]
|
||||
|
||||
|
||||
Parsed CXX implicit link information from above output:
|
||||
link line regex: [^( *|.*[/\])(aarch64-linux-gnu-ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
|
||||
ignore line: [Change Dir: /home/allenyuan/balance/build/CMakeFiles/CMakeTmp]
|
||||
ignore line: []
|
||||
ignore line: [Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_1887e/fast && /usr/bin/gmake -f CMakeFiles/cmTC_1887e.dir/build.make CMakeFiles/cmTC_1887e.dir/build]
|
||||
ignore line: [gmake[1]: Entering directory '/home/allenyuan/balance/build/CMakeFiles/CMakeTmp']
|
||||
ignore line: [Building CXX object CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o]
|
||||
ignore line: [/usr/bin/aarch64-linux-gnu-g++ -v -o CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp]
|
||||
ignore line: [Using built-in specs.]
|
||||
ignore line: [COLLECT_GCC=/usr/bin/aarch64-linux-gnu-g++]
|
||||
ignore line: [Target: aarch64-linux-gnu]
|
||||
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.2' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c ada c++ go d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4]
|
||||
ignore line: [Thread model: posix]
|
||||
ignore line: [Supported LTO compression algorithms: zlib zstd]
|
||||
ignore line: [gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2) ]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_1887e.dir/']
|
||||
ignore line: [ /usr/lib/gcc/aarch64-linux-gnu/11/cc1plus -quiet -v -imultiarch aarch64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpdir CMakeFiles/cmTC_1887e.dir/ -dumpbase CMakeCXXCompilerABI.cpp.cpp -dumpbase-ext .cpp -mlittle-endian -mabi=lp64 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -o /tmp/ccvHQlo6.s]
|
||||
ignore line: [GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04.2) version 11.4.0 (aarch64-linux-gnu)]
|
||||
ignore line: [ compiled by GNU C version 11.4.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.24-GMP]
|
||||
ignore line: []
|
||||
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
|
||||
ignore line: [ignoring duplicate directory "/usr/include/aarch64-linux-gnu/c++/11"]
|
||||
ignore line: [ignoring nonexistent directory "/usr/local/include/aarch64-linux-gnu"]
|
||||
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/11/include-fixed"]
|
||||
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/include"]
|
||||
ignore line: [#include "..." search starts here:]
|
||||
ignore line: [#include <...> search starts here:]
|
||||
ignore line: [ /usr/include/c++/11]
|
||||
ignore line: [ /usr/include/aarch64-linux-gnu/c++/11]
|
||||
ignore line: [ /usr/include/c++/11/backward]
|
||||
ignore line: [ /usr/lib/gcc/aarch64-linux-gnu/11/include]
|
||||
ignore line: [ /usr/local/include]
|
||||
ignore line: [ /usr/include/aarch64-linux-gnu]
|
||||
ignore line: [ /usr/include]
|
||||
ignore line: [End of search list.]
|
||||
ignore line: [GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04.2) version 11.4.0 (aarch64-linux-gnu)]
|
||||
ignore line: [ compiled by GNU C version 11.4.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.24-GMP]
|
||||
ignore line: []
|
||||
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
|
||||
ignore line: [Compiler executable checksum: 55b437a9e84fdcc0a3cb139897f42f09]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_1887e.dir/']
|
||||
ignore line: [ as -v -EL -mabi=lp64 -o CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccvHQlo6.s]
|
||||
ignore line: [GNU assembler version 2.38 (aarch64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38]
|
||||
ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/]
|
||||
ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../:/lib/:/usr/lib/]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.']
|
||||
ignore line: [Linking CXX executable cmTC_1887e]
|
||||
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1887e.dir/link.txt --verbose=1]
|
||||
ignore line: [/usr/bin/aarch64-linux-gnu-g++ -v CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_1887e ]
|
||||
ignore line: [Using built-in specs.]
|
||||
ignore line: [COLLECT_GCC=/usr/bin/aarch64-linux-gnu-g++]
|
||||
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper]
|
||||
ignore line: [Target: aarch64-linux-gnu]
|
||||
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.2' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c ada c++ go d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4]
|
||||
ignore line: [Thread model: posix]
|
||||
ignore line: [Supported LTO compression algorithms: zlib zstd]
|
||||
ignore line: [gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2) ]
|
||||
ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/]
|
||||
ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../:/lib/:/usr/lib/]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_1887e' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'cmTC_1887e.']
|
||||
link line: [ /usr/lib/gcc/aarch64-linux-gnu/11/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/cc7P3H0m.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_1887e /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/11 -L/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/11/../../.. CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/collect2] ==> ignore
|
||||
arg [-plugin] ==> ignore
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/liblto_plugin.so] ==> ignore
|
||||
arg [-plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper] ==> ignore
|
||||
arg [-plugin-opt=-fresolution=/tmp/cc7P3H0m.res] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lc] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
|
||||
arg [--build-id] ==> ignore
|
||||
arg [--eh-frame-hdr] ==> ignore
|
||||
arg [--hash-style=gnu] ==> ignore
|
||||
arg [--as-needed] ==> ignore
|
||||
arg [-dynamic-linker] ==> ignore
|
||||
arg [/lib/ld-linux-aarch64.so.1] ==> ignore
|
||||
arg [-X] ==> ignore
|
||||
arg [-EL] ==> ignore
|
||||
arg [-maarch64linux] ==> ignore
|
||||
arg [--fix-cortex-a53-843419] ==> ignore
|
||||
arg [-pie] ==> ignore
|
||||
arg [-znow] ==> ignore
|
||||
arg [-zrelro] ==> ignore
|
||||
arg [-o] ==> ignore
|
||||
arg [cmTC_1887e] ==> ignore
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o]
|
||||
arg [-L/usr/lib/gcc/aarch64-linux-gnu/11] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/11]
|
||||
arg [-L/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu]
|
||||
arg [-L/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib]
|
||||
arg [-L/lib/aarch64-linux-gnu] ==> dir [/lib/aarch64-linux-gnu]
|
||||
arg [-L/lib/../lib] ==> dir [/lib/../lib]
|
||||
arg [-L/usr/lib/aarch64-linux-gnu] ==> dir [/usr/lib/aarch64-linux-gnu]
|
||||
arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
|
||||
arg [-L/usr/lib/gcc/aarch64-linux-gnu/11/../../..] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../..]
|
||||
arg [CMakeFiles/cmTC_1887e.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
|
||||
arg [-lstdc++] ==> lib [stdc++]
|
||||
arg [-lm] ==> lib [m]
|
||||
arg [-lgcc_s] ==> lib [gcc_s]
|
||||
arg [-lgcc] ==> lib [gcc]
|
||||
arg [-lc] ==> lib [c]
|
||||
arg [-lgcc_s] ==> lib [gcc_s]
|
||||
arg [-lgcc] ==> lib [gcc]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o]
|
||||
collapse obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o] ==> [/usr/lib/aarch64-linux-gnu/Scrt1.o]
|
||||
collapse obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o] ==> [/usr/lib/aarch64-linux-gnu/crti.o]
|
||||
collapse obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o] ==> [/usr/lib/aarch64-linux-gnu/crtn.o]
|
||||
collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/11] ==> [/usr/lib/gcc/aarch64-linux-gnu/11]
|
||||
collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu]
|
||||
collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib] ==> [/usr/lib]
|
||||
collapse library dir [/lib/aarch64-linux-gnu] ==> [/lib/aarch64-linux-gnu]
|
||||
collapse library dir [/lib/../lib] ==> [/lib]
|
||||
collapse library dir [/usr/lib/aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu]
|
||||
collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
|
||||
collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../..] ==> [/usr/lib]
|
||||
implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
|
||||
implicit objs: [/usr/lib/aarch64-linux-gnu/Scrt1.o;/usr/lib/aarch64-linux-gnu/crti.o;/usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o;/usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o;/usr/lib/aarch64-linux-gnu/crtn.o]
|
||||
implicit dirs: [/usr/lib/gcc/aarch64-linux-gnu/11;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib]
|
||||
implicit fwks: []
|
||||
|
||||
|
||||
Performing C++ SOURCE FILE Test HAS_FLTO_AUTO succeeded with the following output:
|
||||
Change Dir: /home/allenyuan/balance/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_86613/fast && /usr/bin/gmake -f CMakeFiles/cmTC_86613.dir/build.make CMakeFiles/cmTC_86613.dir/build
|
||||
gmake[1]: Entering directory '/home/allenyuan/balance/build/CMakeFiles/CMakeTmp'
|
||||
Building CXX object CMakeFiles/cmTC_86613.dir/src.cxx.o
|
||||
/usr/bin/aarch64-linux-gnu-g++ -DHAS_FLTO_AUTO -flto=auto -fno-fat-lto-objects -std=gnu++17 -o CMakeFiles/cmTC_86613.dir/src.cxx.o -c /home/allenyuan/balance/build/CMakeFiles/CMakeTmp/src.cxx
|
||||
Linking CXX executable cmTC_86613
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_86613.dir/link.txt --verbose=1
|
||||
/usr/bin/aarch64-linux-gnu-g++ CMakeFiles/cmTC_86613.dir/src.cxx.o -o cmTC_86613 -flto=auto
|
||||
gmake[1]: Leaving directory '/home/allenyuan/balance/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
Source file was:
|
||||
int main() { return 0; }
|
||||
57
build/CMakeFiles/Makefile.cmake
Normal file
57
build/CMakeFiles/Makefile.cmake
Normal file
@@ -0,0 +1,57 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# The generator used is:
|
||||
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
|
||||
|
||||
# The top level Makefile was generated from the following files:
|
||||
set(CMAKE_MAKEFILE_DEPENDS
|
||||
"CMakeCache.txt"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/FindPythonLibsNew.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Common.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Config.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11ConfigVersion.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Targets.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Tools.cmake"
|
||||
"CMakeFiles/3.22.1/CMakeCXXCompiler.cmake"
|
||||
"CMakeFiles/3.22.1/CMakeSystem.cmake"
|
||||
"/home/allenyuan/balance/pybind_imu/CMakeLists.txt"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCXXInformation.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeGenericSystem.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CheckCXXCompilerFlag.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CheckCXXSourceCompiles.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/GNU-CXX.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/GNU.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/FindPackageMessage.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/FindPythonInterp.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Internal/CheckCompilerFlag.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Internal/CheckSourceCompiles.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-CXX.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/Linux-GNU.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/Linux.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/UnixPaths.cmake"
|
||||
)
|
||||
|
||||
# The corresponding makefile is:
|
||||
set(CMAKE_MAKEFILE_OUTPUTS
|
||||
"Makefile"
|
||||
"CMakeFiles/cmake.check_cache"
|
||||
)
|
||||
|
||||
# Byproducts of CMake generate step:
|
||||
set(CMAKE_MAKEFILE_PRODUCTS
|
||||
"CMakeFiles/CMakeDirectoryInformation.cmake"
|
||||
)
|
||||
|
||||
# Dependency information for all targets:
|
||||
set(CMAKE_DEPEND_INFO_FILES
|
||||
"CMakeFiles/imu_py.dir/DependInfo.cmake"
|
||||
)
|
||||
112
build/CMakeFiles/Makefile2
Normal file
112
build/CMakeFiles/Makefile2
Normal file
@@ -0,0 +1,112 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : %,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : SCCS/s.%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : s.%
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Command-line flag to silence nested $(MAKE).
|
||||
$(VERBOSE)MAKESILENT = -s
|
||||
|
||||
#Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E rm -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/allenyuan/balance/pybind_imu
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/allenyuan/balance/build
|
||||
|
||||
#=============================================================================
|
||||
# Directory level rules for the build root directory
|
||||
|
||||
# The main recursive "all" target.
|
||||
all: CMakeFiles/imu_py.dir/all
|
||||
.PHONY : all
|
||||
|
||||
# The main recursive "preinstall" target.
|
||||
preinstall:
|
||||
.PHONY : preinstall
|
||||
|
||||
# The main recursive "clean" target.
|
||||
clean: CMakeFiles/imu_py.dir/clean
|
||||
.PHONY : clean
|
||||
|
||||
#=============================================================================
|
||||
# Target rules for target CMakeFiles/imu_py.dir
|
||||
|
||||
# All Build rule for target.
|
||||
CMakeFiles/imu_py.dir/all:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/depend
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/build
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/allenyuan/balance/build/CMakeFiles --progress-num=1,2,3,4 "Built target imu_py"
|
||||
.PHONY : CMakeFiles/imu_py.dir/all
|
||||
|
||||
# Build rule for subdir invocation for target.
|
||||
CMakeFiles/imu_py.dir/rule: cmake_check_build_system
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/allenyuan/balance/build/CMakeFiles 4
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/imu_py.dir/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/allenyuan/balance/build/CMakeFiles 0
|
||||
.PHONY : CMakeFiles/imu_py.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
imu_py: CMakeFiles/imu_py.dir/rule
|
||||
.PHONY : imu_py
|
||||
|
||||
# clean rule for target.
|
||||
CMakeFiles/imu_py.dir/clean:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/clean
|
||||
.PHONY : CMakeFiles/imu_py.dir/clean
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
3
build/CMakeFiles/TargetDirectories.txt
Normal file
3
build/CMakeFiles/TargetDirectories.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
/home/allenyuan/balance/build/CMakeFiles/imu_py.dir
|
||||
/home/allenyuan/balance/build/CMakeFiles/edit_cache.dir
|
||||
/home/allenyuan/balance/build/CMakeFiles/rebuild_cache.dir
|
||||
1
build/CMakeFiles/cmake.check_cache
Normal file
1
build/CMakeFiles/cmake.check_cache
Normal file
@@ -0,0 +1 @@
|
||||
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
|
||||
21
build/CMakeFiles/imu_py.dir/DependInfo.cmake
Normal file
21
build/CMakeFiles/imu_py.dir/DependInfo.cmake
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
# Consider dependencies only in project.
|
||||
set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF)
|
||||
|
||||
# The set of languages for which implicit dependencies are needed:
|
||||
set(CMAKE_DEPENDS_LANGUAGES
|
||||
)
|
||||
|
||||
# The set of dependency files which are needed:
|
||||
set(CMAKE_DEPENDS_DEPENDENCY_FILES
|
||||
"/home/allenyuan/balance/dm_imu/bsp_crc.cpp" "CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o" "gcc" "CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o.d"
|
||||
"/home/allenyuan/balance/dm_imu/imu_driver.cpp" "CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o" "gcc" "CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o.d"
|
||||
"/home/allenyuan/balance/pybind_imu/pybind_imu.cpp" "CMakeFiles/imu_py.dir/pybind_imu.cpp.o" "gcc" "CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d"
|
||||
)
|
||||
|
||||
# Targets to which this target links.
|
||||
set(CMAKE_TARGET_LINKED_INFO_FILES
|
||||
)
|
||||
|
||||
# Fortran module output directory.
|
||||
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
|
||||
142
build/CMakeFiles/imu_py.dir/build.make
Normal file
142
build/CMakeFiles/imu_py.dir/build.make
Normal file
@@ -0,0 +1,142 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# Delete rule output on recipe failure.
|
||||
.DELETE_ON_ERROR:
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : %,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : SCCS/s.%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : s.%
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Command-line flag to silence nested $(MAKE).
|
||||
$(VERBOSE)MAKESILENT = -s
|
||||
|
||||
#Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E rm -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/allenyuan/balance/pybind_imu
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/allenyuan/balance/build
|
||||
|
||||
# Include any dependencies generated for this target.
|
||||
include CMakeFiles/imu_py.dir/depend.make
|
||||
# Include any dependencies generated by the compiler for this target.
|
||||
include CMakeFiles/imu_py.dir/compiler_depend.make
|
||||
|
||||
# Include the progress variables for this target.
|
||||
include CMakeFiles/imu_py.dir/progress.make
|
||||
|
||||
# Include the compile flags for this target's objects.
|
||||
include CMakeFiles/imu_py.dir/flags.make
|
||||
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.o: CMakeFiles/imu_py.dir/flags.make
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.o: /home/allenyuan/balance/pybind_imu/pybind_imu.cpp
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.o: CMakeFiles/imu_py.dir/compiler_depend.ts
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/allenyuan/balance/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/imu_py.dir/pybind_imu.cpp.o"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/imu_py.dir/pybind_imu.cpp.o -MF CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d -o CMakeFiles/imu_py.dir/pybind_imu.cpp.o -c /home/allenyuan/balance/pybind_imu/pybind_imu.cpp
|
||||
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/imu_py.dir/pybind_imu.cpp.i"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/allenyuan/balance/pybind_imu/pybind_imu.cpp > CMakeFiles/imu_py.dir/pybind_imu.cpp.i
|
||||
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/imu_py.dir/pybind_imu.cpp.s"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/allenyuan/balance/pybind_imu/pybind_imu.cpp -o CMakeFiles/imu_py.dir/pybind_imu.cpp.s
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o: CMakeFiles/imu_py.dir/flags.make
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o: /home/allenyuan/balance/dm_imu/imu_driver.cpp
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o: CMakeFiles/imu_py.dir/compiler_depend.ts
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/allenyuan/balance/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o -MF CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o.d -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o -c /home/allenyuan/balance/dm_imu/imu_driver.cpp
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.i"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/allenyuan/balance/dm_imu/imu_driver.cpp > CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.i
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.s"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/allenyuan/balance/dm_imu/imu_driver.cpp -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.s
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o: CMakeFiles/imu_py.dir/flags.make
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o: /home/allenyuan/balance/dm_imu/bsp_crc.cpp
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o: CMakeFiles/imu_py.dir/compiler_depend.ts
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/allenyuan/balance/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o -MF CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o.d -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o -c /home/allenyuan/balance/dm_imu/bsp_crc.cpp
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.i"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/allenyuan/balance/dm_imu/bsp_crc.cpp > CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.i
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.s"
|
||||
/usr/bin/aarch64-linux-gnu-g++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/allenyuan/balance/dm_imu/bsp_crc.cpp -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.s
|
||||
|
||||
# Object files for target imu_py
|
||||
imu_py_OBJECTS = \
|
||||
"CMakeFiles/imu_py.dir/pybind_imu.cpp.o" \
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o" \
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o"
|
||||
|
||||
# External object files for target imu_py
|
||||
imu_py_EXTERNAL_OBJECTS =
|
||||
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/pybind_imu.cpp.o
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/build.make
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/link.txt
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/allenyuan/balance/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Linking CXX shared module imu_py.cpython-310-aarch64-linux-gnu.so"
|
||||
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/imu_py.dir/link.txt --verbose=$(VERBOSE)
|
||||
|
||||
# Rule to build all files generated by this target.
|
||||
CMakeFiles/imu_py.dir/build: imu_py.cpython-310-aarch64-linux-gnu.so
|
||||
.PHONY : CMakeFiles/imu_py.dir/build
|
||||
|
||||
CMakeFiles/imu_py.dir/clean:
|
||||
$(CMAKE_COMMAND) -P CMakeFiles/imu_py.dir/cmake_clean.cmake
|
||||
.PHONY : CMakeFiles/imu_py.dir/clean
|
||||
|
||||
CMakeFiles/imu_py.dir/depend:
|
||||
cd /home/allenyuan/balance/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/allenyuan/balance/pybind_imu /home/allenyuan/balance/pybind_imu /home/allenyuan/balance/build /home/allenyuan/balance/build /home/allenyuan/balance/build/CMakeFiles/imu_py.dir/DependInfo.cmake --color=$(COLOR)
|
||||
.PHONY : CMakeFiles/imu_py.dir/depend
|
||||
|
||||
15
build/CMakeFiles/imu_py.dir/cmake_clean.cmake
Normal file
15
build/CMakeFiles/imu_py.dir/cmake_clean.cmake
Normal file
@@ -0,0 +1,15 @@
|
||||
file(REMOVE_RECURSE
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o"
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o.d"
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o"
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o.d"
|
||||
"CMakeFiles/imu_py.dir/pybind_imu.cpp.o"
|
||||
"CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d"
|
||||
"imu_py.cpython-310-aarch64-linux-gnu.so"
|
||||
"imu_py.pdb"
|
||||
)
|
||||
|
||||
# Per-language clean rules from dependency scanning.
|
||||
foreach(lang CXX)
|
||||
include(CMakeFiles/imu_py.dir/cmake_clean_${lang}.cmake OPTIONAL)
|
||||
endforeach()
|
||||
2
build/CMakeFiles/imu_py.dir/compiler_depend.make
Normal file
2
build/CMakeFiles/imu_py.dir/compiler_depend.make
Normal file
@@ -0,0 +1,2 @@
|
||||
# Empty compiler generated dependencies file for imu_py.
|
||||
# This may be replaced when dependencies are built.
|
||||
2
build/CMakeFiles/imu_py.dir/compiler_depend.ts
Normal file
2
build/CMakeFiles/imu_py.dir/compiler_depend.ts
Normal file
@@ -0,0 +1,2 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Timestamp file for compiler generated dependencies management for imu_py.
|
||||
2
build/CMakeFiles/imu_py.dir/depend.make
Normal file
2
build/CMakeFiles/imu_py.dir/depend.make
Normal file
@@ -0,0 +1,2 @@
|
||||
# Empty dependencies file for imu_py.
|
||||
# This may be replaced when dependencies are built.
|
||||
10
build/CMakeFiles/imu_py.dir/flags.make
Normal file
10
build/CMakeFiles/imu_py.dir/flags.make
Normal file
@@ -0,0 +1,10 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# compile CXX with /usr/bin/aarch64-linux-gnu-g++
|
||||
CXX_DEFINES = -Dimu_py_EXPORTS
|
||||
|
||||
CXX_INCLUDES = -I/home/allenyuan/balance/pybind_imu/.. -isystem /home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include -isystem /usr/include/python3.10
|
||||
|
||||
CXX_FLAGS = -g -fPIC -fvisibility=hidden -std=gnu++17
|
||||
|
||||
1
build/CMakeFiles/imu_py.dir/link.txt
Normal file
1
build/CMakeFiles/imu_py.dir/link.txt
Normal file
@@ -0,0 +1 @@
|
||||
/usr/bin/aarch64-linux-gnu-g++ -fPIC -g -shared -o imu_py.cpython-310-aarch64-linux-gnu.so CMakeFiles/imu_py.dir/pybind_imu.cpp.o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o -lpthread
|
||||
5
build/CMakeFiles/imu_py.dir/progress.make
Normal file
5
build/CMakeFiles/imu_py.dir/progress.make
Normal file
@@ -0,0 +1,5 @@
|
||||
CMAKE_PROGRESS_1 = 1
|
||||
CMAKE_PROGRESS_2 = 2
|
||||
CMAKE_PROGRESS_3 = 3
|
||||
CMAKE_PROGRESS_4 = 4
|
||||
|
||||
1
build/CMakeFiles/progress.marks
Normal file
1
build/CMakeFiles/progress.marks
Normal file
@@ -0,0 +1 @@
|
||||
4
|
||||
235
build/Makefile
Normal file
235
build/Makefile
Normal file
@@ -0,0 +1,235 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : %,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : SCCS/s.%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : s.%
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Command-line flag to silence nested $(MAKE).
|
||||
$(VERBOSE)MAKESILENT = -s
|
||||
|
||||
#Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E rm -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/allenyuan/balance/pybind_imu
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/allenyuan/balance/build
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/allenyuan/balance/build/CMakeFiles /home/allenyuan/balance/build//CMakeFiles/progress.marks
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/allenyuan/balance/build/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
#=============================================================================
|
||||
# Target rules for targets named imu_py
|
||||
|
||||
# Build rule for target.
|
||||
imu_py: cmake_check_build_system
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 imu_py
|
||||
.PHONY : imu_py
|
||||
|
||||
# fast build rule for target.
|
||||
imu_py/fast:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/build
|
||||
.PHONY : imu_py/fast
|
||||
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.o: home/allenyuan/balance/dm_imu/bsp_crc.cpp.o
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.o
|
||||
|
||||
# target to build an object file
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.cpp.o:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.cpp.o
|
||||
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.i: home/allenyuan/balance/dm_imu/bsp_crc.cpp.i
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.i
|
||||
|
||||
# target to preprocess a source file
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.cpp.i:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.i
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.cpp.i
|
||||
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.s: home/allenyuan/balance/dm_imu/bsp_crc.cpp.s
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.cpp.s:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.s
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.cpp.s
|
||||
|
||||
home/allenyuan/balance/dm_imu/imu_driver.o: home/allenyuan/balance/dm_imu/imu_driver.cpp.o
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.o
|
||||
|
||||
# target to build an object file
|
||||
home/allenyuan/balance/dm_imu/imu_driver.cpp.o:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.cpp.o
|
||||
|
||||
home/allenyuan/balance/dm_imu/imu_driver.i: home/allenyuan/balance/dm_imu/imu_driver.cpp.i
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.i
|
||||
|
||||
# target to preprocess a source file
|
||||
home/allenyuan/balance/dm_imu/imu_driver.cpp.i:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.i
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.cpp.i
|
||||
|
||||
home/allenyuan/balance/dm_imu/imu_driver.s: home/allenyuan/balance/dm_imu/imu_driver.cpp.s
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
home/allenyuan/balance/dm_imu/imu_driver.cpp.s:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.s
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.cpp.s
|
||||
|
||||
pybind_imu.o: pybind_imu.cpp.o
|
||||
.PHONY : pybind_imu.o
|
||||
|
||||
# target to build an object file
|
||||
pybind_imu.cpp.o:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/pybind_imu.cpp.o
|
||||
.PHONY : pybind_imu.cpp.o
|
||||
|
||||
pybind_imu.i: pybind_imu.cpp.i
|
||||
.PHONY : pybind_imu.i
|
||||
|
||||
# target to preprocess a source file
|
||||
pybind_imu.cpp.i:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/pybind_imu.cpp.i
|
||||
.PHONY : pybind_imu.cpp.i
|
||||
|
||||
pybind_imu.s: pybind_imu.cpp.s
|
||||
.PHONY : pybind_imu.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
pybind_imu.cpp.s:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/pybind_imu.cpp.s
|
||||
.PHONY : pybind_imu.cpp.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... edit_cache"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... imu_py"
|
||||
@echo "... home/allenyuan/balance/dm_imu/bsp_crc.o"
|
||||
@echo "... home/allenyuan/balance/dm_imu/bsp_crc.i"
|
||||
@echo "... home/allenyuan/balance/dm_imu/bsp_crc.s"
|
||||
@echo "... home/allenyuan/balance/dm_imu/imu_driver.o"
|
||||
@echo "... home/allenyuan/balance/dm_imu/imu_driver.i"
|
||||
@echo "... home/allenyuan/balance/dm_imu/imu_driver.s"
|
||||
@echo "... pybind_imu.o"
|
||||
@echo "... pybind_imu.i"
|
||||
@echo "... pybind_imu.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
54
build/cmake_install.cmake
Normal file
54
build/cmake_install.cmake
Normal file
@@ -0,0 +1,54 @@
|
||||
# Install script for directory: /home/allenyuan/balance/pybind_imu
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "Debug")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "1")
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
||||
# Set default install directory permissions.
|
||||
if(NOT DEFINED CMAKE_OBJDUMP)
|
||||
set(CMAKE_OBJDUMP "/usr/bin/aarch64-linux-gnu-objdump")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT)
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
||||
else()
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
||||
endif()
|
||||
|
||||
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
||||
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
||||
file(WRITE "/home/allenyuan/balance/build/${CMAKE_INSTALL_MANIFEST}"
|
||||
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
||||
17
build/compile_commands.json
Normal file
17
build/compile_commands.json
Normal file
@@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"directory": "/home/allenyuan/balance/build",
|
||||
"command": "/usr/bin/aarch64-linux-gnu-g++ -Dimu_py_EXPORTS -I/home/allenyuan/balance/pybind_imu/.. -isystem /home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include -isystem /usr/include/python3.10 -g -fPIC -fvisibility=hidden -std=gnu++17 -o CMakeFiles/imu_py.dir/pybind_imu.cpp.o -c /home/allenyuan/balance/pybind_imu/pybind_imu.cpp",
|
||||
"file": "/home/allenyuan/balance/pybind_imu/pybind_imu.cpp"
|
||||
},
|
||||
{
|
||||
"directory": "/home/allenyuan/balance/build",
|
||||
"command": "/usr/bin/aarch64-linux-gnu-g++ -Dimu_py_EXPORTS -I/home/allenyuan/balance/pybind_imu/.. -isystem /home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include -isystem /usr/include/python3.10 -g -fPIC -fvisibility=hidden -std=gnu++17 -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o -c /home/allenyuan/balance/dm_imu/imu_driver.cpp",
|
||||
"file": "/home/allenyuan/balance/dm_imu/imu_driver.cpp"
|
||||
},
|
||||
{
|
||||
"directory": "/home/allenyuan/balance/build",
|
||||
"command": "/usr/bin/aarch64-linux-gnu-g++ -Dimu_py_EXPORTS -I/home/allenyuan/balance/pybind_imu/.. -isystem /home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include -isystem /usr/include/python3.10 -g -fPIC -fvisibility=hidden -std=gnu++17 -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o -c /home/allenyuan/balance/dm_imu/bsp_crc.cpp",
|
||||
"file": "/home/allenyuan/balance/dm_imu/bsp_crc.cpp"
|
||||
}
|
||||
]
|
||||
73
dm_imu/bsp_crc.cpp
Normal file
73
dm_imu/bsp_crc.cpp
Normal file
@@ -0,0 +1,73 @@
|
||||
#include "bsp_crc.h"
|
||||
|
||||
const uint8_t CRC8_table[256] =
|
||||
{
|
||||
0x00, 0x5e, 0xbc, 0xe2, 0x61, 0x3f, 0xdd, 0x83, 0xc2, 0x9c, 0x7e, 0x20, 0xa3, 0xfd, 0x1f, 0x41,
|
||||
0x9d, 0xc3, 0x21, 0x7f, 0xfc, 0xa2, 0x40, 0x1e, 0x5f, 0x01, 0xe3, 0xbd, 0x3e, 0x60, 0x82, 0xdc,
|
||||
0x23, 0x7d, 0x9f, 0xc1, 0x42, 0x1c, 0xfe, 0xa0, 0xe1, 0xbf, 0x5d, 0x03, 0x80, 0xde, 0x3c, 0x62,
|
||||
0xbe, 0xe0, 0x02, 0x5c, 0xdf, 0x81, 0x63, 0x3d, 0x7c, 0x22, 0xc0, 0x9e, 0x1d, 0x43, 0xa1, 0xff,
|
||||
0x46, 0x18, 0xfa, 0xa4, 0x27, 0x79, 0x9b, 0xc5, 0x84, 0xda, 0x38, 0x66, 0xe5, 0xbb, 0x59, 0x07,
|
||||
0xdb, 0x85, 0x67, 0x39, 0xba, 0xe4, 0x06, 0x58, 0x19, 0x47, 0xa5, 0xfb, 0x78, 0x26, 0xc4, 0x9a,
|
||||
0x65, 0x3b, 0xd9, 0x87, 0x04, 0x5a, 0xb8, 0xe6, 0xa7, 0xf9, 0x1b, 0x45, 0xc6, 0x98, 0x7a, 0x24,
|
||||
0xf8, 0xa6, 0x44, 0x1a, 0x99, 0xc7, 0x25, 0x7b, 0x3a, 0x64, 0x86, 0xd8, 0x5b, 0x05, 0xe7, 0xb9,
|
||||
0x8c, 0xd2, 0x30, 0x6e, 0xed, 0xb3, 0x51, 0x0f, 0x4e, 0x10, 0xf2, 0xac, 0x2f, 0x71, 0x93, 0xcd,
|
||||
0x11, 0x4f, 0xad, 0xf3, 0x70, 0x2e, 0xcc, 0x92, 0xd3, 0x8d, 0x6f, 0x31, 0xb2, 0xec, 0x0e, 0x50,
|
||||
0xaf, 0xf1, 0x13, 0x4d, 0xce, 0x90, 0x72, 0x2c, 0x6d, 0x33, 0xd1, 0x8f, 0x0c, 0x52, 0xb0, 0xee,
|
||||
0x32, 0x6c, 0x8e, 0xd0, 0x53, 0x0d, 0xef, 0xb1, 0xf0, 0xae, 0x4c, 0x12, 0x91, 0xcf, 0x2d, 0x73,
|
||||
0xca, 0x94, 0x76, 0x28, 0xab, 0xf5, 0x17, 0x49, 0x08, 0x56, 0xb4, 0xea, 0x69, 0x37, 0xd5, 0x8b,
|
||||
0x57, 0x09, 0xeb, 0xb5, 0x36, 0x68, 0x8a, 0xd4, 0x95, 0xcb, 0x29, 0x77, 0xf4, 0xaa, 0x48, 0x16,
|
||||
0xe9, 0xb7, 0x55, 0x0b, 0x88, 0xd6, 0x34, 0x6a, 0x2b, 0x75, 0x97, 0xc9, 0x4a, 0x14, 0xf6, 0xa8,
|
||||
0x74, 0x2a, 0xc8, 0x96, 0x15, 0x4b, 0xa9, 0xf7, 0xb6, 0xe8, 0x0a, 0x54, 0xd7, 0x89, 0x6b, 0x35,
|
||||
};
|
||||
|
||||
const uint16_t CRC16_table[256] =
|
||||
{
|
||||
0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50A5, 0x60C6, 0x70E7, 0x8108, 0x9129, 0xA14A, 0xB16B, 0xC18C, 0xD1AD, 0xE1CE, 0xF1EF,
|
||||
0x1231, 0x0210, 0x3273, 0x2252, 0x52B5, 0x4294, 0x72F7, 0x62D6, 0x9339, 0x8318, 0xB37B, 0xA35A, 0xD3BD, 0xC39C, 0xF3FF, 0xE3DE,
|
||||
0x2462, 0x3443, 0x0420, 0x1401, 0x64E6, 0x74C7, 0x44A4, 0x5485, 0xA56A, 0xB54B, 0x8528, 0x9509, 0xE5EE, 0xF5CF, 0xC5AC, 0xD58D,
|
||||
0x3653, 0x2672, 0x1611, 0x0630, 0x76D7, 0x66F6, 0x5695, 0x46B4, 0xB75B, 0xA77A, 0x9719, 0x8738, 0xF7DF, 0xE7FE, 0xD79D, 0xC7BC,
|
||||
0x48C4, 0x58E5, 0x6886, 0x78A7, 0x0840, 0x1861, 0x2802, 0x3823, 0xC9CC, 0xD9ED, 0xE98E, 0xF9AF, 0x8948, 0x9969, 0xA90A, 0xB92B,
|
||||
0x5AF5, 0x4AD4, 0x7AB7, 0x6A96, 0x1A71, 0x0A50, 0x3A33, 0x2A12, 0xDBFD, 0xCBDC, 0xFBBF, 0xEB9E, 0x9B79, 0x8B58, 0xBB3B, 0xAB1A,
|
||||
0x6CA6, 0x7C87, 0x4CE4, 0x5CC5, 0x2C22, 0x3C03, 0x0C60, 0x1C41, 0xEDAE, 0xFD8F, 0xCDEC, 0xDDCD, 0xAD2A, 0xBD0B, 0x8D68, 0x9D49,
|
||||
0x7E97, 0x6EB6, 0x5ED5, 0x4EF4, 0x3E13, 0x2E32, 0x1E51, 0x0E70, 0xFF9F, 0xEFBE, 0xDFDD, 0xCFFC, 0xBF1B, 0xAF3A, 0x9F59, 0x8F78,
|
||||
0x9188, 0x81A9, 0xB1CA, 0xA1EB, 0xD10C, 0xC12D, 0xF14E, 0xE16F, 0x1080, 0x00A1, 0x30C2, 0x20E3, 0x5004, 0x4025, 0x7046, 0x6067,
|
||||
0x83B9, 0x9398, 0xA3FB, 0xB3DA, 0xC33D, 0xD31C, 0xE37F, 0xF35E, 0x02B1, 0x1290, 0x22F3, 0x32D2, 0x4235, 0x5214, 0x6277, 0x7256,
|
||||
0xB5EA, 0xA5CB, 0x95A8, 0x8589, 0xF56E, 0xE54F, 0xD52C, 0xC50D, 0x34E2, 0x24C3, 0x14A0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405,
|
||||
0xA7DB, 0xB7FA, 0x8799, 0x97B8, 0xE75F, 0xF77E, 0xC71D, 0xD73C, 0x26D3, 0x36F2, 0x0691, 0x16B0, 0x6657, 0x7676, 0x4615, 0x5634,
|
||||
0xD94C, 0xC96D, 0xF90E, 0xE92F, 0x99C8, 0x89E9, 0xB98A, 0xA9AB, 0x5844, 0x4865, 0x7806, 0x6827, 0x18C0, 0x08E1, 0x3882, 0x28A3,
|
||||
0xCB7D, 0xDB5C, 0xEB3F, 0xFB1E, 0x8BF9, 0x9BD8, 0xABBB, 0xBB9A, 0x4A75, 0x5A54, 0x6A37, 0x7A16, 0x0AF1, 0x1AD0, 0x2AB3, 0x3A92,
|
||||
0xFD2E, 0xED0F, 0xDD6C, 0xCD4D, 0xBDAA, 0xAD8B, 0x9DE8, 0x8DC9, 0x7C26, 0x6C07, 0x5C64, 0x4C45, 0x3CA2, 0x2C83, 0x1CE0, 0x0CC1,
|
||||
0xEF1F, 0xFF3E, 0xCF5D, 0xDF7C, 0xAF9B, 0xBFBA, 0x8FD9, 0x9FF8, 0x6E17, 0x7E36, 0x4E55, 0x5E74, 0x2E93, 0x3EB2, 0x0ED1, 0x1EF0
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @brief 计算CRC8
|
||||
* @param[in] ess_value: crc初始值
|
||||
* @param[in] ptr: 数据指针
|
||||
* @param[in] len: 校验长度
|
||||
* @retval CRC-8值
|
||||
*/
|
||||
uint8_t Get_CRC8(uint8_t init_value ,uint8_t *ptr, uint8_t len)
|
||||
{
|
||||
uint8_t uc_index;
|
||||
uint8_t ucCRC8 = init_value;
|
||||
while (len--)
|
||||
{
|
||||
uc_index = ucCRC8^(*ptr++);
|
||||
ucCRC8 = CRC8_table[uc_index];
|
||||
}
|
||||
return(ucCRC8);
|
||||
}
|
||||
|
||||
uint16_t Get_CRC16(uint8_t *ptr, uint16_t len)
|
||||
{
|
||||
// ISO/IEC 13239 的初始值
|
||||
uint16_t crc = 0xFFFF;
|
||||
for (size_t i = 0; i < len; ++i)
|
||||
{
|
||||
uint8_t index = (crc >> 8 ^ ptr[i]);
|
||||
crc = ((crc << 1) ^ CRC16_table[index]);
|
||||
}
|
||||
return crc;
|
||||
}
|
||||
10
dm_imu/bsp_crc.h
Normal file
10
dm_imu/bsp_crc.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#ifndef __BSP_CRC_H
|
||||
#define __BSP_CRC_H
|
||||
#include <iostream>
|
||||
|
||||
|
||||
uint8_t Get_CRC8(uint8_t init_value ,uint8_t *ptr, uint8_t len);
|
||||
uint16_t Get_CRC16(uint8_t *ptr, uint16_t len);
|
||||
|
||||
|
||||
#endif
|
||||
1001
dm_imu/imu_data.csv
Normal file
1001
dm_imu/imu_data.csv
Normal file
File diff suppressed because it is too large
Load Diff
311
dm_imu/imu_driver.cpp
Normal file
311
dm_imu/imu_driver.cpp
Normal file
@@ -0,0 +1,311 @@
|
||||
#include "imu_driver.h"
|
||||
#include <chrono>
|
||||
#include <iostream>
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
#include <termios.h>
|
||||
|
||||
namespace dmbot_serial
|
||||
{
|
||||
|
||||
DmImu::DmImu(const std::string& port, int baud)
|
||||
: imu_serial_port(port), imu_seial_baud(baud), stop_thread_(false)
|
||||
{
|
||||
// 初始化串口并完成 IMU 配置
|
||||
init_imu_serial();
|
||||
|
||||
// 进入配置模式并初始化 IMU
|
||||
enter_setting_mode();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
||||
turn_on_accel();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
||||
turn_on_gyro();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
||||
turn_on_euler();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
||||
turn_off_quat();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
||||
set_output_1000HZ();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
||||
save_imu_para();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
|
||||
exit_setting_mode();
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||
}
|
||||
|
||||
DmImu::~DmImu()
|
||||
{
|
||||
stop();
|
||||
if (serial_fd >= 0)
|
||||
{
|
||||
close(serial_fd);
|
||||
serial_fd = -1;
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------
|
||||
// Public API
|
||||
// -------------------------------
|
||||
bool DmImu::start()
|
||||
{
|
||||
if (rec_thread.joinable())
|
||||
{
|
||||
// 已经在运行
|
||||
return true;
|
||||
}
|
||||
|
||||
// 确保串口已打开
|
||||
if (serial_fd < 0)
|
||||
{
|
||||
init_imu_serial();
|
||||
}
|
||||
|
||||
stop_thread_ = false;
|
||||
rec_thread = std::thread(&DmImu::get_imu_data_thread, this);
|
||||
return true;
|
||||
}
|
||||
|
||||
void DmImu::stop()
|
||||
{
|
||||
stop_thread_ = true;
|
||||
if (rec_thread.joinable())
|
||||
{
|
||||
rec_thread.join();
|
||||
}
|
||||
if (serial_fd >= 0)
|
||||
{
|
||||
close(serial_fd);
|
||||
serial_fd = -1;
|
||||
}
|
||||
}
|
||||
|
||||
IMU_Data DmImu::getData() const
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(data_mutex);
|
||||
return data;
|
||||
}
|
||||
|
||||
// -------------------------------
|
||||
// Private implementation
|
||||
// -------------------------------
|
||||
void DmImu::init_imu_serial()
|
||||
{
|
||||
// 打开串口
|
||||
serial_fd = open(imu_serial_port.c_str(), O_RDWR | O_NOCTTY | O_SYNC);
|
||||
if (serial_fd < 0)
|
||||
{
|
||||
std::cerr << "Failed to open IMU serial port: " << imu_serial_port << std::endl;
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// 配置波特率和串口属性
|
||||
struct termios tty;
|
||||
if (tcgetattr(serial_fd, &tty) != 0)
|
||||
{
|
||||
std::cerr << "Error from tcgetattr" << std::endl;
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
// 设置波特率
|
||||
speed_t speed;
|
||||
switch (imu_seial_baud)
|
||||
{
|
||||
case 115200: speed = B115200; break;
|
||||
case 230400: speed = B230400; break;
|
||||
case 460800: speed = B460800; break;
|
||||
case 921600: speed = B921600; break;
|
||||
default:
|
||||
std::cerr << "Unsupported baud rate: " << imu_seial_baud << std::endl;
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
cfsetospeed(&tty, speed);
|
||||
cfsetispeed(&tty, speed);
|
||||
|
||||
// 8N1, 无硬件流控制
|
||||
tty.c_cflag = (tty.c_cflag & ~CSIZE) | CS8; // 8 位字符
|
||||
tty.c_iflag &= ~IGNBRK; // 禁用 BREAK 处理
|
||||
tty.c_lflag = 0; // 无信号字符、回显、规范模式
|
||||
tty.c_oflag = 0; // 原始输出
|
||||
tty.c_cc[VMIN] = 0; // 读取不阻塞
|
||||
tty.c_cc[VTIME] = 5; // 0.5 秒读取超时
|
||||
|
||||
tty.c_cflag |= (CLOCAL | CREAD); // 忽略调制解调器控制线,启用接收
|
||||
tty.c_cflag &= ~(PARENB | PARODD); // 无奇偶校验
|
||||
tty.c_cflag &= ~CSTOPB; // 1 位停止位
|
||||
tty.c_cflag &= ~CRTSCTS; // 无硬件流控制
|
||||
|
||||
if (tcsetattr(serial_fd, TCSANOW, &tty) != 0)
|
||||
{
|
||||
std::cerr << "Error from tcsetattr" << std::endl;
|
||||
std::exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
std::cout << "IMU serial port opened successfully." << std::endl;
|
||||
}
|
||||
|
||||
// -------------------------------
|
||||
// 配置指令(与原始 ROS 代码保持一致,仅去掉 ros::Duration)
|
||||
// -------------------------------
|
||||
void DmImu::enter_setting_mode()
|
||||
{
|
||||
uint8_t txbuf[4] = {0xAA, 0x06, 0x01, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
void DmImu::turn_on_accel()
|
||||
{
|
||||
uint8_t txbuf[4] = {0xAA, 0x01, 0x14, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
void DmImu::turn_on_gyro()
|
||||
{
|
||||
uint8_t txbuf[4] = {0xAA, 0x01, 0x15, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
void DmImu::turn_on_euler()
|
||||
{
|
||||
uint8_t txbuf[4] = {0xAA, 0x01, 0x16, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
void DmImu::turn_off_quat()
|
||||
{
|
||||
uint8_t txbuf[4] = {0xAA, 0x01, 0x07, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
void DmImu::set_output_1000HZ()
|
||||
{
|
||||
uint8_t txbuf[5] = {0xAA, 0x02, 0x01, 0x00, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
void DmImu::save_imu_para()
|
||||
{
|
||||
uint8_t txbuf[4] = {0xAA, 0x03, 0x01, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
void DmImu::exit_setting_mode()
|
||||
{
|
||||
uint8_t txbuf[4] = {0xAA, 0x06, 0x00, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
void DmImu::restart_imu()
|
||||
{
|
||||
uint8_t txbuf[4] = {0xAA, 0x00, 0x00, 0x0D};
|
||||
for (int i = 0; i < 5; ++i)
|
||||
{
|
||||
write(serial_fd, txbuf, sizeof(txbuf));
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------
|
||||
// 数据采集线程
|
||||
// -------------------------------
|
||||
void DmImu::get_imu_data_thread()
|
||||
{
|
||||
int error_num = 0;
|
||||
while (!stop_thread_)
|
||||
{
|
||||
if (serial_fd < 0)
|
||||
{
|
||||
std::cerr << "IMU serial port not open in data thread." << std::endl;
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
continue;
|
||||
}
|
||||
|
||||
// 读取完整帧(共 57 字节)
|
||||
ssize_t len = read(serial_fd, &receive_data, sizeof(receive_data));
|
||||
if (len != static_cast<ssize_t>(sizeof(receive_data)))
|
||||
{
|
||||
++error_num;
|
||||
continue;
|
||||
}
|
||||
|
||||
// 验证帧头
|
||||
if (receive_data.FrameHeader1 == 0x55 && receive_data.flag1 == 0xAA &&
|
||||
receive_data.slave_id1 == 0x01 && receive_data.reg_acc == 0x01)
|
||||
{
|
||||
// CRC 校验并提取数据
|
||||
if (Get_CRC16(reinterpret_cast<uint8_t*>(&receive_data.FrameHeader1), 16) == receive_data.crc1)
|
||||
{
|
||||
data.accx = *reinterpret_cast<float*>(&receive_data.accx_u32);
|
||||
data.accy = *reinterpret_cast<float*>(&receive_data.accy_u32);
|
||||
data.accz = *reinterpret_cast<float*>(&receive_data.accz_u32);
|
||||
}
|
||||
if (Get_CRC16(reinterpret_cast<uint8_t*>(&receive_data.FrameHeader2), 16) == receive_data.crc2)
|
||||
{
|
||||
data.gyrox = *reinterpret_cast<float*>(&receive_data.gyrox_u32);
|
||||
data.gyroy = *reinterpret_cast<float*>(&receive_data.gyroy_u32);
|
||||
data.gyroz = *reinterpret_cast<float*>(&receive_data.gyroz_u32);
|
||||
}
|
||||
if (Get_CRC16(reinterpret_cast<uint8_t*>(&receive_data.FrameHeader3), 16) == receive_data.crc3)
|
||||
{
|
||||
data.roll = *reinterpret_cast<float*>(&receive_data.roll_u32);
|
||||
data.pitch = *reinterpret_cast<float*>(&receive_data.pitch_u32);
|
||||
data.yaw = *reinterpret_cast<float*>(&receive_data.yaw_u32);
|
||||
}
|
||||
|
||||
// 线程安全更新共享数据
|
||||
{
|
||||
std::lock_guard<std::mutex> lock(data_mutex);
|
||||
// data 已在上面更新,无需额外操作
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
++error_num;
|
||||
if (error_num > 1200)
|
||||
{
|
||||
std::cerr << "Failed to find correct IMU frame header (0x55)." << std::endl;
|
||||
error_num = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
103
dm_imu/imu_driver.h
Normal file
103
dm_imu/imu_driver.h
Normal file
@@ -0,0 +1,103 @@
|
||||
#ifndef _IMU_DRIVER_H_
|
||||
#define _IMU_DRIVER_H_
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#include <initializer_list>
|
||||
#include <fstream>
|
||||
#include <array>
|
||||
#include <mutex>
|
||||
#include <atomic>
|
||||
#include <math.h>
|
||||
#include "bsp_crc.h"
|
||||
|
||||
namespace dmbot_serial
|
||||
{
|
||||
#pragma pack(1)
|
||||
typedef struct
|
||||
{
|
||||
uint8_t FrameHeader1;
|
||||
uint8_t flag1;
|
||||
uint8_t slave_id1;
|
||||
uint8_t reg_acc;
|
||||
uint32_t accx_u32;
|
||||
uint32_t accy_u32;
|
||||
uint32_t accz_u32;
|
||||
uint16_t crc1;
|
||||
uint8_t FrameEnd1;
|
||||
|
||||
uint8_t FrameHeader2;
|
||||
uint8_t flag2;
|
||||
uint8_t slave_id2;
|
||||
uint8_t reg_gyro;
|
||||
uint32_t gyrox_u32;
|
||||
uint32_t gyroy_u32;
|
||||
uint32_t gyroz_u32;
|
||||
uint16_t crc2;
|
||||
uint8_t FrameEnd2;
|
||||
|
||||
uint8_t FrameHeader3;
|
||||
uint8_t flag3;
|
||||
uint8_t slave_id3;
|
||||
uint8_t reg_euler; // r-p-y
|
||||
uint32_t roll_u32;
|
||||
uint32_t pitch_u32;
|
||||
uint32_t yaw_u32;
|
||||
uint16_t crc3;
|
||||
uint8_t FrameEnd3;
|
||||
} IMU_Receive_Frame;
|
||||
#pragma pack()
|
||||
|
||||
typedef struct
|
||||
{
|
||||
float accx;
|
||||
float accy;
|
||||
float accz;
|
||||
float gyrox;
|
||||
float gyroy;
|
||||
float gyroz;
|
||||
float roll;
|
||||
float pitch;
|
||||
float yaw;
|
||||
} IMU_Data;
|
||||
|
||||
class DmImu
|
||||
{
|
||||
public:
|
||||
DmImu(const std::string& port = "/dev/ttyACM1", int baud = 921600);
|
||||
~DmImu();
|
||||
|
||||
// Start data acquisition thread; returns true on success
|
||||
bool start();
|
||||
// Stop acquisition and close serial port
|
||||
void stop();
|
||||
|
||||
// Get latest IMU data (thread‑safe copy)
|
||||
IMU_Data getData() const;
|
||||
|
||||
private:
|
||||
void init_imu_serial();
|
||||
void get_imu_data_thread();
|
||||
|
||||
void enter_setting_mode();
|
||||
void turn_on_accel();
|
||||
void turn_on_gyro();
|
||||
void turn_on_euler();
|
||||
void turn_off_quat();
|
||||
void set_output_1000HZ();
|
||||
void save_imu_para();
|
||||
void exit_setting_mode();
|
||||
void restart_imu();
|
||||
|
||||
int imu_seial_baud;
|
||||
std::string imu_serial_port;
|
||||
int serial_fd = -1;
|
||||
std::thread rec_thread;
|
||||
mutable std::mutex data_mutex;
|
||||
bool stop_thread_ = false;
|
||||
|
||||
IMU_Receive_Frame receive_data{};
|
||||
IMU_Data data{};
|
||||
};
|
||||
|
||||
}
|
||||
#endif
|
||||
BIN
dm_imu/imu_plot.png
Normal file
BIN
dm_imu/imu_plot.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 208 KiB |
119
dm_imu/plot_imu.py
Normal file
119
dm_imu/plot_imu.py
Normal file
@@ -0,0 +1,119 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
绘制 dm_imu/test_imu.cpp 生成的 CSV 数据。
|
||||
|
||||
使用方式:
|
||||
1. 确保已安装 matplotlib(pip install matplotlib)。
|
||||
2. 运行 C++ 程序生成 imu_data.csv。
|
||||
3. 执行本脚本:
|
||||
python3 dm_imu/plot_imu.py
|
||||
4. 脚本会在同目录下生成 `imu_plot.png` 并显示图形窗口(如果有可视化环境)。
|
||||
"""
|
||||
|
||||
import csv
|
||||
import os
|
||||
import sys
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
def read_csv(csv_path):
|
||||
"""读取 CSV,返回每列的数据列表。"""
|
||||
if not os.path.isfile(csv_path):
|
||||
print(f"错误:未找到 CSV 文件 {csv_path}", file=sys.stderr)
|
||||
sys.exit(1)
|
||||
|
||||
indices = []
|
||||
roll = []
|
||||
pitch = []
|
||||
yaw = []
|
||||
accx = []
|
||||
accy = []
|
||||
accz = []
|
||||
gyrox = []
|
||||
gyroy = []
|
||||
gyroz = []
|
||||
|
||||
with open(csv_path, newline='') as f:
|
||||
reader = csv.DictReader(f)
|
||||
for row in reader:
|
||||
indices.append(int(row['index']))
|
||||
roll.append(float(row['roll']))
|
||||
pitch.append(float(row['pitch']))
|
||||
yaw.append(float(row['yaw']))
|
||||
accx.append(float(row['accx']))
|
||||
accy.append(float(row['accy']))
|
||||
accz.append(float(row['accz']))
|
||||
gyrox.append(float(row['gyrox']))
|
||||
gyroy.append(float(row['gyroy']))
|
||||
gyroz.append(float(row['gyroz']))
|
||||
|
||||
return {
|
||||
'index': indices,
|
||||
'roll': roll,
|
||||
'pitch': pitch,
|
||||
'yaw': yaw,
|
||||
'accx': accx,
|
||||
'accy': accy,
|
||||
'accz': accz,
|
||||
'gyrox': gyrox,
|
||||
'gyroy': gyroy,
|
||||
'gyroz': gyroz,
|
||||
}
|
||||
|
||||
def plot_data(data, out_path):
|
||||
"""绘制三组曲线(姿态、加速度、陀螺仪)并保存为 PNG。"""
|
||||
idx = data['index']
|
||||
|
||||
plt.figure(figsize=(12, 9))
|
||||
|
||||
# 1. 姿态(Roll, Pitch, Yaw)
|
||||
ax1 = plt.subplot(3, 1, 1)
|
||||
ax1.plot(idx, data['roll'], label='Roll')
|
||||
ax1.plot(idx, data['pitch'], label='Pitch')
|
||||
ax1.plot(idx, data['yaw'], label='Yaw')
|
||||
ax1.set_ylabel('Angle (°)')
|
||||
ax1.set_title('IMU 姿态')
|
||||
ax1.legend()
|
||||
ax1.grid(True)
|
||||
|
||||
# 2. 加速度(X, Y, Z)
|
||||
ax2 = plt.subplot(3, 1, 2)
|
||||
ax2.plot(idx, data['accx'], label='Acc X')
|
||||
ax2.plot(idx, data['accy'], label='Acc Y')
|
||||
ax2.plot(idx, data['accz'], label='Acc Z')
|
||||
ax2.set_ylabel('Acceleration (g)')
|
||||
ax2.set_title('加速度')
|
||||
ax2.legend()
|
||||
ax2.grid(True)
|
||||
|
||||
# 3. 陀螺仪(X, Y, Z)
|
||||
ax3 = plt.subplot(3, 1, 3)
|
||||
ax3.plot(idx, data['gyrox'], label='Gyro X')
|
||||
ax3.plot(idx, data['gyroy'], label='Gyro Y')
|
||||
ax3.plot(idx, data['gyroz'], label='Gyro Z')
|
||||
ax3.set_xlabel('Sample Index')
|
||||
ax3.set_ylabel('Angular Velocity (°/s)')
|
||||
ax3.set_title('陀螺仪')
|
||||
ax3.legend()
|
||||
ax3.grid(True)
|
||||
|
||||
plt.tight_layout()
|
||||
plt.savefig(out_path)
|
||||
print(f"绘图已保存至 {out_path}")
|
||||
|
||||
# 如果当前环境支持图形界面,显示窗口
|
||||
try:
|
||||
plt.show()
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
def main():
|
||||
script_dir = os.path.dirname(os.path.abspath(__file__))
|
||||
csv_path = os.path.join(script_dir, 'imu_data.csv')
|
||||
out_path = os.path.join(script_dir, 'imu_plot.png')
|
||||
|
||||
data = read_csv(csv_path)
|
||||
plot_data(data, out_path)
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
52
dm_imu/test_imu.cpp
Normal file
52
dm_imu/test_imu.cpp
Normal file
@@ -0,0 +1,52 @@
|
||||
#include "imu_driver.h"
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#include <chrono>
|
||||
#include <fstream>
|
||||
|
||||
int main()
|
||||
{
|
||||
// 根据实际设备路径与波特率创建 IMU 对象
|
||||
dmbot_serial::DmImu imu("/dev/ttyACM0", 921600);
|
||||
|
||||
// 启动采集线程
|
||||
if (!imu.start())
|
||||
{
|
||||
std::cerr << "Failed to start IMU driver." << std::endl;
|
||||
return 1;
|
||||
}
|
||||
|
||||
// 打开 CSV 文件用于保存数据
|
||||
std::ofstream csvFile("dm_imu/imu_data.csv");
|
||||
csvFile << "index,roll,pitch,yaw,accx,accy,accz,gyrox,gyroy,gyroz\n";
|
||||
|
||||
// 示例:读取 1000 次数据(约 10 秒,100 Hz)
|
||||
for (int i = 0; i < 1000; ++i)
|
||||
{
|
||||
dmbot_serial::IMU_Data data = imu.getData();
|
||||
|
||||
std::cout << "Roll: " << data.roll << " Pitch: " << data.pitch
|
||||
<< " Yaw: " << data.yaw << std::endl;
|
||||
std::cout << "Acc : [" << data.accx << ", " << data.accy << ", " << data.accz << "]"
|
||||
<< std::endl;
|
||||
std::cout << "Gyro : [" << data.gyrox << ", " << data.gyroy << ", " << data.gyroz << "]"
|
||||
<< std::endl;
|
||||
std::cout << "----------------------------------------" << std::endl;
|
||||
|
||||
// 写入 CSV
|
||||
csvFile << i << ',' << data.roll << ',' << data.pitch << ',' << data.yaw << ','
|
||||
<< data.accx << ',' << data.accy << ',' << data.accz << ','
|
||||
<< data.gyrox << ',' << data.gyroy << ',' << data.gyroz << '\n';
|
||||
|
||||
// 10 ms 间隔(约 100 Hz)
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
|
||||
csvFile.close();
|
||||
|
||||
// 停止采集并关闭串口
|
||||
imu.stop();
|
||||
std::system("python3 dm_imu/plot_imu.py");
|
||||
|
||||
return 0;
|
||||
}
|
||||
1001
imu_data.csv
Normal file
1001
imu_data.csv
Normal file
File diff suppressed because it is too large
Load Diff
24
pybind_imu/CMakeLists.txt
Normal file
24
pybind_imu/CMakeLists.txt
Normal file
@@ -0,0 +1,24 @@
|
||||
cmake_minimum_required(VERSION 3.14)
|
||||
project(imu_py LANGUAGES CXX)
|
||||
|
||||
# 使用 C++17
|
||||
set(CMAKE_CXX_STANDARD 17)
|
||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||
|
||||
# 查找 pybind11(已通过 pip 安装)
|
||||
# 添加 CMake 前缀路径,使 CMake 能找到 pybind11 的配置文件
|
||||
set(CMAKE_PREFIX_PATH "/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake" ${CMAKE_PREFIX_PATH})
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include
|
||||
)
|
||||
|
||||
find_package(pybind11 REQUIRED)
|
||||
|
||||
pybind11_add_module(imu_py
|
||||
pybind_imu.cpp
|
||||
../dm_imu/imu_driver.cpp
|
||||
../dm_imu/bsp_crc.cpp)
|
||||
|
||||
target_link_libraries(imu_py PRIVATE pthread)
|
||||
113
pybind_imu/README.md
Normal file
113
pybind_imu/README.md
Normal file
@@ -0,0 +1,113 @@
|
||||
# Pybind11 Wrapper for DM‑IMU Driver
|
||||
|
||||
## Overview
|
||||
This project provides a **Python module** that wraps the `DmImu` class from the `dm_imu` driver library using **pybind11**.
|
||||
After building, you obtain a shared object (`imu_py*.so`) that can be imported in Python to control the IMU, start data acquisition, and retrieve sensor readings as a Python `dict`.
|
||||
|
||||
## Prerequisites
|
||||
| Requirement | Version / Notes |
|
||||
|------------|-----------------|
|
||||
| **C++ compiler** | GCC 11 (or newer) |
|
||||
| **CMake** | ≥ 3.14 |
|
||||
| **Python** | 3.8 – 3.12 (the build uses the interpreter found by CMake) |
|
||||
| **pybind11** | Installed via `pip install pybind11` (the package provides the CMake config) |
|
||||
| **Serial port access** | The user must have read/write permission for the device (e.g., `/dev/ttyACM1`). See *Serial Port Permissions* below. |
|
||||
|
||||
## Build Steps
|
||||
```bash
|
||||
# 1. Install pybind11 (if not already installed)
|
||||
pip install --user pybind11
|
||||
|
||||
# 2. Clone / copy this repository (already present in /home/allenyuan/balance)
|
||||
|
||||
# 3. Build the Python extension
|
||||
cd pybind_imu
|
||||
rm -rf build
|
||||
mkdir build && cd build
|
||||
cmake .. # CMake will locate pybind11 automatically
|
||||
make -j$(nproc) # Builds imu_py.cpython-<ver>-<arch>.so
|
||||
```
|
||||
|
||||
The compiled shared library will be placed in `pybind_imu/build/`.
|
||||
|
||||
## Installing the Module (optional)
|
||||
You can copy the generated `.so` file to a location that is on `PYTHONPATH`, for example:
|
||||
|
||||
```bash
|
||||
cp build/imu_py.cpython-310-aarch64-linux-gnu.so ~/.local/lib/python3.10/site-packages/
|
||||
|
||||
cp build/imu_py.cpython-310-aarch64-linux-gnu.so /home/allenyuan/miniconda3/lib/python3.13/site-packages
|
||||
```
|
||||
|
||||
Or simply import it directly from the `build` directory (see the example below).
|
||||
|
||||
## Serial Port Permissions
|
||||
If you encounter the error:
|
||||
|
||||
```
|
||||
Failed to open IMU serial port: /dev/ttyACM1
|
||||
```
|
||||
|
||||
you have two options:
|
||||
|
||||
1. **Run the Python script with sudo** (quick test):
|
||||
```bash
|
||||
sudo python3 example.py
|
||||
```
|
||||
|
||||
2. **Add your user to the dialout group** (recommended):
|
||||
```bash
|
||||
sudo usermod -aG dialout $USER
|
||||
# Log out and log back in for the group change to take effect
|
||||
```
|
||||
|
||||
## Usage from Python
|
||||
```python
|
||||
import pathlib
|
||||
import importlib.util
|
||||
|
||||
# Load the compiled module (adjust the path if you installed it elsewhere)
|
||||
lib_path = pathlib.Path('pybind_imu/build/imu_py.cpython-310-aarch64-linux-gnu.so')
|
||||
spec = importlib.util.spec_from_file_location('imu_py', lib_path)
|
||||
imu_py = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(imu_py)
|
||||
|
||||
# Create an IMU instance (default port and baud rate are shown)
|
||||
imu = imu_py.DmImu('/dev/ttyACM1', 921600)
|
||||
|
||||
# Start data acquisition (spawns a background thread)
|
||||
imu.start()
|
||||
|
||||
# Retrieve a single measurement
|
||||
data = imu.getData()
|
||||
print('IMU data:', data)
|
||||
|
||||
# When finished, stop the thread and close the serial port
|
||||
imu.stop()
|
||||
```
|
||||
|
||||
## Example Program
|
||||
A ready‑to‑run example is provided as `example.py` in this directory. It demonstrates:
|
||||
|
||||
* Loading the module
|
||||
* Starting the driver
|
||||
* Reading data in a loop
|
||||
* Clean shutdown on `KeyboardInterrupt`
|
||||
|
||||
Run it with:
|
||||
|
||||
```bash
|
||||
python3 example.py
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
| Symptom | Likely Cause | Fix |
|
||||
|---------|--------------|-----|
|
||||
| CMake cannot find `pybind11` | `pybind11` not installed or not on `CMAKE_PREFIX_PATH` | `pip install --user pybind11` and ensure `CMAKE_PREFIX_PATH` points to `~/.local/lib/python3.10/site-packages/pybind11/share/cmake` (the CMakeLists already sets this). |
|
||||
| Compilation error: `dm_imu/imu_driver.h: No such file or directory` | Include path wrong | The CMake file uses `include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)` which points to the project root where `dm_imu` resides. |
|
||||
| Runtime: “Failed to open IMU serial port” | No permission on the device | Use `sudo` or add user to `dialout` group (see above). |
|
||||
| Python import error “module not found” | Wrong path to the `.so` file | Adjust `lib_path` in the Python code to point to the actual location of the compiled shared object. |
|
||||
|
||||
---
|
||||
|
||||
**Enjoy!** Feel free to adapt the wrapper for additional driver functionality or integrate it into larger Python applications. If you have any questions, open an issue in the repository or contact the maintainer.
|
||||
367
pybind_imu/build/CMakeCache.txt
Normal file
367
pybind_imu/build/CMakeCache.txt
Normal file
@@ -0,0 +1,367 @@
|
||||
# This is the CMakeCache file.
|
||||
# For build in directory: /home/allenyuan/balance/pybind_imu/build
|
||||
# It was generated by CMake: /usr/bin/cmake
|
||||
# You can edit this file to change values found and used by cmake.
|
||||
# If you do not want to change any of the values, simply exit the editor.
|
||||
# If you do want to change a value, simply edit, save, and exit the editor.
|
||||
# The syntax for the file is as follows:
|
||||
# KEY:TYPE=VALUE
|
||||
# KEY is the name of a variable in the cache.
|
||||
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
|
||||
# VALUE is the current value for the KEY.
|
||||
|
||||
########################
|
||||
# EXTERNAL cache entries
|
||||
########################
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_ADDR2LINE:FILEPATH=/usr/bin/addr2line
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_AR:FILEPATH=/usr/bin/ar
|
||||
|
||||
//Choose the type of build, options are: None Debug Release RelWithDebInfo
|
||||
// MinSizeRel ...
|
||||
CMAKE_BUILD_TYPE:STRING=
|
||||
|
||||
//Enable/Disable color output during build.
|
||||
CMAKE_COLOR_MAKEFILE:BOOL=ON
|
||||
|
||||
//CXX compiler
|
||||
CMAKE_CXX_COMPILER:FILEPATH=/usr/bin/c++
|
||||
|
||||
//A wrapper around 'ar' adding the appropriate '--plugin' option
|
||||
// for the GCC compiler
|
||||
CMAKE_CXX_COMPILER_AR:FILEPATH=/usr/bin/gcc-ar-11
|
||||
|
||||
//A wrapper around 'ranlib' adding the appropriate '--plugin' option
|
||||
// for the GCC compiler
|
||||
CMAKE_CXX_COMPILER_RANLIB:FILEPATH=/usr/bin/gcc-ranlib-11
|
||||
|
||||
//Flags used by the CXX compiler during all build types.
|
||||
CMAKE_CXX_FLAGS:STRING=
|
||||
|
||||
//Flags used by the CXX compiler during DEBUG builds.
|
||||
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
|
||||
|
||||
//Flags used by the CXX compiler during MINSIZEREL builds.
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
|
||||
|
||||
//Flags used by the CXX compiler during RELEASE builds.
|
||||
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
|
||||
|
||||
//Flags used by the CXX compiler during RELWITHDEBINFO builds.
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_DLLTOOL:FILEPATH=CMAKE_DLLTOOL-NOTFOUND
|
||||
|
||||
//Flags used by the linker during all build types.
|
||||
CMAKE_EXE_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during DEBUG builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during MINSIZEREL builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during RELEASE builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during RELWITHDEBINFO builds.
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Enable/Disable output of compile commands during generation.
|
||||
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=
|
||||
|
||||
//Install path prefix, prepended onto install directories.
|
||||
CMAKE_INSTALL_PREFIX:PATH=/usr/local
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_LINKER:FILEPATH=/usr/bin/ld
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/gmake
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// all build types.
|
||||
CMAKE_MODULE_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// DEBUG builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// MINSIZEREL builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// RELEASE builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of modules during
|
||||
// RELWITHDEBINFO builds.
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_NM:FILEPATH=/usr/bin/nm
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_OBJCOPY:FILEPATH=/usr/bin/objcopy
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_OBJDUMP:FILEPATH=/usr/bin/objdump
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_DESCRIPTION:STATIC=
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_HOMEPAGE_URL:STATIC=
|
||||
|
||||
//Value Computed by CMake
|
||||
CMAKE_PROJECT_NAME:STATIC=imu_py
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_RANLIB:FILEPATH=/usr/bin/ranlib
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_READELF:FILEPATH=/usr/bin/readelf
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during all build types.
|
||||
CMAKE_SHARED_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during DEBUG builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during MINSIZEREL builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during RELEASE builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of shared libraries
|
||||
// during RELWITHDEBINFO builds.
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//If set, runtime paths are not added when installing shared libraries,
|
||||
// but are added when building.
|
||||
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
|
||||
|
||||
//If set, runtime paths are not added when using shared libraries.
|
||||
CMAKE_SKIP_RPATH:BOOL=NO
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during all build types.
|
||||
CMAKE_STATIC_LINKER_FLAGS:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during DEBUG builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during MINSIZEREL builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during RELEASE builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
|
||||
|
||||
//Flags used by the linker during the creation of static libraries
|
||||
// during RELWITHDEBINFO builds.
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
|
||||
|
||||
//Path to a program.
|
||||
CMAKE_STRIP:FILEPATH=/usr/bin/strip
|
||||
|
||||
//If this value is on, makefiles will be generated without the
|
||||
// .SILENT directive, and all commands will be echoed to the console
|
||||
// during the make. This is useful for debugging only. With Visual
|
||||
// Studio IDE projects all commands are done without /nologo.
|
||||
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
|
||||
|
||||
//Overwrite cached values read from Python library (classic search).
|
||||
// Turn off if cross-compiling and manually setting these values.
|
||||
PYBIND11_PYTHONLIBS_OVERWRITE:BOOL=ON
|
||||
|
||||
//Python version to use for compiling modules
|
||||
PYBIND11_PYTHON_VERSION:STRING=
|
||||
|
||||
//Path to a program.
|
||||
PYTHON_EXECUTABLE:FILEPATH=/home/allenyuan/miniconda3/envs/stf/bin/python
|
||||
|
||||
//Path to a library.
|
||||
PYTHON_LIBRARY:FILEPATH=/home/allenyuan/miniconda3/envs/stf/lib/libpython3.10.so
|
||||
|
||||
//Value Computed by CMake
|
||||
imu_py_BINARY_DIR:STATIC=/home/allenyuan/balance/pybind_imu/build
|
||||
|
||||
//Value Computed by CMake
|
||||
imu_py_IS_TOP_LEVEL:STATIC=ON
|
||||
|
||||
//Value Computed by CMake
|
||||
imu_py_SOURCE_DIR:STATIC=/home/allenyuan/balance/pybind_imu
|
||||
|
||||
//The directory containing a CMake configuration file for pybind11.
|
||||
pybind11_DIR:PATH=/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11
|
||||
|
||||
|
||||
########################
|
||||
# INTERNAL cache entries
|
||||
########################
|
||||
|
||||
//ADVANCED property for variable: CMAKE_ADDR2LINE
|
||||
CMAKE_ADDR2LINE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_AR
|
||||
CMAKE_AR-ADVANCED:INTERNAL=1
|
||||
//This is the directory where this CMakeCache.txt was created
|
||||
CMAKE_CACHEFILE_DIR:INTERNAL=/home/allenyuan/balance/pybind_imu/build
|
||||
//Major version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
|
||||
//Minor version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_MINOR_VERSION:INTERNAL=22
|
||||
//Patch version of cmake used to create the current loaded cache
|
||||
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
|
||||
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Path to CMake executable.
|
||||
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
|
||||
//Path to cpack program executable.
|
||||
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
|
||||
//Path to ctest program executable.
|
||||
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER
|
||||
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER_AR
|
||||
CMAKE_CXX_COMPILER_AR-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_COMPILER_RANLIB
|
||||
CMAKE_CXX_COMPILER_RANLIB-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS
|
||||
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
|
||||
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
|
||||
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
|
||||
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_DLLTOOL
|
||||
CMAKE_DLLTOOL-ADVANCED:INTERNAL=1
|
||||
//Executable file format
|
||||
CMAKE_EXECUTABLE_FORMAT:INTERNAL=ELF
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
|
||||
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
|
||||
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
|
||||
//Name of external makefile project generator.
|
||||
CMAKE_EXTRA_GENERATOR:INTERNAL=
|
||||
//Name of generator.
|
||||
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
|
||||
//Generator instance identifier.
|
||||
CMAKE_GENERATOR_INSTANCE:INTERNAL=
|
||||
//Name of generator platform.
|
||||
CMAKE_GENERATOR_PLATFORM:INTERNAL=
|
||||
//Name of generator toolset.
|
||||
CMAKE_GENERATOR_TOOLSET:INTERNAL=
|
||||
//Source directory with the top level CMakeLists.txt file for this
|
||||
// project
|
||||
CMAKE_HOME_DIRECTORY:INTERNAL=/home/allenyuan/balance/pybind_imu
|
||||
//Install .so files without execute permission.
|
||||
CMAKE_INSTALL_SO_NO_EXE:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_LINKER
|
||||
CMAKE_LINKER-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
|
||||
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
|
||||
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
|
||||
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_NM
|
||||
CMAKE_NM-ADVANCED:INTERNAL=1
|
||||
//number of local generators
|
||||
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_OBJCOPY
|
||||
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_OBJDUMP
|
||||
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
|
||||
//Platform information initialized
|
||||
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_RANLIB
|
||||
CMAKE_RANLIB-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_READELF
|
||||
CMAKE_READELF-ADVANCED:INTERNAL=1
|
||||
//Path to CMake installation.
|
||||
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.22
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
|
||||
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
|
||||
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
|
||||
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_SKIP_RPATH
|
||||
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
|
||||
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
|
||||
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
|
||||
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
|
||||
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
|
||||
//ADVANCED property for variable: CMAKE_STRIP
|
||||
CMAKE_STRIP-ADVANCED:INTERNAL=1
|
||||
//uname command
|
||||
CMAKE_UNAME:INTERNAL=/usr/bin/uname
|
||||
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
|
||||
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
|
||||
//Details about finding PYTHON
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_PYTHON:INTERNAL=/home/allenyuan/miniconda3/envs/stf/bin/python3.10.19
|
||||
//Details about finding PythonInterp
|
||||
FIND_PACKAGE_MESSAGE_DETAILS_PythonInterp:INTERNAL=[/home/allenyuan/miniconda3/envs/stf/bin/python][v3.10.19(3.8)]
|
||||
//Test HAS_FLTO_AUTO
|
||||
HAS_FLTO_AUTO:INTERNAL=1
|
||||
//ADVANCED property for variable: PYTHON_EXECUTABLE
|
||||
PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1
|
||||
PYTHON_INCLUDE_DIRS:INTERNAL=/home/allenyuan/miniconda3/envs/stf/include/python3.10
|
||||
PYTHON_IS_DEBUG:INTERNAL=0
|
||||
PYTHON_LIBRARIES:INTERNAL=/home/allenyuan/miniconda3/envs/stf/lib/libpython3.10.so
|
||||
//ADVANCED property for variable: PYTHON_LIBRARY
|
||||
PYTHON_LIBRARY-ADVANCED:INTERNAL=1
|
||||
PYTHON_MODULE_DEBUG_POSTFIX:INTERNAL=
|
||||
PYTHON_MODULE_EXTENSION:INTERNAL=.cpython-310-aarch64-linux-gnu.so
|
||||
PYTHON_MODULE_PREFIX:INTERNAL=
|
||||
PYTHON_VERSION:INTERNAL=3.10.19
|
||||
PYTHON_VERSION_MAJOR:INTERNAL=3
|
||||
PYTHON_VERSION_MINOR:INTERNAL=10
|
||||
Python_ADDITIONAL_VERSIONS:INTERNAL=3.12;3.11;3.10;3.9;3.8
|
||||
_PYBIND11_CROSSCOMPILING:INTERNAL=OFF
|
||||
_Python:INTERNAL=PYTHON
|
||||
//Directories where pybind11 and possibly Python headers are located
|
||||
pybind11_INCLUDE_DIRS:INTERNAL=/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include;/home/allenyuan/miniconda3/envs/stf/include/python3.10
|
||||
|
||||
83
pybind_imu/build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake
Normal file
83
pybind_imu/build/CMakeFiles/3.22.1/CMakeCXXCompiler.cmake
Normal file
@@ -0,0 +1,83 @@
|
||||
set(CMAKE_CXX_COMPILER "/usr/bin/c++")
|
||||
set(CMAKE_CXX_COMPILER_ARG1 "")
|
||||
set(CMAKE_CXX_COMPILER_ID "GNU")
|
||||
set(CMAKE_CXX_COMPILER_VERSION "11.4.0")
|
||||
set(CMAKE_CXX_COMPILER_VERSION_INTERNAL "")
|
||||
set(CMAKE_CXX_COMPILER_WRAPPER "")
|
||||
set(CMAKE_CXX_STANDARD_COMPUTED_DEFAULT "17")
|
||||
set(CMAKE_CXX_EXTENSIONS_COMPUTED_DEFAULT "ON")
|
||||
set(CMAKE_CXX_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters;cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates;cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates;cxx_std_17;cxx_std_20;cxx_std_23")
|
||||
set(CMAKE_CXX98_COMPILE_FEATURES "cxx_std_98;cxx_template_template_parameters")
|
||||
set(CMAKE_CXX11_COMPILE_FEATURES "cxx_std_11;cxx_alias_templates;cxx_alignas;cxx_alignof;cxx_attributes;cxx_auto_type;cxx_constexpr;cxx_decltype;cxx_decltype_incomplete_return_types;cxx_default_function_template_args;cxx_defaulted_functions;cxx_defaulted_move_initializers;cxx_delegating_constructors;cxx_deleted_functions;cxx_enum_forward_declarations;cxx_explicit_conversions;cxx_extended_friend_declarations;cxx_extern_templates;cxx_final;cxx_func_identifier;cxx_generalized_initializers;cxx_inheriting_constructors;cxx_inline_namespaces;cxx_lambdas;cxx_local_type_template_args;cxx_long_long_type;cxx_noexcept;cxx_nonstatic_member_init;cxx_nullptr;cxx_override;cxx_range_for;cxx_raw_string_literals;cxx_reference_qualified_functions;cxx_right_angle_brackets;cxx_rvalue_references;cxx_sizeof_member;cxx_static_assert;cxx_strong_enums;cxx_thread_local;cxx_trailing_return_types;cxx_unicode_literals;cxx_uniform_initialization;cxx_unrestricted_unions;cxx_user_literals;cxx_variadic_macros;cxx_variadic_templates")
|
||||
set(CMAKE_CXX14_COMPILE_FEATURES "cxx_std_14;cxx_aggregate_default_initializers;cxx_attribute_deprecated;cxx_binary_literals;cxx_contextual_conversions;cxx_decltype_auto;cxx_digit_separators;cxx_generic_lambdas;cxx_lambda_init_captures;cxx_relaxed_constexpr;cxx_return_type_deduction;cxx_variable_templates")
|
||||
set(CMAKE_CXX17_COMPILE_FEATURES "cxx_std_17")
|
||||
set(CMAKE_CXX20_COMPILE_FEATURES "cxx_std_20")
|
||||
set(CMAKE_CXX23_COMPILE_FEATURES "cxx_std_23")
|
||||
|
||||
set(CMAKE_CXX_PLATFORM_ID "Linux")
|
||||
set(CMAKE_CXX_SIMULATE_ID "")
|
||||
set(CMAKE_CXX_COMPILER_FRONTEND_VARIANT "")
|
||||
set(CMAKE_CXX_SIMULATE_VERSION "")
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_AR "/usr/bin/ar")
|
||||
set(CMAKE_CXX_COMPILER_AR "/usr/bin/gcc-ar-11")
|
||||
set(CMAKE_RANLIB "/usr/bin/ranlib")
|
||||
set(CMAKE_CXX_COMPILER_RANLIB "/usr/bin/gcc-ranlib-11")
|
||||
set(CMAKE_LINKER "/usr/bin/ld")
|
||||
set(CMAKE_MT "")
|
||||
set(CMAKE_COMPILER_IS_GNUCXX 1)
|
||||
set(CMAKE_CXX_COMPILER_LOADED 1)
|
||||
set(CMAKE_CXX_COMPILER_WORKS TRUE)
|
||||
set(CMAKE_CXX_ABI_COMPILED TRUE)
|
||||
|
||||
set(CMAKE_CXX_COMPILER_ENV_VAR "CXX")
|
||||
|
||||
set(CMAKE_CXX_COMPILER_ID_RUN 1)
|
||||
set(CMAKE_CXX_SOURCE_FILE_EXTENSIONS C;M;c++;cc;cpp;cxx;m;mm;mpp;CPP;ixx;cppm)
|
||||
set(CMAKE_CXX_IGNORE_EXTENSIONS inl;h;hpp;HPP;H;o;O;obj;OBJ;def;DEF;rc;RC)
|
||||
|
||||
foreach (lang C OBJC OBJCXX)
|
||||
if (CMAKE_${lang}_COMPILER_ID_RUN)
|
||||
foreach(extension IN LISTS CMAKE_${lang}_SOURCE_FILE_EXTENSIONS)
|
||||
list(REMOVE_ITEM CMAKE_CXX_SOURCE_FILE_EXTENSIONS ${extension})
|
||||
endforeach()
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
set(CMAKE_CXX_LINKER_PREFERENCE 30)
|
||||
set(CMAKE_CXX_LINKER_PREFERENCE_PROPAGATES 1)
|
||||
|
||||
# Save compiler ABI information.
|
||||
set(CMAKE_CXX_SIZEOF_DATA_PTR "8")
|
||||
set(CMAKE_CXX_COMPILER_ABI "ELF")
|
||||
set(CMAKE_CXX_BYTE_ORDER "LITTLE_ENDIAN")
|
||||
set(CMAKE_CXX_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
|
||||
|
||||
if(CMAKE_CXX_SIZEOF_DATA_PTR)
|
||||
set(CMAKE_SIZEOF_VOID_P "${CMAKE_CXX_SIZEOF_DATA_PTR}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_COMPILER_ABI)
|
||||
set(CMAKE_INTERNAL_PLATFORM_ABI "${CMAKE_CXX_COMPILER_ABI}")
|
||||
endif()
|
||||
|
||||
if(CMAKE_CXX_LIBRARY_ARCHITECTURE)
|
||||
set(CMAKE_LIBRARY_ARCHITECTURE "aarch64-linux-gnu")
|
||||
endif()
|
||||
|
||||
set(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX "")
|
||||
if(CMAKE_CXX_CL_SHOWINCLUDES_PREFIX)
|
||||
set(CMAKE_CL_SHOWINCLUDES_PREFIX "${CMAKE_CXX_CL_SHOWINCLUDES_PREFIX}")
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
set(CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES "/usr/include/c++/11;/usr/include/aarch64-linux-gnu/c++/11;/usr/include/c++/11/backward;/usr/lib/gcc/aarch64-linux-gnu/11/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "stdc++;m;gcc_s;gcc;c;gcc_s;gcc")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES "/usr/lib/gcc/aarch64-linux-gnu/11;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib")
|
||||
set(CMAKE_CXX_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "")
|
||||
Binary file not shown.
15
pybind_imu/build/CMakeFiles/3.22.1/CMakeSystem.cmake
Normal file
15
pybind_imu/build/CMakeFiles/3.22.1/CMakeSystem.cmake
Normal file
@@ -0,0 +1,15 @@
|
||||
set(CMAKE_HOST_SYSTEM "Linux-5.15.148-tegra")
|
||||
set(CMAKE_HOST_SYSTEM_NAME "Linux")
|
||||
set(CMAKE_HOST_SYSTEM_VERSION "5.15.148-tegra")
|
||||
set(CMAKE_HOST_SYSTEM_PROCESSOR "aarch64")
|
||||
|
||||
|
||||
|
||||
set(CMAKE_SYSTEM "Linux-5.15.148-tegra")
|
||||
set(CMAKE_SYSTEM_NAME "Linux")
|
||||
set(CMAKE_SYSTEM_VERSION "5.15.148-tegra")
|
||||
set(CMAKE_SYSTEM_PROCESSOR "aarch64")
|
||||
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
|
||||
set(CMAKE_SYSTEM_LOADED 1)
|
||||
@@ -0,0 +1,791 @@
|
||||
/* This source file must have a .cpp extension so that all C++ compilers
|
||||
recognize the extension without flags. Borland does not know .cxx for
|
||||
example. */
|
||||
#ifndef __cplusplus
|
||||
# error "A C compiler has been selected for C++."
|
||||
#endif
|
||||
|
||||
#if !defined(__has_include)
|
||||
/* If the compiler does not have __has_include, pretend the answer is
|
||||
always no. */
|
||||
# define __has_include(x) 0
|
||||
#endif
|
||||
|
||||
|
||||
/* Version number components: V=Version, R=Revision, P=Patch
|
||||
Version date components: YYYY=Year, MM=Month, DD=Day */
|
||||
|
||||
#if defined(__COMO__)
|
||||
# define COMPILER_ID "Comeau"
|
||||
/* __COMO_VERSION__ = VRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__COMO_VERSION__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__COMO_VERSION__ % 100)
|
||||
|
||||
#elif defined(__INTEL_COMPILER) || defined(__ICC)
|
||||
# define COMPILER_ID "Intel"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
# endif
|
||||
/* __INTEL_COMPILER = VRP prior to 2021, and then VVVV for 2021 and later,
|
||||
except that a few beta releases use the old format with V=2021. */
|
||||
# if __INTEL_COMPILER < 2021 || __INTEL_COMPILER == 202110 || __INTEL_COMPILER == 202111
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER/10 % 10)
|
||||
# if defined(__INTEL_COMPILER_UPDATE)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER_UPDATE)
|
||||
# else
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_COMPILER % 10)
|
||||
# endif
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_COMPILER)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_COMPILER_UPDATE)
|
||||
/* The third version component from --version is an update index,
|
||||
but no macro is provided for it. */
|
||||
# define COMPILER_VERSION_PATCH DEC(0)
|
||||
# endif
|
||||
# if defined(__INTEL_COMPILER_BUILD_DATE)
|
||||
/* __INTEL_COMPILER_BUILD_DATE = YYYYMMDD */
|
||||
# define COMPILER_VERSION_TWEAK DEC(__INTEL_COMPILER_BUILD_DATE)
|
||||
# endif
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
# elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif (defined(__clang__) && defined(__INTEL_CLANG_COMPILER)) || defined(__INTEL_LLVM_COMPILER)
|
||||
# define COMPILER_ID "IntelLLVM"
|
||||
#if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_ID "GNU"
|
||||
#endif
|
||||
/* __INTEL_LLVM_COMPILER = VVVVRP prior to 2021.2.0, VVVVRRPP for 2021.2.0 and
|
||||
* later. Look for 6 digit vs. 8 digit version number to decide encoding.
|
||||
* VVVV is no smaller than the current year when a version is released.
|
||||
*/
|
||||
#if __INTEL_LLVM_COMPILER < 1000000L
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 10)
|
||||
#else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__INTEL_LLVM_COMPILER/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__INTEL_LLVM_COMPILER/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__INTEL_LLVM_COMPILER % 100)
|
||||
#endif
|
||||
#if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
#endif
|
||||
#if defined(__GNUC__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUC__)
|
||||
#elif defined(__GNUG__)
|
||||
# define SIMULATE_VERSION_MAJOR DEC(__GNUG__)
|
||||
#endif
|
||||
#if defined(__GNUC_MINOR__)
|
||||
# define SIMULATE_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
#endif
|
||||
#if defined(__GNUC_PATCHLEVEL__)
|
||||
# define SIMULATE_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
#endif
|
||||
|
||||
#elif defined(__PATHCC__)
|
||||
# define COMPILER_ID "PathScale"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PATHCC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PATHCC_MINOR__)
|
||||
# if defined(__PATHCC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PATHCC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__BORLANDC__) && defined(__CODEGEARC_VERSION__)
|
||||
# define COMPILER_ID "Embarcadero"
|
||||
# define COMPILER_VERSION_MAJOR HEX(__CODEGEARC_VERSION__>>24 & 0x00FF)
|
||||
# define COMPILER_VERSION_MINOR HEX(__CODEGEARC_VERSION__>>16 & 0x00FF)
|
||||
# define COMPILER_VERSION_PATCH DEC(__CODEGEARC_VERSION__ & 0xFFFF)
|
||||
|
||||
#elif defined(__BORLANDC__)
|
||||
# define COMPILER_ID "Borland"
|
||||
/* __BORLANDC__ = 0xVRR */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__BORLANDC__>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__BORLANDC__ & 0xFF)
|
||||
|
||||
#elif defined(__WATCOMC__) && __WATCOMC__ < 1200
|
||||
# define COMPILER_ID "Watcom"
|
||||
/* __WATCOMC__ = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__WATCOMC__ / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# define COMPILER_ID "OpenWatcom"
|
||||
/* __WATCOMC__ = VVRP + 1100 */
|
||||
# define COMPILER_VERSION_MAJOR DEC((__WATCOMC__ - 1100) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__WATCOMC__ / 10) % 10)
|
||||
# if (__WATCOMC__ % 10) > 0
|
||||
# define COMPILER_VERSION_PATCH DEC(__WATCOMC__ % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SUNPRO_CC)
|
||||
# define COMPILER_ID "SunPro"
|
||||
# if __SUNPRO_CC >= 0x5100
|
||||
/* __SUNPRO_CC = 0xVRRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>12)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
|
||||
# else
|
||||
/* __SUNPRO_CC = 0xVRP */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__SUNPRO_CC>>8)
|
||||
# define COMPILER_VERSION_MINOR HEX(__SUNPRO_CC>>4 & 0xF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__SUNPRO_CC & 0xF)
|
||||
# endif
|
||||
|
||||
#elif defined(__HP_aCC)
|
||||
# define COMPILER_ID "HP"
|
||||
/* __HP_aCC = VVRRPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__HP_aCC/10000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__HP_aCC/100 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__HP_aCC % 100)
|
||||
|
||||
#elif defined(__DECCXX)
|
||||
# define COMPILER_ID "Compaq"
|
||||
/* __DECCXX_VER = VVRRTPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__DECCXX_VER/10000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__DECCXX_VER/100000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__DECCXX_VER % 10000)
|
||||
|
||||
#elif defined(__IBMCPP__) && defined(__COMPILER_VER__)
|
||||
# define COMPILER_ID "zOS"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__ibmxl__) && defined(__clang__)
|
||||
# define COMPILER_ID "XLClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ibmxl_version__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ibmxl_release__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ibmxl_modification__)
|
||||
# define COMPILER_VERSION_TWEAK DEC(__ibmxl_ptf_fix_level__)
|
||||
|
||||
|
||||
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ >= 800
|
||||
# define COMPILER_ID "XL"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__IBMCPP__) && !defined(__COMPILER_VER__) && __IBMCPP__ < 800
|
||||
# define COMPILER_ID "VisualAge"
|
||||
/* __IBMCPP__ = VRP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__IBMCPP__/100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__IBMCPP__/10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__IBMCPP__ % 10)
|
||||
|
||||
#elif defined(__NVCOMPILER)
|
||||
# define COMPILER_ID "NVHPC"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__NVCOMPILER_MAJOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__NVCOMPILER_MINOR__)
|
||||
# if defined(__NVCOMPILER_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__NVCOMPILER_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(__PGI)
|
||||
# define COMPILER_ID "PGI"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__PGIC__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__PGIC_MINOR__)
|
||||
# if defined(__PGIC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__PGIC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_CRAYC)
|
||||
# define COMPILER_ID "Cray"
|
||||
# define COMPILER_VERSION_MAJOR DEC(_RELEASE_MAJOR)
|
||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# define COMPILER_ID "TI"
|
||||
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC(__TI_COMPILER_VERSION__ % 1000)
|
||||
|
||||
#elif defined(__CLANG_FUJITSU)
|
||||
# define COMPILER_ID "FujitsuClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# define COMPILER_VERSION_INTERNAL_STR __clang_version__
|
||||
|
||||
|
||||
#elif defined(__FUJITSU)
|
||||
# define COMPILER_ID "Fujitsu"
|
||||
# if defined(__FCC_version__)
|
||||
# define COMPILER_VERSION __FCC_version__
|
||||
# elif defined(__FCC_major__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__FCC_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__FCC_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__FCC_patchlevel__)
|
||||
# endif
|
||||
# if defined(__fcc_version)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__fcc_version)
|
||||
# elif defined(__FCC_VERSION)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__FCC_VERSION)
|
||||
# endif
|
||||
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# define COMPILER_ID "GHS"
|
||||
/* __GHS_VERSION_NUMBER = VVVVRP */
|
||||
# ifdef __GHS_VERSION_NUMBER
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GHS_VERSION_NUMBER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GHS_VERSION_NUMBER / 10 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GHS_VERSION_NUMBER % 10)
|
||||
# endif
|
||||
|
||||
#elif defined(__SCO_VERSION__)
|
||||
# define COMPILER_ID "SCO"
|
||||
|
||||
#elif defined(__ARMCC_VERSION) && !defined(__clang__)
|
||||
# define COMPILER_ID "ARMCC"
|
||||
#if __ARMCC_VERSION >= 1000000
|
||||
/* __ARMCC_VERSION = VRRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#else
|
||||
/* __ARMCC_VERSION = VRPPPP */
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCC_VERSION/100000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCC_VERSION/10000 % 10)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCC_VERSION % 10000)
|
||||
#endif
|
||||
|
||||
|
||||
#elif defined(__clang__) && defined(__apple_build_version__)
|
||||
# define COMPILER_ID "AppleClang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
# define COMPILER_VERSION_TWEAK DEC(__apple_build_version__)
|
||||
|
||||
#elif defined(__clang__) && defined(__ARMCOMPILER_VERSION)
|
||||
# define COMPILER_ID "ARMClang"
|
||||
# define COMPILER_VERSION_MAJOR DEC(__ARMCOMPILER_VERSION/1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(__ARMCOMPILER_VERSION/10000 % 100)
|
||||
# define COMPILER_VERSION_PATCH DEC(__ARMCOMPILER_VERSION % 10000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__ARMCOMPILER_VERSION)
|
||||
|
||||
#elif defined(__clang__)
|
||||
# define COMPILER_ID "Clang"
|
||||
# if defined(_MSC_VER)
|
||||
# define SIMULATE_ID "MSVC"
|
||||
# endif
|
||||
# define COMPILER_VERSION_MAJOR DEC(__clang_major__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__clang_minor__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__clang_patchlevel__)
|
||||
# if defined(_MSC_VER)
|
||||
/* _MSC_VER = VVRR */
|
||||
# define SIMULATE_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define SIMULATE_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# endif
|
||||
|
||||
#elif defined(__GNUC__) || defined(__GNUG__)
|
||||
# define COMPILER_ID "GNU"
|
||||
# if defined(__GNUC__)
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUC__)
|
||||
# else
|
||||
# define COMPILER_VERSION_MAJOR DEC(__GNUG__)
|
||||
# endif
|
||||
# if defined(__GNUC_MINOR__)
|
||||
# define COMPILER_VERSION_MINOR DEC(__GNUC_MINOR__)
|
||||
# endif
|
||||
# if defined(__GNUC_PATCHLEVEL__)
|
||||
# define COMPILER_VERSION_PATCH DEC(__GNUC_PATCHLEVEL__)
|
||||
# endif
|
||||
|
||||
#elif defined(_MSC_VER)
|
||||
# define COMPILER_ID "MSVC"
|
||||
/* _MSC_VER = VVRR */
|
||||
# define COMPILER_VERSION_MAJOR DEC(_MSC_VER / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC(_MSC_VER % 100)
|
||||
# if defined(_MSC_FULL_VER)
|
||||
# if _MSC_VER >= 1400
|
||||
/* _MSC_FULL_VER = VVRRPPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 100000)
|
||||
# else
|
||||
/* _MSC_FULL_VER = VVRRPPPP */
|
||||
# define COMPILER_VERSION_PATCH DEC(_MSC_FULL_VER % 10000)
|
||||
# endif
|
||||
# endif
|
||||
# if defined(_MSC_BUILD)
|
||||
# define COMPILER_VERSION_TWEAK DEC(_MSC_BUILD)
|
||||
# endif
|
||||
|
||||
#elif defined(__VISUALDSPVERSION__) || defined(__ADSPBLACKFIN__) || defined(__ADSPTS__) || defined(__ADSP21000__)
|
||||
# define COMPILER_ID "ADSP"
|
||||
#if defined(__VISUALDSPVERSION__)
|
||||
/* __VISUALDSPVERSION__ = 0xVVRRPP00 */
|
||||
# define COMPILER_VERSION_MAJOR HEX(__VISUALDSPVERSION__>>24)
|
||||
# define COMPILER_VERSION_MINOR HEX(__VISUALDSPVERSION__>>16 & 0xFF)
|
||||
# define COMPILER_VERSION_PATCH HEX(__VISUALDSPVERSION__>>8 & 0xFF)
|
||||
#endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# define COMPILER_ID "IAR"
|
||||
# if defined(__VER__) && defined(__ICCARM__)
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 1000000)
|
||||
# define COMPILER_VERSION_MINOR DEC(((__VER__) / 1000) % 1000)
|
||||
# define COMPILER_VERSION_PATCH DEC((__VER__) % 1000)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__) || defined(__ICCV850__) || defined(__ICC8051__) || defined(__ICCSTM8__))
|
||||
# define COMPILER_VERSION_MAJOR DEC((__VER__) / 100)
|
||||
# define COMPILER_VERSION_MINOR DEC((__VER__) - (((__VER__) / 100)*100))
|
||||
# define COMPILER_VERSION_PATCH DEC(__SUBVERSION__)
|
||||
# define COMPILER_VERSION_INTERNAL DEC(__IAR_SYSTEMS_ICC__)
|
||||
# endif
|
||||
|
||||
|
||||
/* These compilers are either not known or too old to define an
|
||||
identification macro. Try to identify the platform and guess that
|
||||
it is the native compiler. */
|
||||
#elif defined(__hpux) || defined(__hpua)
|
||||
# define COMPILER_ID "HP"
|
||||
|
||||
#else /* unknown compiler */
|
||||
# define COMPILER_ID ""
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_compiler = "INFO" ":" "compiler[" COMPILER_ID "]";
|
||||
#ifdef SIMULATE_ID
|
||||
char const* info_simulate = "INFO" ":" "simulate[" SIMULATE_ID "]";
|
||||
#endif
|
||||
|
||||
#ifdef __QNXNTO__
|
||||
char const* qnxnto = "INFO" ":" "qnxnto[]";
|
||||
#endif
|
||||
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
char const *info_cray = "INFO" ":" "compiler_wrapper[CrayPrgEnv]";
|
||||
#endif
|
||||
|
||||
#define STRINGIFY_HELPER(X) #X
|
||||
#define STRINGIFY(X) STRINGIFY_HELPER(X)
|
||||
|
||||
/* Identify known platforms by name. */
|
||||
#if defined(__linux) || defined(__linux__) || defined(linux)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
#elif defined(__MSYS__)
|
||||
# define PLATFORM_ID "MSYS"
|
||||
|
||||
#elif defined(__CYGWIN__)
|
||||
# define PLATFORM_ID "Cygwin"
|
||||
|
||||
#elif defined(__MINGW32__)
|
||||
# define PLATFORM_ID "MinGW"
|
||||
|
||||
#elif defined(__APPLE__)
|
||||
# define PLATFORM_ID "Darwin"
|
||||
|
||||
#elif defined(_WIN32) || defined(__WIN32__) || defined(WIN32)
|
||||
# define PLATFORM_ID "Windows"
|
||||
|
||||
#elif defined(__FreeBSD__) || defined(__FreeBSD)
|
||||
# define PLATFORM_ID "FreeBSD"
|
||||
|
||||
#elif defined(__NetBSD__) || defined(__NetBSD)
|
||||
# define PLATFORM_ID "NetBSD"
|
||||
|
||||
#elif defined(__OpenBSD__) || defined(__OPENBSD)
|
||||
# define PLATFORM_ID "OpenBSD"
|
||||
|
||||
#elif defined(__sun) || defined(sun)
|
||||
# define PLATFORM_ID "SunOS"
|
||||
|
||||
#elif defined(_AIX) || defined(__AIX) || defined(__AIX__) || defined(__aix) || defined(__aix__)
|
||||
# define PLATFORM_ID "AIX"
|
||||
|
||||
#elif defined(__hpux) || defined(__hpux__)
|
||||
# define PLATFORM_ID "HP-UX"
|
||||
|
||||
#elif defined(__HAIKU__)
|
||||
# define PLATFORM_ID "Haiku"
|
||||
|
||||
#elif defined(__BeOS) || defined(__BEOS__) || defined(_BEOS)
|
||||
# define PLATFORM_ID "BeOS"
|
||||
|
||||
#elif defined(__QNX__) || defined(__QNXNTO__)
|
||||
# define PLATFORM_ID "QNX"
|
||||
|
||||
#elif defined(__tru64) || defined(_tru64) || defined(__TRU64__)
|
||||
# define PLATFORM_ID "Tru64"
|
||||
|
||||
#elif defined(__riscos) || defined(__riscos__)
|
||||
# define PLATFORM_ID "RISCos"
|
||||
|
||||
#elif defined(__sinix) || defined(__sinix__) || defined(__SINIX__)
|
||||
# define PLATFORM_ID "SINIX"
|
||||
|
||||
#elif defined(__UNIX_SV__)
|
||||
# define PLATFORM_ID "UNIX_SV"
|
||||
|
||||
#elif defined(__bsdos__)
|
||||
# define PLATFORM_ID "BSDOS"
|
||||
|
||||
#elif defined(_MPRAS) || defined(MPRAS)
|
||||
# define PLATFORM_ID "MP-RAS"
|
||||
|
||||
#elif defined(__osf) || defined(__osf__)
|
||||
# define PLATFORM_ID "OSF1"
|
||||
|
||||
#elif defined(_SCO_SV) || defined(SCO_SV) || defined(sco_sv)
|
||||
# define PLATFORM_ID "SCO_SV"
|
||||
|
||||
#elif defined(__ultrix) || defined(__ultrix__) || defined(_ULTRIX)
|
||||
# define PLATFORM_ID "ULTRIX"
|
||||
|
||||
#elif defined(__XENIX__) || defined(_XENIX) || defined(XENIX)
|
||||
# define PLATFORM_ID "Xenix"
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(__LINUX__)
|
||||
# define PLATFORM_ID "Linux"
|
||||
|
||||
# elif defined(__DOS__)
|
||||
# define PLATFORM_ID "DOS"
|
||||
|
||||
# elif defined(__OS2__)
|
||||
# define PLATFORM_ID "OS2"
|
||||
|
||||
# elif defined(__WINDOWS__)
|
||||
# define PLATFORM_ID "Windows3x"
|
||||
|
||||
# elif defined(__VXWORKS__)
|
||||
# define PLATFORM_ID "VxWorks"
|
||||
|
||||
# else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
# endif
|
||||
|
||||
#elif defined(__INTEGRITY)
|
||||
# if defined(INT_178B)
|
||||
# define PLATFORM_ID "Integrity178"
|
||||
|
||||
# else /* regular Integrity */
|
||||
# define PLATFORM_ID "Integrity"
|
||||
# endif
|
||||
|
||||
#else /* unknown platform */
|
||||
# define PLATFORM_ID
|
||||
|
||||
#endif
|
||||
|
||||
/* For windows compilers MSVC and Intel we can determine
|
||||
the architecture of the compiler being used. This is because
|
||||
the compilers do not have flags that can change the architecture,
|
||||
but rather depend on which compiler is being used
|
||||
*/
|
||||
#if defined(_WIN32) && defined(_MSC_VER)
|
||||
# if defined(_M_IA64)
|
||||
# define ARCHITECTURE_ID "IA64"
|
||||
|
||||
# elif defined(_M_ARM64EC)
|
||||
# define ARCHITECTURE_ID "ARM64EC"
|
||||
|
||||
# elif defined(_M_X64) || defined(_M_AMD64)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# elif defined(_M_ARM64)
|
||||
# define ARCHITECTURE_ID "ARM64"
|
||||
|
||||
# elif defined(_M_ARM)
|
||||
# if _M_ARM == 4
|
||||
# define ARCHITECTURE_ID "ARMV4I"
|
||||
# elif _M_ARM == 5
|
||||
# define ARCHITECTURE_ID "ARMV5I"
|
||||
# else
|
||||
# define ARCHITECTURE_ID "ARMV" STRINGIFY(_M_ARM)
|
||||
# endif
|
||||
|
||||
# elif defined(_M_MIPS)
|
||||
# define ARCHITECTURE_ID "MIPS"
|
||||
|
||||
# elif defined(_M_SH)
|
||||
# define ARCHITECTURE_ID "SHx"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__WATCOMC__)
|
||||
# if defined(_M_I86)
|
||||
# define ARCHITECTURE_ID "I86"
|
||||
|
||||
# elif defined(_M_IX86)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__IAR_SYSTEMS_ICC)
|
||||
# if defined(__ICCARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__ICCRX__)
|
||||
# define ARCHITECTURE_ID "RX"
|
||||
|
||||
# elif defined(__ICCRH850__)
|
||||
# define ARCHITECTURE_ID "RH850"
|
||||
|
||||
# elif defined(__ICCRL78__)
|
||||
# define ARCHITECTURE_ID "RL78"
|
||||
|
||||
# elif defined(__ICCRISCV__)
|
||||
# define ARCHITECTURE_ID "RISCV"
|
||||
|
||||
# elif defined(__ICCAVR__)
|
||||
# define ARCHITECTURE_ID "AVR"
|
||||
|
||||
# elif defined(__ICC430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__ICCV850__)
|
||||
# define ARCHITECTURE_ID "V850"
|
||||
|
||||
# elif defined(__ICC8051__)
|
||||
# define ARCHITECTURE_ID "8051"
|
||||
|
||||
# elif defined(__ICCSTM8__)
|
||||
# define ARCHITECTURE_ID "STM8"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__ghs__)
|
||||
# if defined(__PPC64__)
|
||||
# define ARCHITECTURE_ID "PPC64"
|
||||
|
||||
# elif defined(__ppc__)
|
||||
# define ARCHITECTURE_ID "PPC"
|
||||
|
||||
# elif defined(__ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__x86_64__)
|
||||
# define ARCHITECTURE_ID "x64"
|
||||
|
||||
# elif defined(__i386__)
|
||||
# define ARCHITECTURE_ID "X86"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#elif defined(__TI_COMPILER_VERSION__)
|
||||
# if defined(__TI_ARM__)
|
||||
# define ARCHITECTURE_ID "ARM"
|
||||
|
||||
# elif defined(__MSP430__)
|
||||
# define ARCHITECTURE_ID "MSP430"
|
||||
|
||||
# elif defined(__TMS320C28XX__)
|
||||
# define ARCHITECTURE_ID "TMS320C28x"
|
||||
|
||||
# elif defined(__TMS320C6X__) || defined(_TMS320C6X)
|
||||
# define ARCHITECTURE_ID "TMS320C6x"
|
||||
|
||||
# else /* unknown architecture */
|
||||
# define ARCHITECTURE_ID ""
|
||||
# endif
|
||||
|
||||
#else
|
||||
# define ARCHITECTURE_ID
|
||||
#endif
|
||||
|
||||
/* Convert integer to decimal digit literals. */
|
||||
#define DEC(n) \
|
||||
('0' + (((n) / 10000000)%10)), \
|
||||
('0' + (((n) / 1000000)%10)), \
|
||||
('0' + (((n) / 100000)%10)), \
|
||||
('0' + (((n) / 10000)%10)), \
|
||||
('0' + (((n) / 1000)%10)), \
|
||||
('0' + (((n) / 100)%10)), \
|
||||
('0' + (((n) / 10)%10)), \
|
||||
('0' + ((n) % 10))
|
||||
|
||||
/* Convert integer to hex digit literals. */
|
||||
#define HEX(n) \
|
||||
('0' + ((n)>>28 & 0xF)), \
|
||||
('0' + ((n)>>24 & 0xF)), \
|
||||
('0' + ((n)>>20 & 0xF)), \
|
||||
('0' + ((n)>>16 & 0xF)), \
|
||||
('0' + ((n)>>12 & 0xF)), \
|
||||
('0' + ((n)>>8 & 0xF)), \
|
||||
('0' + ((n)>>4 & 0xF)), \
|
||||
('0' + ((n) & 0xF))
|
||||
|
||||
/* Construct a string literal encoding the version number. */
|
||||
#ifdef COMPILER_VERSION
|
||||
char const* info_version = "INFO" ":" "compiler_version[" COMPILER_VERSION "]";
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#elif defined(COMPILER_VERSION_MAJOR)
|
||||
char const info_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','[',
|
||||
COMPILER_VERSION_MAJOR,
|
||||
# ifdef COMPILER_VERSION_MINOR
|
||||
'.', COMPILER_VERSION_MINOR,
|
||||
# ifdef COMPILER_VERSION_PATCH
|
||||
'.', COMPILER_VERSION_PATCH,
|
||||
# ifdef COMPILER_VERSION_TWEAK
|
||||
'.', COMPILER_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the internal version number. */
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
char const info_version_internal[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
'c','o','m','p','i','l','e','r','_','v','e','r','s','i','o','n','_',
|
||||
'i','n','t','e','r','n','a','l','[',
|
||||
COMPILER_VERSION_INTERNAL,']','\0'};
|
||||
#elif defined(COMPILER_VERSION_INTERNAL_STR)
|
||||
char const* info_version_internal = "INFO" ":" "compiler_version_internal[" COMPILER_VERSION_INTERNAL_STR "]";
|
||||
#endif
|
||||
|
||||
/* Construct a string literal encoding the version number components. */
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
char const info_simulate_version[] = {
|
||||
'I', 'N', 'F', 'O', ':',
|
||||
's','i','m','u','l','a','t','e','_','v','e','r','s','i','o','n','[',
|
||||
SIMULATE_VERSION_MAJOR,
|
||||
# ifdef SIMULATE_VERSION_MINOR
|
||||
'.', SIMULATE_VERSION_MINOR,
|
||||
# ifdef SIMULATE_VERSION_PATCH
|
||||
'.', SIMULATE_VERSION_PATCH,
|
||||
# ifdef SIMULATE_VERSION_TWEAK
|
||||
'.', SIMULATE_VERSION_TWEAK,
|
||||
# endif
|
||||
# endif
|
||||
# endif
|
||||
']','\0'};
|
||||
#endif
|
||||
|
||||
/* Construct the string literal in pieces to prevent the source from
|
||||
getting matched. Store it in a pointer rather than an array
|
||||
because some compilers will just produce instructions to fill the
|
||||
array rather than assigning a pointer to a static array. */
|
||||
char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]";
|
||||
char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]";
|
||||
|
||||
|
||||
|
||||
#if defined(__INTEL_COMPILER) && defined(_MSVC_LANG) && _MSVC_LANG < 201403L
|
||||
# if defined(__INTEL_CXX11_MODE__)
|
||||
# if defined(__cpp_aggregate_nsdmi)
|
||||
# define CXX_STD 201402L
|
||||
# else
|
||||
# define CXX_STD 201103L
|
||||
# endif
|
||||
# else
|
||||
# define CXX_STD 199711L
|
||||
# endif
|
||||
#elif defined(_MSC_VER) && defined(_MSVC_LANG)
|
||||
# define CXX_STD _MSVC_LANG
|
||||
#else
|
||||
# define CXX_STD __cplusplus
|
||||
#endif
|
||||
|
||||
const char* info_language_standard_default = "INFO" ":" "standard_default["
|
||||
#if CXX_STD > 202002L
|
||||
"23"
|
||||
#elif CXX_STD > 201703L
|
||||
"20"
|
||||
#elif CXX_STD >= 201703L
|
||||
"17"
|
||||
#elif CXX_STD >= 201402L
|
||||
"14"
|
||||
#elif CXX_STD >= 201103L
|
||||
"11"
|
||||
#else
|
||||
"98"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
const char* info_language_extensions_default = "INFO" ":" "extensions_default["
|
||||
/* !defined(_MSC_VER) to exclude Clang's MSVC compatibility mode. */
|
||||
#if (defined(__clang__) || defined(__GNUC__) || \
|
||||
defined(__TI_COMPILER_VERSION__)) && \
|
||||
!defined(__STRICT_ANSI__) && !defined(_MSC_VER)
|
||||
"ON"
|
||||
#else
|
||||
"OFF"
|
||||
#endif
|
||||
"]";
|
||||
|
||||
/*--------------------------------------------------------------------------*/
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
int require = 0;
|
||||
require += info_compiler[argc];
|
||||
require += info_platform[argc];
|
||||
#ifdef COMPILER_VERSION_MAJOR
|
||||
require += info_version[argc];
|
||||
#endif
|
||||
#ifdef COMPILER_VERSION_INTERNAL
|
||||
require += info_version_internal[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_ID
|
||||
require += info_simulate[argc];
|
||||
#endif
|
||||
#ifdef SIMULATE_VERSION_MAJOR
|
||||
require += info_simulate_version[argc];
|
||||
#endif
|
||||
#if defined(__CRAYXT_COMPUTE_LINUX_TARGET)
|
||||
require += info_cray[argc];
|
||||
#endif
|
||||
require += info_language_standard_default[argc];
|
||||
require += info_language_extensions_default[argc];
|
||||
(void)argv;
|
||||
return require;
|
||||
}
|
||||
BIN
pybind_imu/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out
Normal file
BIN
pybind_imu/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out
Normal file
Binary file not shown.
16
pybind_imu/build/CMakeFiles/CMakeDirectoryInformation.cmake
Normal file
16
pybind_imu/build/CMakeFiles/CMakeDirectoryInformation.cmake
Normal file
@@ -0,0 +1,16 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# Relative path conversion top directories.
|
||||
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/allenyuan/balance/pybind_imu")
|
||||
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/allenyuan/balance/pybind_imu/build")
|
||||
|
||||
# Force unix paths in dependencies.
|
||||
set(CMAKE_FORCE_UNIX_PATHS 1)
|
||||
|
||||
|
||||
# The C and CXX include file regular expressions for this directory.
|
||||
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
|
||||
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
|
||||
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
|
||||
239
pybind_imu/build/CMakeFiles/CMakeOutput.log
Normal file
239
pybind_imu/build/CMakeFiles/CMakeOutput.log
Normal file
@@ -0,0 +1,239 @@
|
||||
The system is: Linux - 5.15.148-tegra - aarch64
|
||||
Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" succeeded.
|
||||
Compiler: /usr/bin/c++
|
||||
Build flags:
|
||||
Id flags:
|
||||
|
||||
The output was:
|
||||
0
|
||||
|
||||
|
||||
Compilation of the CXX compiler identification source "CMakeCXXCompilerId.cpp" produced "a.out"
|
||||
|
||||
The CXX compiler identification is GNU, found in "/home/allenyuan/balance/pybind_imu/build/CMakeFiles/3.22.1/CompilerIdCXX/a.out"
|
||||
|
||||
Detecting CXX compiler ABI info compiled with the following output:
|
||||
Change Dir: /home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_b70d4/fast && /usr/bin/gmake -f CMakeFiles/cmTC_b70d4.dir/build.make CMakeFiles/cmTC_b70d4.dir/build
|
||||
gmake[1]: Entering directory '/home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp'
|
||||
Building CXX object CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o
|
||||
/usr/bin/c++ -v -o CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp
|
||||
Using built-in specs.
|
||||
COLLECT_GCC=/usr/bin/c++
|
||||
Target: aarch64-linux-gnu
|
||||
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.2' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4
|
||||
Thread model: posix
|
||||
Supported LTO compression algorithms: zlib zstd
|
||||
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2)
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_b70d4.dir/'
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/cc1plus -quiet -v -imultiarch aarch64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpdir CMakeFiles/cmTC_b70d4.dir/ -dumpbase CMakeCXXCompilerABI.cpp.cpp -dumpbase-ext .cpp -mlittle-endian -mabi=lp64 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -o /tmp/ccXCSGsF.s
|
||||
GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04.2) version 11.4.0 (aarch64-linux-gnu)
|
||||
compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP
|
||||
|
||||
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
|
||||
ignoring duplicate directory "/usr/include/aarch64-linux-gnu/c++/11"
|
||||
ignoring nonexistent directory "/usr/local/include/aarch64-linux-gnu"
|
||||
ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/11/include-fixed"
|
||||
ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/include"
|
||||
#include "..." search starts here:
|
||||
#include <...> search starts here:
|
||||
/usr/include/c++/11
|
||||
/usr/include/aarch64-linux-gnu/c++/11
|
||||
/usr/include/c++/11/backward
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include
|
||||
/usr/local/include
|
||||
/usr/include/aarch64-linux-gnu
|
||||
/usr/include
|
||||
End of search list.
|
||||
GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04.2) version 11.4.0 (aarch64-linux-gnu)
|
||||
compiled by GNU C version 11.4.0, GMP version 6.2.1, MPFR version 4.1.0, MPC version 1.2.1, isl version isl-0.24-GMP
|
||||
|
||||
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
|
||||
Compiler executable checksum: 55b437a9e84fdcc0a3cb139897f42f09
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_b70d4.dir/'
|
||||
as -v -EL -mabi=lp64 -o CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccXCSGsF.s
|
||||
GNU assembler version 2.38 (aarch64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38
|
||||
COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/
|
||||
LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../:/lib/:/usr/lib/
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.'
|
||||
Linking CXX executable cmTC_b70d4
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b70d4.dir/link.txt --verbose=1
|
||||
/usr/bin/c++ -v CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_b70d4
|
||||
Using built-in specs.
|
||||
COLLECT_GCC=/usr/bin/c++
|
||||
COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper
|
||||
Target: aarch64-linux-gnu
|
||||
Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.2' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c,ada,c++,go,d,fortran,objc,obj-c++,m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4
|
||||
Thread model: posix
|
||||
Supported LTO compression algorithms: zlib zstd
|
||||
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2)
|
||||
COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/
|
||||
LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../:/lib/:/usr/lib/
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_b70d4' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'cmTC_b70d4.'
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/cc6qTCc9.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_b70d4 /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/11 -L/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/11/../../.. CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o
|
||||
COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_b70d4' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'cmTC_b70d4.'
|
||||
gmake[1]: Leaving directory '/home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
|
||||
Parsed CXX implicit include dir info from above output: rv=done
|
||||
found start of include info
|
||||
found start of implicit include info
|
||||
add: [/usr/include/c++/11]
|
||||
add: [/usr/include/aarch64-linux-gnu/c++/11]
|
||||
add: [/usr/include/c++/11/backward]
|
||||
add: [/usr/lib/gcc/aarch64-linux-gnu/11/include]
|
||||
add: [/usr/local/include]
|
||||
add: [/usr/include/aarch64-linux-gnu]
|
||||
add: [/usr/include]
|
||||
end of search list found
|
||||
collapse include dir [/usr/include/c++/11] ==> [/usr/include/c++/11]
|
||||
collapse include dir [/usr/include/aarch64-linux-gnu/c++/11] ==> [/usr/include/aarch64-linux-gnu/c++/11]
|
||||
collapse include dir [/usr/include/c++/11/backward] ==> [/usr/include/c++/11/backward]
|
||||
collapse include dir [/usr/lib/gcc/aarch64-linux-gnu/11/include] ==> [/usr/lib/gcc/aarch64-linux-gnu/11/include]
|
||||
collapse include dir [/usr/local/include] ==> [/usr/local/include]
|
||||
collapse include dir [/usr/include/aarch64-linux-gnu] ==> [/usr/include/aarch64-linux-gnu]
|
||||
collapse include dir [/usr/include] ==> [/usr/include]
|
||||
implicit include dirs: [/usr/include/c++/11;/usr/include/aarch64-linux-gnu/c++/11;/usr/include/c++/11/backward;/usr/lib/gcc/aarch64-linux-gnu/11/include;/usr/local/include;/usr/include/aarch64-linux-gnu;/usr/include]
|
||||
|
||||
|
||||
Parsed CXX implicit link information from above output:
|
||||
link line regex: [^( *|.*[/\])(ld|CMAKE_LINK_STARTFILE-NOTFOUND|([^/\]+-)?ld|collect2)[^/\]*( |$)]
|
||||
ignore line: [Change Dir: /home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp]
|
||||
ignore line: []
|
||||
ignore line: [Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_b70d4/fast && /usr/bin/gmake -f CMakeFiles/cmTC_b70d4.dir/build.make CMakeFiles/cmTC_b70d4.dir/build]
|
||||
ignore line: [gmake[1]: Entering directory '/home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp']
|
||||
ignore line: [Building CXX object CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o]
|
||||
ignore line: [/usr/bin/c++ -v -o CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o -c /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp]
|
||||
ignore line: [Using built-in specs.]
|
||||
ignore line: [COLLECT_GCC=/usr/bin/c++]
|
||||
ignore line: [Target: aarch64-linux-gnu]
|
||||
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.2' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c ada c++ go d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4]
|
||||
ignore line: [Thread model: posix]
|
||||
ignore line: [Supported LTO compression algorithms: zlib zstd]
|
||||
ignore line: [gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2) ]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_b70d4.dir/']
|
||||
ignore line: [ /usr/lib/gcc/aarch64-linux-gnu/11/cc1plus -quiet -v -imultiarch aarch64-linux-gnu -D_GNU_SOURCE /usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp -quiet -dumpdir CMakeFiles/cmTC_b70d4.dir/ -dumpbase CMakeCXXCompilerABI.cpp.cpp -dumpbase-ext .cpp -mlittle-endian -mabi=lp64 -version -fasynchronous-unwind-tables -fstack-protector-strong -Wformat -Wformat-security -fstack-clash-protection -o /tmp/ccXCSGsF.s]
|
||||
ignore line: [GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04.2) version 11.4.0 (aarch64-linux-gnu)]
|
||||
ignore line: [ compiled by GNU C version 11.4.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.24-GMP]
|
||||
ignore line: []
|
||||
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
|
||||
ignore line: [ignoring duplicate directory "/usr/include/aarch64-linux-gnu/c++/11"]
|
||||
ignore line: [ignoring nonexistent directory "/usr/local/include/aarch64-linux-gnu"]
|
||||
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/11/include-fixed"]
|
||||
ignore line: [ignoring nonexistent directory "/usr/lib/gcc/aarch64-linux-gnu/11/../../../../aarch64-linux-gnu/include"]
|
||||
ignore line: [#include "..." search starts here:]
|
||||
ignore line: [#include <...> search starts here:]
|
||||
ignore line: [ /usr/include/c++/11]
|
||||
ignore line: [ /usr/include/aarch64-linux-gnu/c++/11]
|
||||
ignore line: [ /usr/include/c++/11/backward]
|
||||
ignore line: [ /usr/lib/gcc/aarch64-linux-gnu/11/include]
|
||||
ignore line: [ /usr/local/include]
|
||||
ignore line: [ /usr/include/aarch64-linux-gnu]
|
||||
ignore line: [ /usr/include]
|
||||
ignore line: [End of search list.]
|
||||
ignore line: [GNU C++17 (Ubuntu 11.4.0-1ubuntu1~22.04.2) version 11.4.0 (aarch64-linux-gnu)]
|
||||
ignore line: [ compiled by GNU C version 11.4.0 GMP version 6.2.1 MPFR version 4.1.0 MPC version 1.2.1 isl version isl-0.24-GMP]
|
||||
ignore line: []
|
||||
ignore line: [GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072]
|
||||
ignore line: [Compiler executable checksum: 55b437a9e84fdcc0a3cb139897f42f09]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_b70d4.dir/']
|
||||
ignore line: [ as -v -EL -mabi=lp64 -o CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o /tmp/ccXCSGsF.s]
|
||||
ignore line: [GNU assembler version 2.38 (aarch64-linux-gnu) using BFD version (GNU Binutils for Ubuntu) 2.38]
|
||||
ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/]
|
||||
ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../:/lib/:/usr/lib/]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o' '-c' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.']
|
||||
ignore line: [Linking CXX executable cmTC_b70d4]
|
||||
ignore line: [/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_b70d4.dir/link.txt --verbose=1]
|
||||
ignore line: [/usr/bin/c++ -v CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o -o cmTC_b70d4 ]
|
||||
ignore line: [Using built-in specs.]
|
||||
ignore line: [COLLECT_GCC=/usr/bin/c++]
|
||||
ignore line: [COLLECT_LTO_WRAPPER=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper]
|
||||
ignore line: [Target: aarch64-linux-gnu]
|
||||
ignore line: [Configured with: ../src/configure -v --with-pkgversion='Ubuntu 11.4.0-1ubuntu1~22.04.2' --with-bugurl=file:///usr/share/doc/gcc-11/README.Bugs --enable-languages=c ada c++ go d fortran objc obj-c++ m2 --prefix=/usr --with-gcc-major-version-only --program-suffix=-11 --program-prefix=aarch64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --enable-bootstrap --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-libquadmath --disable-libquadmath-support --enable-plugin --enable-default-pie --with-system-zlib --enable-libphobos-checking=release --with-target-system-zlib=auto --enable-objc-gc=auto --enable-multiarch --enable-fix-cortex-a53-843419 --disable-werror --enable-checking=release --build=aarch64-linux-gnu --host=aarch64-linux-gnu --target=aarch64-linux-gnu --with-build-config=bootstrap-lto-lean --enable-link-serialization=4]
|
||||
ignore line: [Thread model: posix]
|
||||
ignore line: [Supported LTO compression algorithms: zlib zstd]
|
||||
ignore line: [gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04.2) ]
|
||||
ignore line: [COMPILER_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/]
|
||||
ignore line: [LIBRARY_PATH=/usr/lib/gcc/aarch64-linux-gnu/11/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib/:/lib/aarch64-linux-gnu/:/lib/../lib/:/usr/lib/aarch64-linux-gnu/:/usr/lib/../lib/:/usr/lib/gcc/aarch64-linux-gnu/11/../../../:/lib/:/usr/lib/]
|
||||
ignore line: [COLLECT_GCC_OPTIONS='-v' '-o' 'cmTC_b70d4' '-shared-libgcc' '-mlittle-endian' '-mabi=lp64' '-dumpdir' 'cmTC_b70d4.']
|
||||
link line: [ /usr/lib/gcc/aarch64-linux-gnu/11/collect2 -plugin /usr/lib/gcc/aarch64-linux-gnu/11/liblto_plugin.so -plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper -plugin-opt=-fresolution=/tmp/cc6qTCc9.res -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc -plugin-opt=-pass-through=-lc -plugin-opt=-pass-through=-lgcc_s -plugin-opt=-pass-through=-lgcc --build-id --eh-frame-hdr --hash-style=gnu --as-needed -dynamic-linker /lib/ld-linux-aarch64.so.1 -X -EL -maarch64linux --fix-cortex-a53-843419 -pie -z now -z relro -o cmTC_b70d4 /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o -L/usr/lib/gcc/aarch64-linux-gnu/11 -L/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/11/../../.. CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/collect2] ==> ignore
|
||||
arg [-plugin] ==> ignore
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/liblto_plugin.so] ==> ignore
|
||||
arg [-plugin-opt=/usr/lib/gcc/aarch64-linux-gnu/11/lto-wrapper] ==> ignore
|
||||
arg [-plugin-opt=-fresolution=/tmp/cc6qTCc9.res] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lc] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc_s] ==> ignore
|
||||
arg [-plugin-opt=-pass-through=-lgcc] ==> ignore
|
||||
arg [--build-id] ==> ignore
|
||||
arg [--eh-frame-hdr] ==> ignore
|
||||
arg [--hash-style=gnu] ==> ignore
|
||||
arg [--as-needed] ==> ignore
|
||||
arg [-dynamic-linker] ==> ignore
|
||||
arg [/lib/ld-linux-aarch64.so.1] ==> ignore
|
||||
arg [-X] ==> ignore
|
||||
arg [-EL] ==> ignore
|
||||
arg [-maarch64linux] ==> ignore
|
||||
arg [--fix-cortex-a53-843419] ==> ignore
|
||||
arg [-pie] ==> ignore
|
||||
arg [-znow] ==> ignore
|
||||
arg [-zrelro] ==> ignore
|
||||
arg [-o] ==> ignore
|
||||
arg [cmTC_b70d4] ==> ignore
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o]
|
||||
arg [-L/usr/lib/gcc/aarch64-linux-gnu/11] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/11]
|
||||
arg [-L/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu]
|
||||
arg [-L/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib]
|
||||
arg [-L/lib/aarch64-linux-gnu] ==> dir [/lib/aarch64-linux-gnu]
|
||||
arg [-L/lib/../lib] ==> dir [/lib/../lib]
|
||||
arg [-L/usr/lib/aarch64-linux-gnu] ==> dir [/usr/lib/aarch64-linux-gnu]
|
||||
arg [-L/usr/lib/../lib] ==> dir [/usr/lib/../lib]
|
||||
arg [-L/usr/lib/gcc/aarch64-linux-gnu/11/../../..] ==> dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../..]
|
||||
arg [CMakeFiles/cmTC_b70d4.dir/CMakeCXXCompilerABI.cpp.o] ==> ignore
|
||||
arg [-lstdc++] ==> lib [stdc++]
|
||||
arg [-lm] ==> lib [m]
|
||||
arg [-lgcc_s] ==> lib [gcc_s]
|
||||
arg [-lgcc] ==> lib [gcc]
|
||||
arg [-lc] ==> lib [c]
|
||||
arg [-lgcc_s] ==> lib [gcc_s]
|
||||
arg [-lgcc] ==> lib [gcc]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o]
|
||||
arg [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o] ==> obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o]
|
||||
collapse obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o] ==> [/usr/lib/aarch64-linux-gnu/Scrt1.o]
|
||||
collapse obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crti.o] ==> [/usr/lib/aarch64-linux-gnu/crti.o]
|
||||
collapse obj [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/crtn.o] ==> [/usr/lib/aarch64-linux-gnu/crtn.o]
|
||||
collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/11] ==> [/usr/lib/gcc/aarch64-linux-gnu/11]
|
||||
collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu]
|
||||
collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../../../lib] ==> [/usr/lib]
|
||||
collapse library dir [/lib/aarch64-linux-gnu] ==> [/lib/aarch64-linux-gnu]
|
||||
collapse library dir [/lib/../lib] ==> [/lib]
|
||||
collapse library dir [/usr/lib/aarch64-linux-gnu] ==> [/usr/lib/aarch64-linux-gnu]
|
||||
collapse library dir [/usr/lib/../lib] ==> [/usr/lib]
|
||||
collapse library dir [/usr/lib/gcc/aarch64-linux-gnu/11/../../..] ==> [/usr/lib]
|
||||
implicit libs: [stdc++;m;gcc_s;gcc;c;gcc_s;gcc]
|
||||
implicit objs: [/usr/lib/aarch64-linux-gnu/Scrt1.o;/usr/lib/aarch64-linux-gnu/crti.o;/usr/lib/gcc/aarch64-linux-gnu/11/crtbeginS.o;/usr/lib/gcc/aarch64-linux-gnu/11/crtendS.o;/usr/lib/aarch64-linux-gnu/crtn.o]
|
||||
implicit dirs: [/usr/lib/gcc/aarch64-linux-gnu/11;/usr/lib/aarch64-linux-gnu;/usr/lib;/lib/aarch64-linux-gnu;/lib]
|
||||
implicit fwks: []
|
||||
|
||||
|
||||
Performing C++ SOURCE FILE Test HAS_FLTO_AUTO succeeded with the following output:
|
||||
Change Dir: /home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp
|
||||
|
||||
Run Build Command(s):/usr/bin/gmake -f Makefile cmTC_4c2a6/fast && /usr/bin/gmake -f CMakeFiles/cmTC_4c2a6.dir/build.make CMakeFiles/cmTC_4c2a6.dir/build
|
||||
gmake[1]: Entering directory '/home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp'
|
||||
Building CXX object CMakeFiles/cmTC_4c2a6.dir/src.cxx.o
|
||||
/usr/bin/c++ -DHAS_FLTO_AUTO -flto=auto -fno-fat-lto-objects -std=gnu++17 -o CMakeFiles/cmTC_4c2a6.dir/src.cxx.o -c /home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp/src.cxx
|
||||
Linking CXX executable cmTC_4c2a6
|
||||
/usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_4c2a6.dir/link.txt --verbose=1
|
||||
/usr/bin/c++ CMakeFiles/cmTC_4c2a6.dir/src.cxx.o -o cmTC_4c2a6 -flto=auto
|
||||
gmake[1]: Leaving directory '/home/allenyuan/balance/pybind_imu/build/CMakeFiles/CMakeTmp'
|
||||
|
||||
|
||||
Source file was:
|
||||
int main() { return 0; }
|
||||
114
pybind_imu/build/CMakeFiles/Makefile.cmake
Normal file
114
pybind_imu/build/CMakeFiles/Makefile.cmake
Normal file
@@ -0,0 +1,114 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# The generator used is:
|
||||
set(CMAKE_DEPENDS_GENERATOR "Unix Makefiles")
|
||||
|
||||
# The top level Makefile was generated from the following files:
|
||||
set(CMAKE_MAKEFILE_DEPENDS
|
||||
"CMakeCache.txt"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/FindPythonLibsNew.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Common.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Config.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11ConfigVersion.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Targets.cmake"
|
||||
"/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/share/cmake/pybind11/pybind11Tools.cmake"
|
||||
"../CMakeLists.txt"
|
||||
"CMakeFiles/3.22.1/CMakeCXXCompiler.cmake"
|
||||
"CMakeFiles/3.22.1/CMakeSystem.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCXXCompiler.cmake.in"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCXXCompilerABI.cpp"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCXXInformation.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCommonLanguageInclude.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeCompilerIdDetection.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeDetermineCXXCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeDetermineCompileFeatures.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeDetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeDetermineCompilerABI.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeDetermineCompilerId.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeDetermineSystem.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeFindBinUtils.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeGenericSystem.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeInitializeConfigs.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeLanguageInformation.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeParseImplicitIncludeInfo.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeParseImplicitLinkInfo.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeParseLibraryArchitecture.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeSystem.cmake.in"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInformation.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeSystemSpecificInitialize.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeTestCXXCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeTestCompilerCommon.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CMakeUnixFindMake.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CheckCXXCompilerFlag.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/CheckCXXSourceCompiles.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/ADSP-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/ARMCC-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/ARMClang-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/AppleClang-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Borland-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/CMakeCommonCompilerMacros.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Clang-DetermineCompilerInternal.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Comeau-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Compaq-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Cray-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Embarcadero-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Fujitsu-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/FujitsuClang-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/GHS-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/GNU-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/GNU-CXX.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/GNU-FindBinUtils.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/GNU.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/HP-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/IAR-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/IBMCPP-CXX-DetermineVersionInternal.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Intel-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/IntelLLVM-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/MSVC-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/NVHPC-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/NVIDIA-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/OpenWatcom-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/PGI-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/PathScale-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/SCO-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/SunPro-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/TI-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/VisualAge-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/Watcom-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/XL-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/XLClang-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Compiler/zOS-CXX-DetermineCompiler.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/FindPackageMessage.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/FindPythonInterp.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Internal/CheckCompilerFlag.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Internal/CheckSourceCompiles.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Internal/FeatureTesting.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/Linux-Determine-CXX.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/Linux-GNU-CXX.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/Linux-GNU.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/Linux.cmake"
|
||||
"/usr/share/cmake-3.22/Modules/Platform/UnixPaths.cmake"
|
||||
)
|
||||
|
||||
# The corresponding makefile is:
|
||||
set(CMAKE_MAKEFILE_OUTPUTS
|
||||
"Makefile"
|
||||
"CMakeFiles/cmake.check_cache"
|
||||
)
|
||||
|
||||
# Byproducts of CMake generate step:
|
||||
set(CMAKE_MAKEFILE_PRODUCTS
|
||||
"CMakeFiles/3.22.1/CMakeSystem.cmake"
|
||||
"CMakeFiles/3.22.1/CMakeCXXCompiler.cmake"
|
||||
"CMakeFiles/3.22.1/CMakeCXXCompiler.cmake"
|
||||
"CMakeFiles/CMakeDirectoryInformation.cmake"
|
||||
)
|
||||
|
||||
# Dependency information for all targets:
|
||||
set(CMAKE_DEPEND_INFO_FILES
|
||||
"CMakeFiles/imu_py.dir/DependInfo.cmake"
|
||||
)
|
||||
112
pybind_imu/build/CMakeFiles/Makefile2
Normal file
112
pybind_imu/build/CMakeFiles/Makefile2
Normal file
@@ -0,0 +1,112 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : %,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : SCCS/s.%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : s.%
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Command-line flag to silence nested $(MAKE).
|
||||
$(VERBOSE)MAKESILENT = -s
|
||||
|
||||
#Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E rm -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/allenyuan/balance/pybind_imu
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/allenyuan/balance/pybind_imu/build
|
||||
|
||||
#=============================================================================
|
||||
# Directory level rules for the build root directory
|
||||
|
||||
# The main recursive "all" target.
|
||||
all: CMakeFiles/imu_py.dir/all
|
||||
.PHONY : all
|
||||
|
||||
# The main recursive "preinstall" target.
|
||||
preinstall:
|
||||
.PHONY : preinstall
|
||||
|
||||
# The main recursive "clean" target.
|
||||
clean: CMakeFiles/imu_py.dir/clean
|
||||
.PHONY : clean
|
||||
|
||||
#=============================================================================
|
||||
# Target rules for target CMakeFiles/imu_py.dir
|
||||
|
||||
# All Build rule for target.
|
||||
CMakeFiles/imu_py.dir/all:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/depend
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/build
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --progress-dir=/home/allenyuan/balance/pybind_imu/build/CMakeFiles --progress-num=1,2,3,4 "Built target imu_py"
|
||||
.PHONY : CMakeFiles/imu_py.dir/all
|
||||
|
||||
# Build rule for subdir invocation for target.
|
||||
CMakeFiles/imu_py.dir/rule: cmake_check_build_system
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/allenyuan/balance/pybind_imu/build/CMakeFiles 4
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 CMakeFiles/imu_py.dir/all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/allenyuan/balance/pybind_imu/build/CMakeFiles 0
|
||||
.PHONY : CMakeFiles/imu_py.dir/rule
|
||||
|
||||
# Convenience name for target.
|
||||
imu_py: CMakeFiles/imu_py.dir/rule
|
||||
.PHONY : imu_py
|
||||
|
||||
# clean rule for target.
|
||||
CMakeFiles/imu_py.dir/clean:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/clean
|
||||
.PHONY : CMakeFiles/imu_py.dir/clean
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
3
pybind_imu/build/CMakeFiles/TargetDirectories.txt
Normal file
3
pybind_imu/build/CMakeFiles/TargetDirectories.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
/home/allenyuan/balance/pybind_imu/build/CMakeFiles/imu_py.dir
|
||||
/home/allenyuan/balance/pybind_imu/build/CMakeFiles/edit_cache.dir
|
||||
/home/allenyuan/balance/pybind_imu/build/CMakeFiles/rebuild_cache.dir
|
||||
1
pybind_imu/build/CMakeFiles/cmake.check_cache
Normal file
1
pybind_imu/build/CMakeFiles/cmake.check_cache
Normal file
@@ -0,0 +1 @@
|
||||
# This file is generated by cmake for dependency checking of the CMakeCache.txt file
|
||||
21
pybind_imu/build/CMakeFiles/imu_py.dir/DependInfo.cmake
Normal file
21
pybind_imu/build/CMakeFiles/imu_py.dir/DependInfo.cmake
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
# Consider dependencies only in project.
|
||||
set(CMAKE_DEPENDS_IN_PROJECT_ONLY OFF)
|
||||
|
||||
# The set of languages for which implicit dependencies are needed:
|
||||
set(CMAKE_DEPENDS_LANGUAGES
|
||||
)
|
||||
|
||||
# The set of dependency files which are needed:
|
||||
set(CMAKE_DEPENDS_DEPENDENCY_FILES
|
||||
"/home/allenyuan/balance/dm_imu/bsp_crc.cpp" "CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o" "gcc" "CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o.d"
|
||||
"/home/allenyuan/balance/dm_imu/imu_driver.cpp" "CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o" "gcc" "CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o.d"
|
||||
"/home/allenyuan/balance/pybind_imu/pybind_imu.cpp" "CMakeFiles/imu_py.dir/pybind_imu.cpp.o" "gcc" "CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d"
|
||||
)
|
||||
|
||||
# Targets to which this target links.
|
||||
set(CMAKE_TARGET_LINKED_INFO_FILES
|
||||
)
|
||||
|
||||
# Fortran module output directory.
|
||||
set(CMAKE_Fortran_TARGET_MODULE_DIR "")
|
||||
143
pybind_imu/build/CMakeFiles/imu_py.dir/build.make
Normal file
143
pybind_imu/build/CMakeFiles/imu_py.dir/build.make
Normal file
@@ -0,0 +1,143 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# Delete rule output on recipe failure.
|
||||
.DELETE_ON_ERROR:
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : %,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : SCCS/s.%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : s.%
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Command-line flag to silence nested $(MAKE).
|
||||
$(VERBOSE)MAKESILENT = -s
|
||||
|
||||
#Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E rm -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/allenyuan/balance/pybind_imu
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/allenyuan/balance/pybind_imu/build
|
||||
|
||||
# Include any dependencies generated for this target.
|
||||
include CMakeFiles/imu_py.dir/depend.make
|
||||
# Include any dependencies generated by the compiler for this target.
|
||||
include CMakeFiles/imu_py.dir/compiler_depend.make
|
||||
|
||||
# Include the progress variables for this target.
|
||||
include CMakeFiles/imu_py.dir/progress.make
|
||||
|
||||
# Include the compile flags for this target's objects.
|
||||
include CMakeFiles/imu_py.dir/flags.make
|
||||
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.o: CMakeFiles/imu_py.dir/flags.make
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.o: ../pybind_imu.cpp
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.o: CMakeFiles/imu_py.dir/compiler_depend.ts
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/allenyuan/balance/pybind_imu/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_1) "Building CXX object CMakeFiles/imu_py.dir/pybind_imu.cpp.o"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/imu_py.dir/pybind_imu.cpp.o -MF CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d -o CMakeFiles/imu_py.dir/pybind_imu.cpp.o -c /home/allenyuan/balance/pybind_imu/pybind_imu.cpp
|
||||
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/imu_py.dir/pybind_imu.cpp.i"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/allenyuan/balance/pybind_imu/pybind_imu.cpp > CMakeFiles/imu_py.dir/pybind_imu.cpp.i
|
||||
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/imu_py.dir/pybind_imu.cpp.s"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/allenyuan/balance/pybind_imu/pybind_imu.cpp -o CMakeFiles/imu_py.dir/pybind_imu.cpp.s
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o: CMakeFiles/imu_py.dir/flags.make
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o: /home/allenyuan/balance/dm_imu/imu_driver.cpp
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o: CMakeFiles/imu_py.dir/compiler_depend.ts
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/allenyuan/balance/pybind_imu/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_2) "Building CXX object CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o -MF CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o.d -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o -c /home/allenyuan/balance/dm_imu/imu_driver.cpp
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.i"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/allenyuan/balance/dm_imu/imu_driver.cpp > CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.i
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.s"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/allenyuan/balance/dm_imu/imu_driver.cpp -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.s
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o: CMakeFiles/imu_py.dir/flags.make
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o: /home/allenyuan/balance/dm_imu/bsp_crc.cpp
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o: CMakeFiles/imu_py.dir/compiler_depend.ts
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --progress-dir=/home/allenyuan/balance/pybind_imu/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_3) "Building CXX object CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -MD -MT CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o -MF CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o.d -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o -c /home/allenyuan/balance/dm_imu/bsp_crc.cpp
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.i: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Preprocessing CXX source to CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.i"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -E /home/allenyuan/balance/dm_imu/bsp_crc.cpp > CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.i
|
||||
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.s: cmake_force
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green "Compiling CXX source to assembly CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.s"
|
||||
/usr/bin/c++ $(CXX_DEFINES) $(CXX_INCLUDES) $(CXX_FLAGS) -S /home/allenyuan/balance/dm_imu/bsp_crc.cpp -o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.s
|
||||
|
||||
# Object files for target imu_py
|
||||
imu_py_OBJECTS = \
|
||||
"CMakeFiles/imu_py.dir/pybind_imu.cpp.o" \
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o" \
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o"
|
||||
|
||||
# External object files for target imu_py
|
||||
imu_py_EXTERNAL_OBJECTS =
|
||||
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/pybind_imu.cpp.o
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/build.make
|
||||
imu_py.cpython-310-aarch64-linux-gnu.so: CMakeFiles/imu_py.dir/link.txt
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --green --bold --progress-dir=/home/allenyuan/balance/pybind_imu/build/CMakeFiles --progress-num=$(CMAKE_PROGRESS_4) "Linking CXX shared module imu_py.cpython-310-aarch64-linux-gnu.so"
|
||||
$(CMAKE_COMMAND) -E cmake_link_script CMakeFiles/imu_py.dir/link.txt --verbose=$(VERBOSE)
|
||||
/usr/bin/strip /home/allenyuan/balance/pybind_imu/build/imu_py.cpython-310-aarch64-linux-gnu.so
|
||||
|
||||
# Rule to build all files generated by this target.
|
||||
CMakeFiles/imu_py.dir/build: imu_py.cpython-310-aarch64-linux-gnu.so
|
||||
.PHONY : CMakeFiles/imu_py.dir/build
|
||||
|
||||
CMakeFiles/imu_py.dir/clean:
|
||||
$(CMAKE_COMMAND) -P CMakeFiles/imu_py.dir/cmake_clean.cmake
|
||||
.PHONY : CMakeFiles/imu_py.dir/clean
|
||||
|
||||
CMakeFiles/imu_py.dir/depend:
|
||||
cd /home/allenyuan/balance/pybind_imu/build && $(CMAKE_COMMAND) -E cmake_depends "Unix Makefiles" /home/allenyuan/balance/pybind_imu /home/allenyuan/balance/pybind_imu /home/allenyuan/balance/pybind_imu/build /home/allenyuan/balance/pybind_imu/build /home/allenyuan/balance/pybind_imu/build/CMakeFiles/imu_py.dir/DependInfo.cmake --color=$(COLOR)
|
||||
.PHONY : CMakeFiles/imu_py.dir/depend
|
||||
|
||||
15
pybind_imu/build/CMakeFiles/imu_py.dir/cmake_clean.cmake
Normal file
15
pybind_imu/build/CMakeFiles/imu_py.dir/cmake_clean.cmake
Normal file
@@ -0,0 +1,15 @@
|
||||
file(REMOVE_RECURSE
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o"
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o.d"
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o"
|
||||
"CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o.d"
|
||||
"CMakeFiles/imu_py.dir/pybind_imu.cpp.o"
|
||||
"CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d"
|
||||
"imu_py.cpython-310-aarch64-linux-gnu.so"
|
||||
"imu_py.pdb"
|
||||
)
|
||||
|
||||
# Per-language clean rules from dependency scanning.
|
||||
foreach(lang CXX)
|
||||
include(CMakeFiles/imu_py.dir/cmake_clean_${lang}.cmake OPTIONAL)
|
||||
endforeach()
|
||||
@@ -0,0 +1,2 @@
|
||||
# Empty compiler generated dependencies file for imu_py.
|
||||
# This may be replaced when dependencies are built.
|
||||
@@ -0,0 +1,2 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Timestamp file for compiler generated dependencies management for imu_py.
|
||||
2
pybind_imu/build/CMakeFiles/imu_py.dir/depend.make
Normal file
2
pybind_imu/build/CMakeFiles/imu_py.dir/depend.make
Normal file
@@ -0,0 +1,2 @@
|
||||
# Empty dependencies file for imu_py.
|
||||
# This may be replaced when dependencies are built.
|
||||
10
pybind_imu/build/CMakeFiles/imu_py.dir/flags.make
Normal file
10
pybind_imu/build/CMakeFiles/imu_py.dir/flags.make
Normal file
@@ -0,0 +1,10 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# compile CXX with /usr/bin/c++
|
||||
CXX_DEFINES = -Dimu_py_EXPORTS
|
||||
|
||||
CXX_INCLUDES = -I/home/allenyuan/balance/pybind_imu/.. -isystem /home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include -isystem /home/allenyuan/miniconda3/envs/stf/include/python3.10
|
||||
|
||||
CXX_FLAGS = -fPIC -fvisibility=hidden -flto=auto -fno-fat-lto-objects -std=gnu++17
|
||||
|
||||
Binary file not shown.
@@ -0,0 +1,149 @@
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o: \
|
||||
/home/allenyuan/balance/dm_imu/bsp_crc.cpp /usr/include/stdc-predef.h \
|
||||
/home/allenyuan/balance/dm_imu/bsp_crc.h /usr/include/c++/11/iostream \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++config.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/os_defines.h \
|
||||
/usr/include/features.h /usr/include/features-time64.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/wordsize.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/timesize.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/cdefs.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/long-double.h \
|
||||
/usr/include/aarch64-linux-gnu/gnu/stubs.h \
|
||||
/usr/include/aarch64-linux-gnu/gnu/stubs-lp64.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/cpu_defines.h \
|
||||
/usr/include/c++/11/pstl/pstl_config.h /usr/include/c++/11/ostream \
|
||||
/usr/include/c++/11/ios /usr/include/c++/11/iosfwd \
|
||||
/usr/include/c++/11/bits/stringfwd.h \
|
||||
/usr/include/c++/11/bits/memoryfwd.h /usr/include/c++/11/bits/postypes.h \
|
||||
/usr/include/c++/11/cwchar /usr/include/wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/libc-header-start.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/floatn.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/floatn-common.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stddef.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdarg.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/wint_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/mbstate_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__mbstate_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/locale_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__locale_t.h \
|
||||
/usr/include/c++/11/exception /usr/include/c++/11/bits/exception.h \
|
||||
/usr/include/c++/11/bits/exception_ptr.h \
|
||||
/usr/include/c++/11/bits/exception_defines.h \
|
||||
/usr/include/c++/11/bits/cxxabi_init_exception.h \
|
||||
/usr/include/c++/11/typeinfo /usr/include/c++/11/bits/hash_bytes.h \
|
||||
/usr/include/c++/11/new /usr/include/c++/11/bits/move.h \
|
||||
/usr/include/c++/11/type_traits \
|
||||
/usr/include/c++/11/bits/nested_exception.h \
|
||||
/usr/include/c++/11/bits/char_traits.h \
|
||||
/usr/include/c++/11/bits/stl_algobase.h \
|
||||
/usr/include/c++/11/bits/functexcept.h \
|
||||
/usr/include/c++/11/bits/cpp_type_traits.h \
|
||||
/usr/include/c++/11/ext/type_traits.h \
|
||||
/usr/include/c++/11/ext/numeric_traits.h \
|
||||
/usr/include/c++/11/bits/stl_pair.h \
|
||||
/usr/include/c++/11/bits/stl_iterator_base_types.h \
|
||||
/usr/include/c++/11/bits/stl_iterator_base_funcs.h \
|
||||
/usr/include/c++/11/bits/concept_check.h \
|
||||
/usr/include/c++/11/debug/assertions.h \
|
||||
/usr/include/c++/11/bits/stl_iterator.h \
|
||||
/usr/include/c++/11/bits/ptr_traits.h /usr/include/c++/11/debug/debug.h \
|
||||
/usr/include/c++/11/bits/predefined_ops.h /usr/include/c++/11/cstdint \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdint.h /usr/include/stdint.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/typesizes.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/time64.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h \
|
||||
/usr/include/c++/11/bits/localefwd.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++locale.h \
|
||||
/usr/include/c++/11/clocale /usr/include/locale.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/locale.h /usr/include/c++/11/cctype \
|
||||
/usr/include/ctype.h /usr/include/aarch64-linux-gnu/bits/endian.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/endianness.h \
|
||||
/usr/include/c++/11/bits/ios_base.h /usr/include/c++/11/ext/atomicity.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr-default.h \
|
||||
/usr/include/pthread.h /usr/include/sched.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/time_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_timespec.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/sched.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_sched_param.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/cpu-set.h /usr/include/time.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/time.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/timex.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_timeval.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/clock_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_tm.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/clockid_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_itimerspec.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthreadtypes.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/thread-shared-types.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/atomic_wide_counter.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/struct_mutex.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/struct_rwlock.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/setjmp.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__sigset_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct___jmp_buf_tag.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthread_stack_min-dynamic.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/atomic_word.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/single_threaded.h \
|
||||
/usr/include/c++/11/bits/locale_classes.h /usr/include/c++/11/string \
|
||||
/usr/include/c++/11/bits/allocator.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++allocator.h \
|
||||
/usr/include/c++/11/ext/new_allocator.h \
|
||||
/usr/include/c++/11/bits/ostream_insert.h \
|
||||
/usr/include/c++/11/bits/cxxabi_forced.h \
|
||||
/usr/include/c++/11/bits/stl_function.h \
|
||||
/usr/include/c++/11/backward/binders.h \
|
||||
/usr/include/c++/11/bits/range_access.h \
|
||||
/usr/include/c++/11/initializer_list \
|
||||
/usr/include/c++/11/bits/basic_string.h \
|
||||
/usr/include/c++/11/ext/alloc_traits.h \
|
||||
/usr/include/c++/11/bits/alloc_traits.h \
|
||||
/usr/include/c++/11/bits/stl_construct.h /usr/include/c++/11/string_view \
|
||||
/usr/include/c++/11/bits/functional_hash.h \
|
||||
/usr/include/c++/11/bits/string_view.tcc \
|
||||
/usr/include/c++/11/ext/string_conversions.h /usr/include/c++/11/cstdlib \
|
||||
/usr/include/stdlib.h /usr/include/aarch64-linux-gnu/bits/waitflags.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/waitstatus.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/types.h /usr/include/endian.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/byteswap.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/uintn-identity.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/select.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/select.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h \
|
||||
/usr/include/alloca.h /usr/include/aarch64-linux-gnu/bits/stdlib-float.h \
|
||||
/usr/include/c++/11/bits/std_abs.h /usr/include/c++/11/cstdio \
|
||||
/usr/include/stdio.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__fpos_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__fpos64_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/cookie_io_functions_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdio_lim.h \
|
||||
/usr/include/c++/11/cerrno /usr/include/errno.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/errno.h /usr/include/linux/errno.h \
|
||||
/usr/include/aarch64-linux-gnu/asm/errno.h \
|
||||
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/error_t.h \
|
||||
/usr/include/c++/11/bits/charconv.h \
|
||||
/usr/include/c++/11/bits/basic_string.tcc \
|
||||
/usr/include/c++/11/bits/locale_classes.tcc \
|
||||
/usr/include/c++/11/system_error \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/error_constants.h \
|
||||
/usr/include/c++/11/stdexcept /usr/include/c++/11/streambuf \
|
||||
/usr/include/c++/11/bits/streambuf.tcc \
|
||||
/usr/include/c++/11/bits/basic_ios.h \
|
||||
/usr/include/c++/11/bits/locale_facets.h /usr/include/c++/11/cwctype \
|
||||
/usr/include/wctype.h /usr/include/aarch64-linux-gnu/bits/wctype-wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_base.h \
|
||||
/usr/include/c++/11/bits/streambuf_iterator.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_inline.h \
|
||||
/usr/include/c++/11/bits/locale_facets.tcc \
|
||||
/usr/include/c++/11/bits/basic_ios.tcc \
|
||||
/usr/include/c++/11/bits/ostream.tcc /usr/include/c++/11/istream \
|
||||
/usr/include/c++/11/bits/istream.tcc
|
||||
Binary file not shown.
@@ -0,0 +1,211 @@
|
||||
CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o: \
|
||||
/home/allenyuan/balance/dm_imu/imu_driver.cpp /usr/include/stdc-predef.h \
|
||||
/home/allenyuan/balance/dm_imu/imu_driver.h /usr/include/c++/11/iostream \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++config.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/os_defines.h \
|
||||
/usr/include/features.h /usr/include/features-time64.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/wordsize.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/timesize.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/cdefs.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/long-double.h \
|
||||
/usr/include/aarch64-linux-gnu/gnu/stubs.h \
|
||||
/usr/include/aarch64-linux-gnu/gnu/stubs-lp64.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/cpu_defines.h \
|
||||
/usr/include/c++/11/pstl/pstl_config.h /usr/include/c++/11/ostream \
|
||||
/usr/include/c++/11/ios /usr/include/c++/11/iosfwd \
|
||||
/usr/include/c++/11/bits/stringfwd.h \
|
||||
/usr/include/c++/11/bits/memoryfwd.h /usr/include/c++/11/bits/postypes.h \
|
||||
/usr/include/c++/11/cwchar /usr/include/wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/libc-header-start.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/floatn.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/floatn-common.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stddef.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdarg.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/wint_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/mbstate_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__mbstate_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/locale_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__locale_t.h \
|
||||
/usr/include/c++/11/exception /usr/include/c++/11/bits/exception.h \
|
||||
/usr/include/c++/11/bits/exception_ptr.h \
|
||||
/usr/include/c++/11/bits/exception_defines.h \
|
||||
/usr/include/c++/11/bits/cxxabi_init_exception.h \
|
||||
/usr/include/c++/11/typeinfo /usr/include/c++/11/bits/hash_bytes.h \
|
||||
/usr/include/c++/11/new /usr/include/c++/11/bits/move.h \
|
||||
/usr/include/c++/11/type_traits \
|
||||
/usr/include/c++/11/bits/nested_exception.h \
|
||||
/usr/include/c++/11/bits/char_traits.h \
|
||||
/usr/include/c++/11/bits/stl_algobase.h \
|
||||
/usr/include/c++/11/bits/functexcept.h \
|
||||
/usr/include/c++/11/bits/cpp_type_traits.h \
|
||||
/usr/include/c++/11/ext/type_traits.h \
|
||||
/usr/include/c++/11/ext/numeric_traits.h \
|
||||
/usr/include/c++/11/bits/stl_pair.h \
|
||||
/usr/include/c++/11/bits/stl_iterator_base_types.h \
|
||||
/usr/include/c++/11/bits/stl_iterator_base_funcs.h \
|
||||
/usr/include/c++/11/bits/concept_check.h \
|
||||
/usr/include/c++/11/debug/assertions.h \
|
||||
/usr/include/c++/11/bits/stl_iterator.h \
|
||||
/usr/include/c++/11/bits/ptr_traits.h /usr/include/c++/11/debug/debug.h \
|
||||
/usr/include/c++/11/bits/predefined_ops.h /usr/include/c++/11/cstdint \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdint.h /usr/include/stdint.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/typesizes.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/time64.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h \
|
||||
/usr/include/c++/11/bits/localefwd.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++locale.h \
|
||||
/usr/include/c++/11/clocale /usr/include/locale.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/locale.h /usr/include/c++/11/cctype \
|
||||
/usr/include/ctype.h /usr/include/aarch64-linux-gnu/bits/endian.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/endianness.h \
|
||||
/usr/include/c++/11/bits/ios_base.h /usr/include/c++/11/ext/atomicity.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr-default.h \
|
||||
/usr/include/pthread.h /usr/include/sched.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/time_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_timespec.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/sched.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_sched_param.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/cpu-set.h /usr/include/time.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/time.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/timex.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_timeval.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/clock_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_tm.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/clockid_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_itimerspec.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthreadtypes.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/thread-shared-types.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/atomic_wide_counter.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/struct_mutex.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/struct_rwlock.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/setjmp.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__sigset_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct___jmp_buf_tag.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthread_stack_min-dynamic.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/atomic_word.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/single_threaded.h \
|
||||
/usr/include/c++/11/bits/locale_classes.h /usr/include/c++/11/string \
|
||||
/usr/include/c++/11/bits/allocator.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++allocator.h \
|
||||
/usr/include/c++/11/ext/new_allocator.h \
|
||||
/usr/include/c++/11/bits/ostream_insert.h \
|
||||
/usr/include/c++/11/bits/cxxabi_forced.h \
|
||||
/usr/include/c++/11/bits/stl_function.h \
|
||||
/usr/include/c++/11/backward/binders.h \
|
||||
/usr/include/c++/11/bits/range_access.h \
|
||||
/usr/include/c++/11/initializer_list \
|
||||
/usr/include/c++/11/bits/basic_string.h \
|
||||
/usr/include/c++/11/ext/alloc_traits.h \
|
||||
/usr/include/c++/11/bits/alloc_traits.h \
|
||||
/usr/include/c++/11/bits/stl_construct.h /usr/include/c++/11/string_view \
|
||||
/usr/include/c++/11/bits/functional_hash.h \
|
||||
/usr/include/c++/11/bits/string_view.tcc \
|
||||
/usr/include/c++/11/ext/string_conversions.h /usr/include/c++/11/cstdlib \
|
||||
/usr/include/stdlib.h /usr/include/aarch64-linux-gnu/bits/waitflags.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/waitstatus.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/types.h /usr/include/endian.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/byteswap.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/uintn-identity.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/select.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/select.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h \
|
||||
/usr/include/alloca.h /usr/include/aarch64-linux-gnu/bits/stdlib-float.h \
|
||||
/usr/include/c++/11/bits/std_abs.h /usr/include/c++/11/cstdio \
|
||||
/usr/include/stdio.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__fpos_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__fpos64_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/cookie_io_functions_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdio_lim.h \
|
||||
/usr/include/c++/11/cerrno /usr/include/errno.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/errno.h /usr/include/linux/errno.h \
|
||||
/usr/include/aarch64-linux-gnu/asm/errno.h \
|
||||
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/error_t.h \
|
||||
/usr/include/c++/11/bits/charconv.h \
|
||||
/usr/include/c++/11/bits/basic_string.tcc \
|
||||
/usr/include/c++/11/bits/locale_classes.tcc \
|
||||
/usr/include/c++/11/system_error \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/error_constants.h \
|
||||
/usr/include/c++/11/stdexcept /usr/include/c++/11/streambuf \
|
||||
/usr/include/c++/11/bits/streambuf.tcc \
|
||||
/usr/include/c++/11/bits/basic_ios.h \
|
||||
/usr/include/c++/11/bits/locale_facets.h /usr/include/c++/11/cwctype \
|
||||
/usr/include/wctype.h /usr/include/aarch64-linux-gnu/bits/wctype-wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_base.h \
|
||||
/usr/include/c++/11/bits/streambuf_iterator.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_inline.h \
|
||||
/usr/include/c++/11/bits/locale_facets.tcc \
|
||||
/usr/include/c++/11/bits/basic_ios.tcc \
|
||||
/usr/include/c++/11/bits/ostream.tcc /usr/include/c++/11/istream \
|
||||
/usr/include/c++/11/bits/istream.tcc /usr/include/c++/11/thread \
|
||||
/usr/include/c++/11/bits/std_thread.h /usr/include/c++/11/tuple \
|
||||
/usr/include/c++/11/utility /usr/include/c++/11/bits/stl_relops.h \
|
||||
/usr/include/c++/11/array /usr/include/c++/11/bits/uses_allocator.h \
|
||||
/usr/include/c++/11/bits/invoke.h /usr/include/c++/11/bits/refwrap.h \
|
||||
/usr/include/c++/11/bits/unique_ptr.h \
|
||||
/usr/include/c++/11/bits/this_thread_sleep.h /usr/include/c++/11/chrono \
|
||||
/usr/include/c++/11/ratio /usr/include/c++/11/limits \
|
||||
/usr/include/c++/11/ctime /usr/include/c++/11/bits/parse_numbers.h \
|
||||
/usr/include/c++/11/fstream /usr/include/c++/11/bits/codecvt.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/basic_file.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++io.h \
|
||||
/usr/include/c++/11/bits/fstream.tcc /usr/include/c++/11/mutex \
|
||||
/usr/include/c++/11/bits/std_mutex.h \
|
||||
/usr/include/c++/11/bits/unique_lock.h /usr/include/c++/11/atomic \
|
||||
/usr/include/c++/11/bits/atomic_base.h \
|
||||
/usr/include/c++/11/bits/atomic_lockfree_defines.h \
|
||||
/usr/include/c++/11/math.h /usr/include/c++/11/cmath /usr/include/math.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/math-vector.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/libm-simd-decl-stubs.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/flt-eval-method.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/fp-logb.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/fp-fast.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/mathcalls-helper-functions.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/mathcalls.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/mathcalls-narrow.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/iscanonical.h \
|
||||
/usr/include/c++/11/bits/specfun.h /usr/include/c++/11/tr1/gamma.tcc \
|
||||
/usr/include/c++/11/tr1/special_function_util.h \
|
||||
/usr/include/c++/11/tr1/bessel_function.tcc \
|
||||
/usr/include/c++/11/tr1/beta_function.tcc \
|
||||
/usr/include/c++/11/tr1/ell_integral.tcc \
|
||||
/usr/include/c++/11/tr1/exp_integral.tcc \
|
||||
/usr/include/c++/11/tr1/hypergeometric.tcc \
|
||||
/usr/include/c++/11/tr1/legendre_function.tcc \
|
||||
/usr/include/c++/11/tr1/modified_bessel_func.tcc \
|
||||
/usr/include/c++/11/tr1/poly_hermite.tcc \
|
||||
/usr/include/c++/11/tr1/poly_laguerre.tcc \
|
||||
/usr/include/c++/11/tr1/riemann_zeta.tcc \
|
||||
/home/allenyuan/balance/dm_imu/bsp_crc.h /usr/include/fcntl.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/fcntl.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/fcntl-linux.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_iovec.h \
|
||||
/usr/include/linux/falloc.h /usr/include/aarch64-linux-gnu/bits/stat.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/struct_stat.h /usr/include/unistd.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/posix_opt.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/environments.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/confname.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/getopt_posix.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/getopt_core.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/unistd_ext.h \
|
||||
/usr/include/linux/close_range.h /usr/include/termios.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-struct.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-c_cc.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-c_iflag.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-c_oflag.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-baud.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-c_cflag.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-c_lflag.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-tcflow.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/termios-misc.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/ttydefaults.h
|
||||
1
pybind_imu/build/CMakeFiles/imu_py.dir/link.txt
Normal file
1
pybind_imu/build/CMakeFiles/imu_py.dir/link.txt
Normal file
@@ -0,0 +1 @@
|
||||
/usr/bin/c++ -fPIC -flto=auto -shared -o imu_py.cpython-310-aarch64-linux-gnu.so CMakeFiles/imu_py.dir/pybind_imu.cpp.o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o -lpthread
|
||||
5
pybind_imu/build/CMakeFiles/imu_py.dir/progress.make
Normal file
5
pybind_imu/build/CMakeFiles/imu_py.dir/progress.make
Normal file
@@ -0,0 +1,5 @@
|
||||
CMAKE_PROGRESS_1 = 1
|
||||
CMAKE_PROGRESS_2 = 2
|
||||
CMAKE_PROGRESS_3 = 3
|
||||
CMAKE_PROGRESS_4 = 4
|
||||
|
||||
BIN
pybind_imu/build/CMakeFiles/imu_py.dir/pybind_imu.cpp.o
Normal file
BIN
pybind_imu/build/CMakeFiles/imu_py.dir/pybind_imu.cpp.o
Normal file
Binary file not shown.
410
pybind_imu/build/CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d
Normal file
410
pybind_imu/build/CMakeFiles/imu_py.dir/pybind_imu.cpp.o.d
Normal file
@@ -0,0 +1,410 @@
|
||||
CMakeFiles/imu_py.dir/pybind_imu.cpp.o: \
|
||||
/home/allenyuan/balance/pybind_imu/pybind_imu.cpp \
|
||||
/usr/include/stdc-predef.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/pybind11.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/class.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/attr.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/common.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/conduit/wrap_include_python_h.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/Python.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/patchlevel.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pyconfig.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pymacconfig.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/limits.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/syslimits.h \
|
||||
/usr/include/limits.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/libc-header-start.h \
|
||||
/usr/include/features.h /usr/include/features-time64.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/wordsize.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/timesize.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/cdefs.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/long-double.h \
|
||||
/usr/include/aarch64-linux-gnu/gnu/stubs.h \
|
||||
/usr/include/aarch64-linux-gnu/gnu/stubs-lp64.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/posix1_lim.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/local_lim.h \
|
||||
/usr/include/linux/limits.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthread_stack_min-dynamic.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/posix2_lim.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/xopen_lim.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/uio_lim.h /usr/include/stdio.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stddef.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdarg.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/typesizes.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/time64.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__fpos_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__mbstate_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__fpos64_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_FILE.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/cookie_io_functions_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdio_lim.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/floatn.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/floatn-common.h \
|
||||
/usr/include/string.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/locale_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__locale_t.h \
|
||||
/usr/include/strings.h /usr/include/errno.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/errno.h /usr/include/linux/errno.h \
|
||||
/usr/include/aarch64-linux-gnu/asm/errno.h \
|
||||
/usr/include/asm-generic/errno.h /usr/include/asm-generic/errno-base.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/error_t.h \
|
||||
/usr/include/c++/11/stdlib.h /usr/include/c++/11/cstdlib \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++config.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/os_defines.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/cpu_defines.h \
|
||||
/usr/include/c++/11/pstl/pstl_config.h /usr/include/stdlib.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/waitflags.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/waitstatus.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/types.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/clock_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/clockid_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/time_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/timer_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdint-intn.h /usr/include/endian.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/endian.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/endianness.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/byteswap.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/uintn-identity.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/select.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/select.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/sigset_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/__sigset_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_timeval.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_timespec.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthreadtypes.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/thread-shared-types.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/pthreadtypes-arch.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/atomic_wide_counter.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/struct_mutex.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/struct_rwlock.h \
|
||||
/usr/include/alloca.h /usr/include/aarch64-linux-gnu/bits/stdlib-float.h \
|
||||
/usr/include/c++/11/bits/std_abs.h /usr/include/unistd.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/posix_opt.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/environments.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/confname.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/getopt_posix.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/getopt_core.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/unistd_ext.h \
|
||||
/usr/include/linux/close_range.h /usr/include/assert.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pyport.h \
|
||||
/usr/include/inttypes.h \
|
||||
/usr/lib/gcc/aarch64-linux-gnu/11/include/stdint.h /usr/include/stdint.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stdint-uintn.h \
|
||||
/usr/include/c++/11/math.h /usr/include/c++/11/cmath \
|
||||
/usr/include/c++/11/bits/cpp_type_traits.h \
|
||||
/usr/include/c++/11/ext/type_traits.h /usr/include/math.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/math-vector.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/libm-simd-decl-stubs.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/flt-eval-method.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/fp-logb.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/fp-fast.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/mathcalls-helper-functions.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/mathcalls.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/mathcalls-narrow.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/iscanonical.h \
|
||||
/usr/include/c++/11/bits/specfun.h \
|
||||
/usr/include/c++/11/bits/stl_algobase.h \
|
||||
/usr/include/c++/11/bits/functexcept.h \
|
||||
/usr/include/c++/11/bits/exception_defines.h \
|
||||
/usr/include/c++/11/ext/numeric_traits.h \
|
||||
/usr/include/c++/11/bits/stl_pair.h /usr/include/c++/11/bits/move.h \
|
||||
/usr/include/c++/11/type_traits \
|
||||
/usr/include/c++/11/bits/stl_iterator_base_types.h \
|
||||
/usr/include/c++/11/bits/stl_iterator_base_funcs.h \
|
||||
/usr/include/c++/11/bits/concept_check.h \
|
||||
/usr/include/c++/11/debug/assertions.h \
|
||||
/usr/include/c++/11/bits/stl_iterator.h \
|
||||
/usr/include/c++/11/bits/ptr_traits.h /usr/include/c++/11/debug/debug.h \
|
||||
/usr/include/c++/11/bits/predefined_ops.h /usr/include/c++/11/limits \
|
||||
/usr/include/c++/11/tr1/gamma.tcc \
|
||||
/usr/include/c++/11/tr1/special_function_util.h \
|
||||
/usr/include/c++/11/tr1/bessel_function.tcc \
|
||||
/usr/include/c++/11/tr1/beta_function.tcc \
|
||||
/usr/include/c++/11/tr1/ell_integral.tcc \
|
||||
/usr/include/c++/11/tr1/exp_integral.tcc \
|
||||
/usr/include/c++/11/tr1/hypergeometric.tcc \
|
||||
/usr/include/c++/11/tr1/legendre_function.tcc \
|
||||
/usr/include/c++/11/tr1/modified_bessel_func.tcc \
|
||||
/usr/include/c++/11/tr1/poly_hermite.tcc \
|
||||
/usr/include/c++/11/tr1/poly_laguerre.tcc \
|
||||
/usr/include/c++/11/tr1/riemann_zeta.tcc \
|
||||
/usr/include/aarch64-linux-gnu/sys/time.h /usr/include/time.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/time.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/timex.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_tm.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_itimerspec.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/stat.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/stat.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/struct_stat.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/statx.h /usr/include/linux/stat.h \
|
||||
/usr/include/linux/types.h /usr/include/aarch64-linux-gnu/asm/types.h \
|
||||
/usr/include/asm-generic/types.h /usr/include/asm-generic/int-ll64.h \
|
||||
/usr/include/aarch64-linux-gnu/asm/bitsperlong.h \
|
||||
/usr/include/asm-generic/bitsperlong.h /usr/include/linux/posix_types.h \
|
||||
/usr/include/linux/stddef.h \
|
||||
/usr/include/aarch64-linux-gnu/asm/posix_types.h \
|
||||
/usr/include/asm-generic/posix_types.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/statx-generic.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_statx_timestamp.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_statx.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/exports.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pymacro.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pymath.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pymem.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pymem.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/object.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/object.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/objimpl.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/objimpl.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/typeslots.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pyhash.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pydebug.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/bytearrayobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/bytearrayobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/bytesobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/bytesobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/unicodeobject.h \
|
||||
/usr/include/ctype.h /usr/include/wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/wint_t.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/mbstate_t.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/unicodeobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/longobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/longintrepr.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/boolobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/floatobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/complexobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/rangeobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/memoryobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/tupleobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/tupleobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/listobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/listobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/dictobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/dictobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/odictobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/enumobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/setobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/methodobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/methodobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/moduleobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/funcobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/classobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/fileobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/fileobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pycapsule.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/code.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/code.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pyframe.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/traceback.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/traceback.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/sliceobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cellobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/iterobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/initconfig.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/genobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pystate.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pystate.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/abstract.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/abstract.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/descrobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/genericaliasobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/warnings.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/weakrefobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/structseq.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/namespaceobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/picklebufobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pytime.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/codecs.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pyerrors.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pyerrors.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pythread.h \
|
||||
/usr/include/pthread.h /usr/include/sched.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/sched.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct_sched_param.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/cpu-set.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/setjmp.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/types/struct___jmp_buf_tag.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/context.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/modsupport.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/compile.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/compile.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pythonrun.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pythonrun.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pylifecycle.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pylifecycle.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/ceval.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/ceval.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/sysmodule.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/sysmodule.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/osmodule.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/intrcheck.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/import.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/import.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/bltinmodule.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/eval.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pyctype.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pystrtod.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pystrcmp.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/fileutils.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/fileutils.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/pyfpe.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/tracemalloc.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/frameobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/cpython/frameobject.h \
|
||||
/home/allenyuan/miniconda3/envs/stf/include/python3.10/pythread.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/pybind11_namespace_macros.h \
|
||||
/usr/include/c++/11/cstddef /usr/include/c++/11/cstring \
|
||||
/usr/include/c++/11/exception /usr/include/c++/11/bits/exception.h \
|
||||
/usr/include/c++/11/bits/exception_ptr.h \
|
||||
/usr/include/c++/11/bits/cxxabi_init_exception.h \
|
||||
/usr/include/c++/11/typeinfo /usr/include/c++/11/bits/hash_bytes.h \
|
||||
/usr/include/c++/11/new /usr/include/c++/11/bits/nested_exception.h \
|
||||
/usr/include/c++/11/forward_list /usr/include/c++/11/bits/forward_list.h \
|
||||
/usr/include/c++/11/initializer_list \
|
||||
/usr/include/c++/11/bits/stl_function.h \
|
||||
/usr/include/c++/11/backward/binders.h \
|
||||
/usr/include/c++/11/bits/allocator.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++allocator.h \
|
||||
/usr/include/c++/11/ext/new_allocator.h \
|
||||
/usr/include/c++/11/bits/memoryfwd.h \
|
||||
/usr/include/c++/11/ext/alloc_traits.h \
|
||||
/usr/include/c++/11/bits/alloc_traits.h \
|
||||
/usr/include/c++/11/bits/stl_construct.h \
|
||||
/usr/include/c++/11/ext/aligned_buffer.h \
|
||||
/usr/include/c++/11/bits/range_access.h \
|
||||
/usr/include/c++/11/bits/forward_list.tcc /usr/include/c++/11/memory \
|
||||
/usr/include/c++/11/bits/stl_uninitialized.h \
|
||||
/usr/include/c++/11/bits/stl_tempbuf.h \
|
||||
/usr/include/c++/11/bits/stl_raw_storage_iter.h \
|
||||
/usr/include/c++/11/bits/align.h /usr/include/c++/11/bit \
|
||||
/usr/include/c++/11/bits/uses_allocator.h \
|
||||
/usr/include/c++/11/bits/unique_ptr.h /usr/include/c++/11/utility \
|
||||
/usr/include/c++/11/bits/stl_relops.h /usr/include/c++/11/tuple \
|
||||
/usr/include/c++/11/array /usr/include/c++/11/bits/invoke.h \
|
||||
/usr/include/c++/11/bits/functional_hash.h \
|
||||
/usr/include/c++/11/bits/shared_ptr.h /usr/include/c++/11/iosfwd \
|
||||
/usr/include/c++/11/bits/stringfwd.h /usr/include/c++/11/bits/postypes.h \
|
||||
/usr/include/c++/11/cwchar /usr/include/c++/11/bits/shared_ptr_base.h \
|
||||
/usr/include/c++/11/bits/allocated_ptr.h \
|
||||
/usr/include/c++/11/bits/refwrap.h /usr/include/c++/11/ext/atomicity.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/gthr-default.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/atomic_word.h \
|
||||
/usr/include/aarch64-linux-gnu/sys/single_threaded.h \
|
||||
/usr/include/c++/11/ext/concurrence.h \
|
||||
/usr/include/c++/11/bits/shared_ptr_atomic.h \
|
||||
/usr/include/c++/11/bits/atomic_base.h \
|
||||
/usr/include/c++/11/bits/atomic_lockfree_defines.h \
|
||||
/usr/include/c++/11/backward/auto_ptr.h \
|
||||
/usr/include/c++/11/pstl/glue_memory_defs.h \
|
||||
/usr/include/c++/11/pstl/execution_defs.h /usr/include/c++/11/stdexcept \
|
||||
/usr/include/c++/11/string /usr/include/c++/11/bits/char_traits.h \
|
||||
/usr/include/c++/11/cstdint /usr/include/c++/11/bits/localefwd.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++locale.h \
|
||||
/usr/include/c++/11/clocale /usr/include/locale.h \
|
||||
/usr/include/aarch64-linux-gnu/bits/locale.h /usr/include/c++/11/cctype \
|
||||
/usr/include/c++/11/bits/ostream_insert.h \
|
||||
/usr/include/c++/11/bits/cxxabi_forced.h \
|
||||
/usr/include/c++/11/bits/basic_string.h /usr/include/c++/11/string_view \
|
||||
/usr/include/c++/11/bits/string_view.tcc \
|
||||
/usr/include/c++/11/ext/string_conversions.h /usr/include/c++/11/cstdio \
|
||||
/usr/include/c++/11/cerrno /usr/include/c++/11/bits/charconv.h \
|
||||
/usr/include/c++/11/bits/basic_string.tcc /usr/include/c++/11/typeindex \
|
||||
/usr/include/c++/11/unordered_map /usr/include/c++/11/bits/hashtable.h \
|
||||
/usr/include/c++/11/bits/hashtable_policy.h \
|
||||
/usr/include/c++/11/bits/enable_special_members.h \
|
||||
/usr/include/c++/11/bits/node_handle.h \
|
||||
/usr/include/c++/11/bits/unordered_map.h \
|
||||
/usr/include/c++/11/bits/erase_if.h /usr/include/c++/11/unordered_set \
|
||||
/usr/include/c++/11/bits/unordered_set.h /usr/include/c++/11/vector \
|
||||
/usr/include/c++/11/bits/stl_vector.h \
|
||||
/usr/include/c++/11/bits/stl_bvector.h \
|
||||
/usr/include/c++/11/bits/vector.tcc /usr/include/c++/11/version \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/cast.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/descr.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/native_enum_data.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/pytypes.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/buffer_info.h \
|
||||
/usr/include/c++/11/iterator /usr/include/c++/11/bits/stream_iterator.h \
|
||||
/usr/include/c++/11/bits/streambuf_iterator.h \
|
||||
/usr/include/c++/11/streambuf /usr/include/c++/11/bits/ios_base.h \
|
||||
/usr/include/c++/11/bits/locale_classes.h \
|
||||
/usr/include/c++/11/bits/locale_classes.tcc \
|
||||
/usr/include/c++/11/system_error \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/error_constants.h \
|
||||
/usr/include/c++/11/bits/streambuf.tcc /usr/include/c++/11/optional \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/internals.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/conduit/pybind11_platform_abi_id.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/gil_simple.h \
|
||||
/usr/include/c++/11/cassert \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/trampoline_self_life_support.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/using_smart_holder.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/struct_smart_holder.h \
|
||||
/usr/include/c++/11/functional /usr/include/c++/11/bits/std_function.h \
|
||||
/usr/include/c++/11/bits/stl_algo.h \
|
||||
/usr/include/c++/11/bits/algorithmfwd.h \
|
||||
/usr/include/c++/11/bits/stl_heap.h \
|
||||
/usr/include/c++/11/bits/uniform_int_dist.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/value_and_holder.h \
|
||||
/usr/include/c++/11/atomic /usr/include/c++/11/mutex \
|
||||
/usr/include/c++/11/chrono /usr/include/c++/11/ratio \
|
||||
/usr/include/c++/11/ctime /usr/include/c++/11/bits/parse_numbers.h \
|
||||
/usr/include/c++/11/bits/std_mutex.h \
|
||||
/usr/include/c++/11/bits/unique_lock.h /usr/include/c++/11/thread \
|
||||
/usr/include/c++/11/bits/std_thread.h \
|
||||
/usr/include/c++/11/bits/this_thread_sleep.h /usr/include/c++/11/sstream \
|
||||
/usr/include/c++/11/istream /usr/include/c++/11/ios \
|
||||
/usr/include/c++/11/bits/basic_ios.h \
|
||||
/usr/include/c++/11/bits/locale_facets.h /usr/include/c++/11/cwctype \
|
||||
/usr/include/wctype.h /usr/include/aarch64-linux-gnu/bits/wctype-wchar.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_base.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/ctype_inline.h \
|
||||
/usr/include/c++/11/bits/locale_facets.tcc \
|
||||
/usr/include/c++/11/bits/basic_ios.tcc /usr/include/c++/11/ostream \
|
||||
/usr/include/c++/11/bits/ostream.tcc \
|
||||
/usr/include/c++/11/bits/istream.tcc \
|
||||
/usr/include/c++/11/bits/sstream.tcc \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/type_caster_base.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/gil.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/cpp_conduit.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/dynamic_raw_ptr_cast_if_possible.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/typeid.h \
|
||||
/usr/include/c++/11/cxxabi.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/cxxabi_tweaks.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/options.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/exception_translation.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/function_record_pyobject.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/detail/init.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/gil_safe_call_once.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/typing.h \
|
||||
/usr/include/c++/11/algorithm \
|
||||
/usr/include/c++/11/pstl/glue_algorithm_defs.h /usr/include/c++/11/stack \
|
||||
/usr/include/c++/11/deque /usr/include/c++/11/bits/stl_deque.h \
|
||||
/usr/include/c++/11/bits/deque.tcc /usr/include/c++/11/bits/stl_stack.h \
|
||||
/home/allenyuan/.local/lib/python3.10/site-packages/pybind11/include/pybind11/stl.h \
|
||||
/usr/include/c++/11/list /usr/include/c++/11/bits/stl_list.h \
|
||||
/usr/include/c++/11/bits/list.tcc /usr/include/c++/11/map \
|
||||
/usr/include/c++/11/bits/stl_tree.h /usr/include/c++/11/bits/stl_map.h \
|
||||
/usr/include/c++/11/bits/stl_multimap.h /usr/include/c++/11/set \
|
||||
/usr/include/c++/11/bits/stl_set.h \
|
||||
/usr/include/c++/11/bits/stl_multiset.h /usr/include/c++/11/valarray \
|
||||
/usr/include/c++/11/bits/valarray_array.h \
|
||||
/usr/include/c++/11/bits/valarray_array.tcc \
|
||||
/usr/include/c++/11/bits/valarray_before.h \
|
||||
/usr/include/c++/11/bits/slice_array.h \
|
||||
/usr/include/c++/11/bits/valarray_after.h \
|
||||
/usr/include/c++/11/bits/gslice.h \
|
||||
/usr/include/c++/11/bits/gslice_array.h \
|
||||
/usr/include/c++/11/bits/mask_array.h \
|
||||
/usr/include/c++/11/bits/indirect_array.h /usr/include/c++/11/variant \
|
||||
/home/allenyuan/balance/pybind_imu/../dm_imu/imu_driver.h \
|
||||
/usr/include/c++/11/iostream /usr/include/c++/11/fstream \
|
||||
/usr/include/c++/11/bits/codecvt.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/basic_file.h \
|
||||
/usr/include/aarch64-linux-gnu/c++/11/bits/c++io.h \
|
||||
/usr/include/c++/11/bits/fstream.tcc \
|
||||
/home/allenyuan/balance/pybind_imu/../dm_imu/bsp_crc.h
|
||||
1
pybind_imu/build/CMakeFiles/progress.marks
Normal file
1
pybind_imu/build/CMakeFiles/progress.marks
Normal file
@@ -0,0 +1 @@
|
||||
4
|
||||
235
pybind_imu/build/Makefile
Normal file
235
pybind_imu/build/Makefile
Normal file
@@ -0,0 +1,235 @@
|
||||
# CMAKE generated file: DO NOT EDIT!
|
||||
# Generated by "Unix Makefiles" Generator, CMake Version 3.22
|
||||
|
||||
# Default target executed when no arguments are given to make.
|
||||
default_target: all
|
||||
.PHONY : default_target
|
||||
|
||||
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
|
||||
.NOTPARALLEL:
|
||||
|
||||
#=============================================================================
|
||||
# Special targets provided by cmake.
|
||||
|
||||
# Disable implicit rules so canonical targets will work.
|
||||
.SUFFIXES:
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : %,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : RCS/%,v
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : SCCS/s.%
|
||||
|
||||
# Disable VCS-based implicit rules.
|
||||
% : s.%
|
||||
|
||||
.SUFFIXES: .hpux_make_needs_suffix_list
|
||||
|
||||
# Command-line flag to silence nested $(MAKE).
|
||||
$(VERBOSE)MAKESILENT = -s
|
||||
|
||||
#Suppress display of executed commands.
|
||||
$(VERBOSE).SILENT:
|
||||
|
||||
# A target that is always out of date.
|
||||
cmake_force:
|
||||
.PHONY : cmake_force
|
||||
|
||||
#=============================================================================
|
||||
# Set environment variables for the build.
|
||||
|
||||
# The shell in which to execute make rules.
|
||||
SHELL = /bin/sh
|
||||
|
||||
# The CMake executable.
|
||||
CMAKE_COMMAND = /usr/bin/cmake
|
||||
|
||||
# The command to remove a file.
|
||||
RM = /usr/bin/cmake -E rm -f
|
||||
|
||||
# Escaping for special characters.
|
||||
EQUALS = =
|
||||
|
||||
# The top-level source directory on which CMake was run.
|
||||
CMAKE_SOURCE_DIR = /home/allenyuan/balance/pybind_imu
|
||||
|
||||
# The top-level build directory on which CMake was run.
|
||||
CMAKE_BINARY_DIR = /home/allenyuan/balance/pybind_imu/build
|
||||
|
||||
#=============================================================================
|
||||
# Targets provided globally by CMake.
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
|
||||
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
|
||||
.PHONY : edit_cache
|
||||
|
||||
# Special rule for the target edit_cache
|
||||
edit_cache/fast: edit_cache
|
||||
.PHONY : edit_cache/fast
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache:
|
||||
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
|
||||
/usr/bin/cmake --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
|
||||
.PHONY : rebuild_cache
|
||||
|
||||
# Special rule for the target rebuild_cache
|
||||
rebuild_cache/fast: rebuild_cache
|
||||
.PHONY : rebuild_cache/fast
|
||||
|
||||
# The main all target
|
||||
all: cmake_check_build_system
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/allenyuan/balance/pybind_imu/build/CMakeFiles /home/allenyuan/balance/pybind_imu/build//CMakeFiles/progress.marks
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 all
|
||||
$(CMAKE_COMMAND) -E cmake_progress_start /home/allenyuan/balance/pybind_imu/build/CMakeFiles 0
|
||||
.PHONY : all
|
||||
|
||||
# The main clean target
|
||||
clean:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 clean
|
||||
.PHONY : clean
|
||||
|
||||
# The main clean target
|
||||
clean/fast: clean
|
||||
.PHONY : clean/fast
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall: all
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
||||
.PHONY : preinstall
|
||||
|
||||
# Prepare targets for installation.
|
||||
preinstall/fast:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 preinstall
|
||||
.PHONY : preinstall/fast
|
||||
|
||||
# clear depends
|
||||
depend:
|
||||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
.PHONY : depend
|
||||
|
||||
#=============================================================================
|
||||
# Target rules for targets named imu_py
|
||||
|
||||
# Build rule for target.
|
||||
imu_py: cmake_check_build_system
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/Makefile2 imu_py
|
||||
.PHONY : imu_py
|
||||
|
||||
# fast build rule for target.
|
||||
imu_py/fast:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/build
|
||||
.PHONY : imu_py/fast
|
||||
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.o: home/allenyuan/balance/dm_imu/bsp_crc.cpp.o
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.o
|
||||
|
||||
# target to build an object file
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.cpp.o:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.o
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.cpp.o
|
||||
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.i: home/allenyuan/balance/dm_imu/bsp_crc.cpp.i
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.i
|
||||
|
||||
# target to preprocess a source file
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.cpp.i:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.i
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.cpp.i
|
||||
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.s: home/allenyuan/balance/dm_imu/bsp_crc.cpp.s
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
home/allenyuan/balance/dm_imu/bsp_crc.cpp.s:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/bsp_crc.cpp.s
|
||||
.PHONY : home/allenyuan/balance/dm_imu/bsp_crc.cpp.s
|
||||
|
||||
home/allenyuan/balance/dm_imu/imu_driver.o: home/allenyuan/balance/dm_imu/imu_driver.cpp.o
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.o
|
||||
|
||||
# target to build an object file
|
||||
home/allenyuan/balance/dm_imu/imu_driver.cpp.o:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.o
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.cpp.o
|
||||
|
||||
home/allenyuan/balance/dm_imu/imu_driver.i: home/allenyuan/balance/dm_imu/imu_driver.cpp.i
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.i
|
||||
|
||||
# target to preprocess a source file
|
||||
home/allenyuan/balance/dm_imu/imu_driver.cpp.i:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.i
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.cpp.i
|
||||
|
||||
home/allenyuan/balance/dm_imu/imu_driver.s: home/allenyuan/balance/dm_imu/imu_driver.cpp.s
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
home/allenyuan/balance/dm_imu/imu_driver.cpp.s:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/home/allenyuan/balance/dm_imu/imu_driver.cpp.s
|
||||
.PHONY : home/allenyuan/balance/dm_imu/imu_driver.cpp.s
|
||||
|
||||
pybind_imu.o: pybind_imu.cpp.o
|
||||
.PHONY : pybind_imu.o
|
||||
|
||||
# target to build an object file
|
||||
pybind_imu.cpp.o:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/pybind_imu.cpp.o
|
||||
.PHONY : pybind_imu.cpp.o
|
||||
|
||||
pybind_imu.i: pybind_imu.cpp.i
|
||||
.PHONY : pybind_imu.i
|
||||
|
||||
# target to preprocess a source file
|
||||
pybind_imu.cpp.i:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/pybind_imu.cpp.i
|
||||
.PHONY : pybind_imu.cpp.i
|
||||
|
||||
pybind_imu.s: pybind_imu.cpp.s
|
||||
.PHONY : pybind_imu.s
|
||||
|
||||
# target to generate assembly for a file
|
||||
pybind_imu.cpp.s:
|
||||
$(MAKE) $(MAKESILENT) -f CMakeFiles/imu_py.dir/build.make CMakeFiles/imu_py.dir/pybind_imu.cpp.s
|
||||
.PHONY : pybind_imu.cpp.s
|
||||
|
||||
# Help Target
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... clean"
|
||||
@echo "... depend"
|
||||
@echo "... edit_cache"
|
||||
@echo "... rebuild_cache"
|
||||
@echo "... imu_py"
|
||||
@echo "... home/allenyuan/balance/dm_imu/bsp_crc.o"
|
||||
@echo "... home/allenyuan/balance/dm_imu/bsp_crc.i"
|
||||
@echo "... home/allenyuan/balance/dm_imu/bsp_crc.s"
|
||||
@echo "... home/allenyuan/balance/dm_imu/imu_driver.o"
|
||||
@echo "... home/allenyuan/balance/dm_imu/imu_driver.i"
|
||||
@echo "... home/allenyuan/balance/dm_imu/imu_driver.s"
|
||||
@echo "... pybind_imu.o"
|
||||
@echo "... pybind_imu.i"
|
||||
@echo "... pybind_imu.s"
|
||||
.PHONY : help
|
||||
|
||||
|
||||
|
||||
#=============================================================================
|
||||
# Special targets to cleanup operation of make.
|
||||
|
||||
# Special rule to run CMake to check the build system integrity.
|
||||
# No rule that depends on this can have commands that come from listfiles
|
||||
# because they might be regenerated.
|
||||
cmake_check_build_system:
|
||||
$(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
|
||||
.PHONY : cmake_check_build_system
|
||||
|
||||
54
pybind_imu/build/cmake_install.cmake
Normal file
54
pybind_imu/build/cmake_install.cmake
Normal file
@@ -0,0 +1,54 @@
|
||||
# Install script for directory: /home/allenyuan/balance/pybind_imu
|
||||
|
||||
# Set the install prefix
|
||||
if(NOT DEFINED CMAKE_INSTALL_PREFIX)
|
||||
set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
endif()
|
||||
string(REGEX REPLACE "/$" "" CMAKE_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
# Set the install configuration name.
|
||||
if(NOT DEFINED CMAKE_INSTALL_CONFIG_NAME)
|
||||
if(BUILD_TYPE)
|
||||
string(REGEX REPLACE "^[^A-Za-z0-9_]+" ""
|
||||
CMAKE_INSTALL_CONFIG_NAME "${BUILD_TYPE}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_CONFIG_NAME "")
|
||||
endif()
|
||||
message(STATUS "Install configuration: \"${CMAKE_INSTALL_CONFIG_NAME}\"")
|
||||
endif()
|
||||
|
||||
# Set the component getting installed.
|
||||
if(NOT CMAKE_INSTALL_COMPONENT)
|
||||
if(COMPONENT)
|
||||
message(STATUS "Install component: \"${COMPONENT}\"")
|
||||
set(CMAKE_INSTALL_COMPONENT "${COMPONENT}")
|
||||
else()
|
||||
set(CMAKE_INSTALL_COMPONENT)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# Install shared libraries without execute permission?
|
||||
if(NOT DEFINED CMAKE_INSTALL_SO_NO_EXE)
|
||||
set(CMAKE_INSTALL_SO_NO_EXE "1")
|
||||
endif()
|
||||
|
||||
# Is this installation the result of a crosscompile?
|
||||
if(NOT DEFINED CMAKE_CROSSCOMPILING)
|
||||
set(CMAKE_CROSSCOMPILING "FALSE")
|
||||
endif()
|
||||
|
||||
# Set default install directory permissions.
|
||||
if(NOT DEFINED CMAKE_OBJDUMP)
|
||||
set(CMAKE_OBJDUMP "/usr/bin/objdump")
|
||||
endif()
|
||||
|
||||
if(CMAKE_INSTALL_COMPONENT)
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest_${CMAKE_INSTALL_COMPONENT}.txt")
|
||||
else()
|
||||
set(CMAKE_INSTALL_MANIFEST "install_manifest.txt")
|
||||
endif()
|
||||
|
||||
string(REPLACE ";" "\n" CMAKE_INSTALL_MANIFEST_CONTENT
|
||||
"${CMAKE_INSTALL_MANIFEST_FILES}")
|
||||
file(WRITE "/home/allenyuan/balance/pybind_imu/build/${CMAKE_INSTALL_MANIFEST}"
|
||||
"${CMAKE_INSTALL_MANIFEST_CONTENT}")
|
||||
BIN
pybind_imu/build/imu_py.cpython-310-aarch64-linux-gnu.so
Normal file
BIN
pybind_imu/build/imu_py.cpython-310-aarch64-linux-gnu.so
Normal file
Binary file not shown.
70
pybind_imu/example.py
Normal file
70
pybind_imu/example.py
Normal file
@@ -0,0 +1,70 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
example.py – Demonstrates how to use the pybind11‑wrapped DM‑IMU driver.
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
* The compiled shared library `imu_py*.so` must exist (see README.md for build steps).
|
||||
* The current user must have read/write access to the IMU serial device
|
||||
(e.g. /dev/ttyACM1). Use `sudo` or add the user to the `dialout` group
|
||||
if necessary.
|
||||
|
||||
Usage
|
||||
-----
|
||||
$ python3 example.py
|
||||
"""
|
||||
|
||||
import pathlib
|
||||
import importlib.util
|
||||
import sys
|
||||
import signal
|
||||
import time
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Load the compiled extension module.
|
||||
# Adjust the path if you installed the .so elsewhere.
|
||||
# ----------------------------------------------------------------------
|
||||
module_path = pathlib.Path(__file__).parent / "build" / "imu_py.cpython-310-aarch64-linux-gnu.so"
|
||||
if not module_path.is_file():
|
||||
sys.stderr.write(f"Error: compiled module not found at {module_path}\n")
|
||||
sys.exit(1)
|
||||
|
||||
spec = importlib.util.spec_from_file_location("imu_py", module_path)
|
||||
imu_py = importlib.util.module_from_spec(spec)
|
||||
spec.loader.exec_module(imu_py)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Helper to cleanly stop the IMU thread on SIGINT / SIGTERM.
|
||||
# ----------------------------------------------------------------------
|
||||
def _signal_handler(sig, frame):
|
||||
print("\nReceived interrupt – stopping IMU...")
|
||||
imu.stop()
|
||||
sys.exit(0)
|
||||
|
||||
signal.signal(signal.SIGINT, _signal_handler)
|
||||
signal.signal(signal.SIGTERM, _signal_handler)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Create an IMU instance.
|
||||
# You can change the serial port or baud rate if your hardware differs.
|
||||
# ----------------------------------------------------------------------
|
||||
imu = imu_py.DmImu("/dev/ttyACM0", 921600)
|
||||
|
||||
print("Starting IMU data acquisition...")
|
||||
imu.start()
|
||||
|
||||
print("Press Ctrl‑C to stop.\n")
|
||||
try:
|
||||
while True:
|
||||
data = imu.getData()
|
||||
# Pretty‑print the dictionary; you may replace this with logging, saving, etc.
|
||||
print(
|
||||
f"acc: ({data['accx']:.3f}, {data['accy']:.3f}, {data['accz']:.3f}) "
|
||||
f"gyro: ({data['gyrox']:.3f}, {data['gyroy']:.3f}, {data['gyroz']:.3f}) "
|
||||
f"euler: (roll={data['roll']:.2f}, pitch={data['pitch']:.2f}, yaw={data['yaw']:.2f})"
|
||||
)
|
||||
# Adjust the sleep interval as needed (here we poll at ~10 Hz).
|
||||
time.sleep(0.01)
|
||||
except KeyboardInterrupt:
|
||||
# Fallback in case the signal handler missed the interrupt.
|
||||
_signal_handler(None, None)
|
||||
36
pybind_imu/pybind_imu.cpp
Normal file
36
pybind_imu/pybind_imu.cpp
Normal file
@@ -0,0 +1,36 @@
|
||||
#include <pybind11/pybind11.h>
|
||||
#include <pybind11/stl.h>
|
||||
#include "dm_imu/imu_driver.h"
|
||||
|
||||
namespace py = pybind11;
|
||||
using namespace dmbot_serial;
|
||||
|
||||
/* Convert IMU_Data to a Python dict */
|
||||
py::dict imu_data_to_dict(const IMU_Data &data) {
|
||||
py::dict d;
|
||||
d["accx"] = data.accx;
|
||||
d["accy"] = data.accy;
|
||||
d["accz"] = data.accz;
|
||||
d["gyrox"] = data.gyrox;
|
||||
d["gyroy"] = data.gyroy;
|
||||
d["gyroz"] = data.gyroz;
|
||||
d["roll"] = data.roll;
|
||||
d["pitch"] = data.pitch;
|
||||
d["yaw"] = data.yaw;
|
||||
return d;
|
||||
}
|
||||
|
||||
PYBIND11_MODULE(imu_py, m) {
|
||||
m.doc() = "Python bindings for DM‑IMU driver";
|
||||
|
||||
py::class_<DmImu>(m, "DmImu")
|
||||
.def(py::init<const std::string&, int>(),
|
||||
py::arg("port") = "/dev/ttyACM1",
|
||||
py::arg("baud") = 921600)
|
||||
.def("start", &DmImu::start)
|
||||
.def("stop", &DmImu::stop)
|
||||
.def("getData",
|
||||
[](const DmImu &self) {
|
||||
return imu_data_to_dict(self.getData());
|
||||
});
|
||||
}
|
||||
51
src/example.py
Normal file
51
src/example.py
Normal file
@@ -0,0 +1,51 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
example.py – Demonstrates how to use the pybind11‑wrapped DM‑IMU driver.
|
||||
|
||||
Prerequisites
|
||||
-------------
|
||||
* The compiled shared library `imu_py*.so` must exist (see README.md for build steps).
|
||||
* The current user must have read/write access to the IMU serial device
|
||||
(e.g. /dev/ttyACM1). Use `sudo` or add the user to the `dialout` group
|
||||
if necessary.
|
||||
|
||||
Usage
|
||||
-----
|
||||
$ python3 example.py
|
||||
"""
|
||||
|
||||
import sys
|
||||
import signal
|
||||
import time
|
||||
import imu_py
|
||||
|
||||
def _signal_handler(sig, frame):
|
||||
print("\nReceived interrupt – stopping IMU...")
|
||||
imu.stop()
|
||||
sys.exit(0)
|
||||
|
||||
signal.signal(signal.SIGINT, _signal_handler)
|
||||
signal.signal(signal.SIGTERM, _signal_handler)
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Create an IMU instance.
|
||||
# You can change the serial port or baud rate if your hardware differs.
|
||||
# ----------------------------------------------------------------------
|
||||
imu = imu_py.DmImu("/dev/ttyACM0", 921600)
|
||||
|
||||
print("Starting IMU data acquisition...")
|
||||
imu.start()
|
||||
|
||||
print("Press Ctrl‑C to stop.\n")
|
||||
try:
|
||||
while True:
|
||||
data = imu.getData()
|
||||
# Pretty‑print the dictionary; you may replace this with logging, saving, etc.
|
||||
print(
|
||||
f"euler: (roll={data['roll']:.2f}, pitch={data['pitch']:.2f}, yaw={data['yaw']:.2f})"
|
||||
)
|
||||
# Adjust the sleep interval as needed (here we poll at ~10 Hz).
|
||||
time.sleep(0.01)
|
||||
except KeyboardInterrupt:
|
||||
# Fallback in case the signal handler missed the interrupt.
|
||||
_signal_handler(None, None)
|
||||
625
u2can/DM_CAN.py
Normal file
625
u2can/DM_CAN.py
Normal file
@@ -0,0 +1,625 @@
|
||||
from time import sleep
|
||||
import numpy as np
|
||||
from enum import IntEnum
|
||||
from struct import unpack
|
||||
from struct import pack
|
||||
|
||||
|
||||
class Motor:
|
||||
def __init__(self, MotorType, SlaveID, MasterID):
|
||||
"""
|
||||
define Motor object 定义电机对象
|
||||
:param MotorType: Motor type 电机类型
|
||||
:param SlaveID: CANID 电机ID
|
||||
:param MasterID: MasterID 主机ID 建议不要设为0
|
||||
"""
|
||||
self.Pd = float(0)
|
||||
self.Vd = float(0)
|
||||
self.state_q = float(0)
|
||||
self.state_dq = float(0)
|
||||
self.state_tau = float(0)
|
||||
self.SlaveID = SlaveID
|
||||
self.MasterID = MasterID
|
||||
self.MotorType = MotorType
|
||||
self.isEnable = False
|
||||
self.NowControlMode = Control_Type.MIT
|
||||
self.temp_param_dict = {}
|
||||
|
||||
def recv_data(self, q: float, dq: float, tau: float):
|
||||
self.state_q = q
|
||||
self.state_dq = dq
|
||||
self.state_tau = tau
|
||||
|
||||
def getPosition(self):
|
||||
"""
|
||||
get the position of the motor 获取电机位置
|
||||
:return: the position of the motor 电机位置
|
||||
"""
|
||||
return self.state_q
|
||||
|
||||
def getVelocity(self):
|
||||
"""
|
||||
get the velocity of the motor 获取电机速度
|
||||
:return: the velocity of the motor 电机速度
|
||||
"""
|
||||
return self.state_dq
|
||||
|
||||
def getTorque(self):
|
||||
"""
|
||||
get the torque of the motor 获取电机力矩
|
||||
:return: the torque of the motor 电机力矩
|
||||
"""
|
||||
return self.state_tau
|
||||
|
||||
def getParam(self, RID):
|
||||
"""
|
||||
get the parameter of the motor 获取电机内部的参数,需要提前读取
|
||||
:param RID: DM_variable 电机参数
|
||||
:return: the parameter of the motor 电机参数
|
||||
"""
|
||||
if RID in self.temp_param_dict:
|
||||
return self.temp_param_dict[RID]
|
||||
else:
|
||||
return None
|
||||
|
||||
|
||||
class MotorControl:
|
||||
send_data_frame = np.array(
|
||||
[0x55, 0xAA, 0x1e, 0x03, 0x01, 0x00, 0x00, 0x00, 0x0a, 0x00, 0x00, 0x00, 0x00, 0, 0, 0, 0, 0x00, 0x08, 0x00,
|
||||
0x00, 0, 0, 0, 0, 0, 0, 0, 0, 0x00], np.uint8)
|
||||
# 4310 4310_48 4340 4340_48
|
||||
Limit_Param = [[12.5, 30, 10], [12.5, 50, 10], [12.5, 8, 28], [12.5, 10, 28],
|
||||
# 6006 8006 8009 10010L 10010
|
||||
[12.5, 45, 20], [12.5, 45, 40], [12.5, 45, 54], [12.5, 25, 200], [12.5, 20, 200],
|
||||
# H3510 DMG6215 DMH6220
|
||||
[12.5 , 280 , 1],[12.5 , 45 , 10],[12.5 , 45 , 10]]
|
||||
|
||||
def __init__(self, serial_device):
|
||||
"""
|
||||
define MotorControl object 定义电机控制对象
|
||||
:param serial_device: serial object 串口对象
|
||||
"""
|
||||
self.serial_ = serial_device
|
||||
self.motors_map = dict()
|
||||
self.data_save = bytes() # save data
|
||||
if self.serial_.is_open: # open the serial port
|
||||
print("Serial port is open")
|
||||
serial_device.close()
|
||||
self.serial_.open()
|
||||
|
||||
def controlMIT(self, DM_Motor, kp: float, kd: float, q: float, dq: float, tau: float):
|
||||
"""
|
||||
MIT Control Mode Function 达妙电机MIT控制模式函数
|
||||
:param DM_Motor: Motor object 电机对象
|
||||
:param kp: kp
|
||||
:param kd: kd
|
||||
:param q: position 期望位置
|
||||
:param dq: velocity 期望速度
|
||||
:param tau: torque 期望力矩
|
||||
:return: None
|
||||
"""
|
||||
if DM_Motor.SlaveID not in self.motors_map:
|
||||
print("controlMIT ERROR : Motor ID not found")
|
||||
return
|
||||
kp_uint = float_to_uint(kp, 0, 500, 12)
|
||||
kd_uint = float_to_uint(kd, 0, 5, 12)
|
||||
MotorType = DM_Motor.MotorType
|
||||
Q_MAX = self.Limit_Param[MotorType][0]
|
||||
DQ_MAX = self.Limit_Param[MotorType][1]
|
||||
TAU_MAX = self.Limit_Param[MotorType][2]
|
||||
q_uint = float_to_uint(q, -Q_MAX, Q_MAX, 16)
|
||||
dq_uint = float_to_uint(dq, -DQ_MAX, DQ_MAX, 12)
|
||||
tau_uint = float_to_uint(tau, -TAU_MAX, TAU_MAX, 12)
|
||||
data_buf = np.array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], np.uint8)
|
||||
data_buf[0] = (q_uint >> 8) & 0xff
|
||||
data_buf[1] = q_uint & 0xff
|
||||
data_buf[2] = dq_uint >> 4
|
||||
data_buf[3] = ((dq_uint & 0xf) << 4) | ((kp_uint >> 8) & 0xf)
|
||||
data_buf[4] = kp_uint & 0xff
|
||||
data_buf[5] = kd_uint >> 4
|
||||
data_buf[6] = ((kd_uint & 0xf) << 4) | ((tau_uint >> 8) & 0xf)
|
||||
data_buf[7] = tau_uint & 0xff
|
||||
self.__send_data(DM_Motor.SlaveID, data_buf)
|
||||
self.recv() # receive the data from serial port
|
||||
|
||||
def control_delay(self, DM_Motor, kp: float, kd: float, q: float, dq: float, tau: float, delay: float):
|
||||
"""
|
||||
MIT Control Mode Function with delay 达妙电机MIT控制模式函数带延迟
|
||||
:param DM_Motor: Motor object 电机对象
|
||||
:param kp: kp
|
||||
:param kd: kd
|
||||
:param q: position 期望位置
|
||||
:param dq: velocity 期望速度
|
||||
:param tau: torque 期望力矩
|
||||
:param delay: delay time 延迟时间 单位秒
|
||||
"""
|
||||
self.controlMIT(DM_Motor, kp, kd, q, dq, tau)
|
||||
sleep(delay)
|
||||
|
||||
def control_Pos_Vel(self, Motor, P_desired: float, V_desired: float):
|
||||
"""
|
||||
control the motor in position and velocity control mode 电机位置速度控制模式
|
||||
:param Motor: Motor object 电机对象
|
||||
:param P_desired: desired position 期望位置
|
||||
:param V_desired: desired velocity 期望速度
|
||||
:return: None
|
||||
"""
|
||||
if Motor.SlaveID not in self.motors_map:
|
||||
print("Control Pos_Vel Error : Motor ID not found")
|
||||
return
|
||||
motorid = 0x100 + Motor.SlaveID
|
||||
data_buf = np.array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], np.uint8)
|
||||
P_desired_uint8s = float_to_uint8s(P_desired)
|
||||
V_desired_uint8s = float_to_uint8s(V_desired)
|
||||
data_buf[0:4] = P_desired_uint8s
|
||||
data_buf[4:8] = V_desired_uint8s
|
||||
self.__send_data(motorid, data_buf)
|
||||
# time.sleep(0.001)
|
||||
self.recv() # receive the data from serial port
|
||||
|
||||
def control_Vel(self, Motor, Vel_desired):
|
||||
"""
|
||||
control the motor in velocity control mode 电机速度控制模式
|
||||
:param Motor: Motor object 电机对象
|
||||
:param Vel_desired: desired velocity 期望速度
|
||||
"""
|
||||
if Motor.SlaveID not in self.motors_map:
|
||||
print("control_VEL ERROR : Motor ID not found")
|
||||
return
|
||||
motorid = 0x200 + Motor.SlaveID
|
||||
data_buf = np.array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], np.uint8)
|
||||
Vel_desired_uint8s = float_to_uint8s(Vel_desired)
|
||||
data_buf[0:4] = Vel_desired_uint8s
|
||||
self.__send_data(motorid, data_buf)
|
||||
self.recv() # receive the data from serial port
|
||||
|
||||
def control_pos_force(self, Motor, Pos_des: float, Vel_des, i_des):
|
||||
"""
|
||||
control the motor in EMIT control mode 电机力位混合模式
|
||||
:param Pos_des: desired position rad 期望位置 单位为rad
|
||||
:param Vel_des: desired velocity rad/s 期望速度 为放大100倍
|
||||
:param i_des: desired current rang 0-10000 期望电流标幺值放大10000倍
|
||||
电流标幺值:实际电流值除以最大电流值,最大电流见上电打印
|
||||
"""
|
||||
if Motor.SlaveID not in self.motors_map:
|
||||
print("control_pos_vel ERROR : Motor ID not found")
|
||||
return
|
||||
motorid = 0x300 + Motor.SlaveID
|
||||
data_buf = np.array([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00], np.uint8)
|
||||
Pos_desired_uint8s = float_to_uint8s(Pos_des)
|
||||
data_buf[0:4] = Pos_desired_uint8s
|
||||
Vel_uint = np.uint16(Vel_des)
|
||||
ides_uint = np.uint16(i_des)
|
||||
data_buf[4] = Vel_uint & 0xff
|
||||
data_buf[5] = Vel_uint >> 8
|
||||
data_buf[6] = ides_uint & 0xff
|
||||
data_buf[7] = ides_uint >> 8
|
||||
self.__send_data(motorid, data_buf)
|
||||
self.recv() # receive the data from serial port
|
||||
|
||||
def enable(self, Motor):
|
||||
"""
|
||||
enable motor 使能电机
|
||||
最好在上电后几秒后再使能电机
|
||||
:param Motor: Motor object 电机对象
|
||||
"""
|
||||
self.__control_cmd(Motor, np.uint8(0xFC))
|
||||
sleep(0.1)
|
||||
self.recv() # receive the data from serial port
|
||||
|
||||
def enable_old(self, Motor ,ControlMode):
|
||||
"""
|
||||
enable motor old firmware 使能电机旧版本固件,这个是为了旧版本电机固件的兼容性
|
||||
可恶的旧版本固件使能需要加上偏移量
|
||||
最好在上电后几秒后再使能电机
|
||||
:param Motor: Motor object 电机对象
|
||||
"""
|
||||
data_buf = np.array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xfc], np.uint8)
|
||||
enable_id = ((int(ControlMode)-1) << 2) + Motor.SlaveID
|
||||
self.__send_data(enable_id, data_buf)
|
||||
sleep(0.1)
|
||||
self.recv() # receive the data from serial port
|
||||
|
||||
def disable(self, Motor):
|
||||
"""
|
||||
disable motor 失能电机
|
||||
:param Motor: Motor object 电机对象
|
||||
"""
|
||||
self.__control_cmd(Motor, np.uint8(0xFD))
|
||||
sleep(0.01)
|
||||
|
||||
def set_zero_position(self, Motor):
|
||||
"""
|
||||
set the zero position of the motor 设置电机0位
|
||||
:param Motor: Motor object 电机对象
|
||||
"""
|
||||
self.__control_cmd(Motor, np.uint8(0xFE))
|
||||
sleep(0.1)
|
||||
self.recv() # receive the data from serial port
|
||||
|
||||
def recv(self):
|
||||
# 把上次没有解析完的剩下的也放进来
|
||||
data_recv = b''.join([self.data_save, self.serial_.read_all()])
|
||||
packets = self.__extract_packets(data_recv)
|
||||
for packet in packets:
|
||||
data = packet[7:15]
|
||||
CANID = (packet[6] << 24) | (packet[5] << 16) | (packet[4] << 8) | packet[3]
|
||||
CMD = packet[1]
|
||||
self.__process_packet(data, CANID, CMD)
|
||||
|
||||
def recv_set_param_data(self):
|
||||
data_recv = self.serial_.read_all()
|
||||
packets = self.__extract_packets(data_recv)
|
||||
for packet in packets:
|
||||
data = packet[7:15]
|
||||
CANID = (packet[6] << 24) | (packet[5] << 16) | (packet[4] << 8) | packet[3]
|
||||
CMD = packet[1]
|
||||
self.__process_set_param_packet(data, CANID, CMD)
|
||||
|
||||
def __process_packet(self, data, CANID, CMD):
|
||||
if CMD == 0x11:
|
||||
if CANID != 0x00:
|
||||
if CANID in self.motors_map:
|
||||
q_uint = np.uint16((np.uint16(data[1]) << 8) | data[2])
|
||||
dq_uint = np.uint16((np.uint16(data[3]) << 4) | (data[4] >> 4))
|
||||
tau_uint = np.uint16(((data[4] & 0xf) << 8) | data[5])
|
||||
MotorType_recv = self.motors_map[CANID].MotorType
|
||||
Q_MAX = self.Limit_Param[MotorType_recv][0]
|
||||
DQ_MAX = self.Limit_Param[MotorType_recv][1]
|
||||
TAU_MAX = self.Limit_Param[MotorType_recv][2]
|
||||
recv_q = uint_to_float(q_uint, -Q_MAX, Q_MAX, 16)
|
||||
recv_dq = uint_to_float(dq_uint, -DQ_MAX, DQ_MAX, 12)
|
||||
recv_tau = uint_to_float(tau_uint, -TAU_MAX, TAU_MAX, 12)
|
||||
self.motors_map[CANID].recv_data(recv_q, recv_dq, recv_tau)
|
||||
else:
|
||||
MasterID=data[0] & 0x0f
|
||||
if MasterID in self.motors_map:
|
||||
q_uint = np.uint16((np.uint16(data[1]) << 8) | data[2])
|
||||
dq_uint = np.uint16((np.uint16(data[3]) << 4) | (data[4] >> 4))
|
||||
tau_uint = np.uint16(((data[4] & 0xf) << 8) | data[5])
|
||||
MotorType_recv = self.motors_map[MasterID].MotorType
|
||||
Q_MAX = self.Limit_Param[MotorType_recv][0]
|
||||
DQ_MAX = self.Limit_Param[MotorType_recv][1]
|
||||
TAU_MAX = self.Limit_Param[MotorType_recv][2]
|
||||
recv_q = uint_to_float(q_uint, -Q_MAX, Q_MAX, 16)
|
||||
recv_dq = uint_to_float(dq_uint, -DQ_MAX, DQ_MAX, 12)
|
||||
recv_tau = uint_to_float(tau_uint, -TAU_MAX, TAU_MAX, 12)
|
||||
self.motors_map[MasterID].recv_data(recv_q, recv_dq, recv_tau)
|
||||
|
||||
|
||||
def __process_set_param_packet(self, data, CANID, CMD):
|
||||
if CMD == 0x11 and (data[2] == 0x33 or data[2] == 0x55):
|
||||
masterid=CANID
|
||||
slaveId = ((data[1] << 8) | data[0])
|
||||
if CANID==0x00: #防止有人把MasterID设为0稳一手
|
||||
masterid=slaveId
|
||||
|
||||
if masterid not in self.motors_map:
|
||||
if slaveId not in self.motors_map:
|
||||
return
|
||||
else:
|
||||
masterid=slaveId
|
||||
|
||||
RID = data[3]
|
||||
# 读取参数得到的数据
|
||||
if is_in_ranges(RID):
|
||||
#uint32类型
|
||||
num = uint8s_to_uint32(data[4], data[5], data[6], data[7])
|
||||
self.motors_map[masterid].temp_param_dict[RID] = num
|
||||
|
||||
else:
|
||||
#float类型
|
||||
num = uint8s_to_float(data[4], data[5], data[6], data[7])
|
||||
self.motors_map[masterid].temp_param_dict[RID] = num
|
||||
|
||||
|
||||
def addMotor(self, Motor):
|
||||
"""
|
||||
add motor to the motor control object 添加电机到电机控制对象
|
||||
:param Motor: Motor object 电机对象
|
||||
"""
|
||||
self.motors_map[Motor.SlaveID] = Motor
|
||||
if Motor.MasterID != 0:
|
||||
self.motors_map[Motor.MasterID] = Motor
|
||||
return True
|
||||
|
||||
def __control_cmd(self, Motor, cmd: np.uint8):
|
||||
data_buf = np.array([0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, cmd], np.uint8)
|
||||
self.__send_data(Motor.SlaveID, data_buf)
|
||||
|
||||
def __send_data(self, motor_id, data):
|
||||
"""
|
||||
send data to the motor 发送数据到电机
|
||||
:param motor_id:
|
||||
:param data:
|
||||
:return:
|
||||
"""
|
||||
self.send_data_frame[13] = motor_id & 0xff
|
||||
self.send_data_frame[14] = (motor_id >> 8)& 0xff #id high 8 bits
|
||||
self.send_data_frame[21:29] = data
|
||||
self.serial_.write(bytes(self.send_data_frame.T))
|
||||
|
||||
def __read_RID_param(self, Motor, RID):
|
||||
can_id_l = Motor.SlaveID & 0xff #id low 8 bits
|
||||
can_id_h = (Motor.SlaveID >> 8)& 0xff #id high 8 bits
|
||||
data_buf = np.array([np.uint8(can_id_l), np.uint8(can_id_h), 0x33, np.uint8(RID), 0x00, 0x00, 0x00, 0x00], np.uint8)
|
||||
self.__send_data(0x7FF, data_buf)
|
||||
|
||||
def __write_motor_param(self, Motor, RID, data):
|
||||
can_id_l = Motor.SlaveID & 0xff #id low 8 bits
|
||||
can_id_h = (Motor.SlaveID >> 8)& 0xff #id high 8 bits
|
||||
data_buf = np.array([np.uint8(can_id_l), np.uint8(can_id_h), 0x55, np.uint8(RID), 0x00, 0x00, 0x00, 0x00], np.uint8)
|
||||
if not is_in_ranges(RID):
|
||||
# data is float
|
||||
data_buf[4:8] = float_to_uint8s(data)
|
||||
else:
|
||||
# data is int
|
||||
data_buf[4:8] = data_to_uint8s(int(data))
|
||||
self.__send_data(0x7FF, data_buf)
|
||||
|
||||
def switchControlMode(self, Motor, ControlMode):
|
||||
"""
|
||||
switch the control mode of the motor 切换电机控制模式
|
||||
:param Motor: Motor object 电机对象
|
||||
:param ControlMode: Control_Type 电机控制模式 example:MIT:Control_Type.MIT MIT模式
|
||||
"""
|
||||
max_retries = 10
|
||||
retry_interval = 0.05 #retry times
|
||||
RID = 10
|
||||
self.__write_motor_param(Motor, RID, np.uint8(ControlMode))
|
||||
for _ in range(max_retries):
|
||||
sleep(retry_interval)
|
||||
self.recv_set_param_data()
|
||||
if Motor.SlaveID in self.motors_map:
|
||||
if RID in self.motors_map[Motor.SlaveID].temp_param_dict:
|
||||
if self.motors_map[Motor.SlaveID].temp_param_dict[RID] == ControlMode:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
return False
|
||||
|
||||
def save_motor_param(self, Motor):
|
||||
"""
|
||||
save the all parameter to flash 保存所有电机参数
|
||||
:param Motor: Motor object 电机对象
|
||||
:return:
|
||||
"""
|
||||
can_id_l = Motor.SlaveID & 0xff #id low 8 bits
|
||||
can_id_h = (Motor.SlaveID >> 8)& 0xff #id high 8 bits
|
||||
data_buf = np.array([np.uint8(can_id_l), np.uint8(can_id_h), 0xAA, 0x00, 0x00, 0x00, 0x00, 0x00], np.uint8)
|
||||
self.disable(Motor) # before save disable the motor
|
||||
self.__send_data(0x7FF, data_buf)
|
||||
sleep(0.001)
|
||||
|
||||
def change_limit_param(self, Motor_Type, PMAX, VMAX, TMAX):
|
||||
"""
|
||||
change the PMAX VMAX TMAX of the motor 改变电机的PMAX VMAX TMAX
|
||||
:param Motor_Type:
|
||||
:param PMAX: 电机的PMAX
|
||||
:param VMAX: 电机的VMAX
|
||||
:param TMAX: 电机的TMAX
|
||||
:return:
|
||||
"""
|
||||
self.Limit_Param[Motor_Type][0] = PMAX
|
||||
self.Limit_Param[Motor_Type][1] = VMAX
|
||||
self.Limit_Param[Motor_Type][2] = TMAX
|
||||
|
||||
def refresh_motor_status(self,Motor):
|
||||
"""
|
||||
get the motor status 获得电机状态
|
||||
"""
|
||||
can_id_l = Motor.SlaveID & 0xff #id low 8 bits
|
||||
can_id_h = (Motor.SlaveID >> 8) & 0xff #id high 8 bits
|
||||
data_buf = np.array([np.uint8(can_id_l), np.uint8(can_id_h), 0xCC, 0x00, 0x00, 0x00, 0x00, 0x00], np.uint8)
|
||||
self.__send_data(0x7FF, data_buf)
|
||||
self.recv() # receive the data from serial port
|
||||
|
||||
def change_motor_param(self, Motor, RID, data):
|
||||
"""
|
||||
change the RID of the motor 改变电机的参数
|
||||
:param Motor: Motor object 电机对象
|
||||
:param RID: DM_variable 电机参数
|
||||
:param data: 电机参数的值
|
||||
:return: True or False ,True means success, False means fail
|
||||
"""
|
||||
max_retries = 20
|
||||
retry_interval = 0.05 #retry times
|
||||
|
||||
self.__write_motor_param(Motor, RID, data)
|
||||
for _ in range(max_retries):
|
||||
self.recv_set_param_data()
|
||||
if Motor.SlaveID in self.motors_map and RID in self.motors_map[Motor.SlaveID].temp_param_dict:
|
||||
if abs(self.motors_map[Motor.SlaveID].temp_param_dict[RID] - data) < 0.1:
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
sleep(retry_interval)
|
||||
return False
|
||||
|
||||
def read_motor_param(self, Motor, RID):
|
||||
"""
|
||||
read only the RID of the motor 读取电机的内部信息例如 版本号等
|
||||
:param Motor: Motor object 电机对象
|
||||
:param RID: DM_variable 电机参数
|
||||
:return: 电机参数的值
|
||||
"""
|
||||
max_retries = 20
|
||||
retry_interval = 0.05 #retry times
|
||||
self.__read_RID_param(Motor, RID)
|
||||
for _ in range(max_retries):
|
||||
sleep(retry_interval)
|
||||
self.recv_set_param_data()
|
||||
if Motor.SlaveID in self.motors_map:
|
||||
if RID in self.motors_map[Motor.SlaveID].temp_param_dict:
|
||||
return self.motors_map[Motor.SlaveID].temp_param_dict[RID]
|
||||
else:
|
||||
return None
|
||||
return None
|
||||
|
||||
# -------------------------------------------------
|
||||
# Extract packets from the serial data
|
||||
def __extract_packets(self, data):
|
||||
frames = []
|
||||
header = 0xAA
|
||||
tail = 0x55
|
||||
frame_length = 16
|
||||
i = 0
|
||||
remainder_pos = 0
|
||||
|
||||
while i <= len(data) - frame_length:
|
||||
if data[i] == header and data[i + frame_length - 1] == tail:
|
||||
frame = data[i:i + frame_length]
|
||||
frames.append(frame)
|
||||
i += frame_length
|
||||
remainder_pos = i
|
||||
else:
|
||||
i += 1
|
||||
self.data_save = data[remainder_pos:]
|
||||
return frames
|
||||
|
||||
|
||||
def LIMIT_MIN_MAX(x, min, max):
|
||||
if x <= min:
|
||||
x = min
|
||||
elif x > max:
|
||||
x = max
|
||||
|
||||
|
||||
def float_to_uint(x: float, x_min: float, x_max: float, bits):
|
||||
LIMIT_MIN_MAX(x, x_min, x_max)
|
||||
span = x_max - x_min
|
||||
data_norm = (x - x_min) / span
|
||||
return np.uint16(data_norm * ((1 << bits) - 1))
|
||||
|
||||
|
||||
def uint_to_float(x: np.uint16, min: float, max: float, bits):
|
||||
span = max - min
|
||||
data_norm = float(x) / ((1 << bits) - 1)
|
||||
temp = data_norm * span + min
|
||||
return np.float32(temp)
|
||||
|
||||
|
||||
def float_to_uint8s(value):
|
||||
# Pack the float into 4 bytes
|
||||
packed = pack('f', value)
|
||||
# Unpack the bytes into four uint8 values
|
||||
return unpack('4B', packed)
|
||||
|
||||
|
||||
def data_to_uint8s(value):
|
||||
# Check if the value is within the range of uint32
|
||||
if isinstance(value, int) and (0 <= value <= 0xFFFFFFFF):
|
||||
# Pack the uint32 into 4 bytes
|
||||
packed = pack('I', value)
|
||||
else:
|
||||
raise ValueError("Value must be an integer within the range of uint32")
|
||||
|
||||
# Unpack the bytes into four uint8 values
|
||||
return unpack('4B', packed)
|
||||
|
||||
|
||||
def is_in_ranges(number):
|
||||
"""
|
||||
check if the number is in the range of uint32
|
||||
:param number:
|
||||
:return:
|
||||
"""
|
||||
if (7 <= number <= 10) or (13 <= number <= 16) or (35 <= number <= 36):
|
||||
return True
|
||||
return False
|
||||
|
||||
|
||||
def uint8s_to_uint32(byte1, byte2, byte3, byte4):
|
||||
# Pack the four uint8 values into a single uint32 value in little-endian order
|
||||
packed = pack('<4B', byte1, byte2, byte3, byte4)
|
||||
# Unpack the packed bytes into a uint32 value
|
||||
return unpack('<I', packed)[0]
|
||||
|
||||
|
||||
def uint8s_to_float(byte1, byte2, byte3, byte4):
|
||||
# Pack the four uint8 values into a single float value in little-endian order
|
||||
packed = pack('<4B', byte1, byte2, byte3, byte4)
|
||||
# Unpack the packed bytes into a float value
|
||||
return unpack('<f', packed)[0]
|
||||
|
||||
|
||||
def print_hex(data):
|
||||
hex_values = [f'{byte:02X}' for byte in data]
|
||||
print(' '.join(hex_values))
|
||||
|
||||
|
||||
def get_enum_by_index(index, enum_class):
|
||||
try:
|
||||
return enum_class(index)
|
||||
except ValueError:
|
||||
return None
|
||||
|
||||
|
||||
class DM_Motor_Type(IntEnum):
|
||||
DM4310 = 0
|
||||
DM4310_48V = 1
|
||||
DM4340 = 2
|
||||
DM4340_48V = 3
|
||||
DM6006 = 4
|
||||
DM8006 = 5
|
||||
DM8009 = 6
|
||||
DM10010L = 7
|
||||
DM10010 = 8
|
||||
DMH3510 = 9
|
||||
DMH6215 = 10
|
||||
DMG6220 = 11
|
||||
|
||||
|
||||
class DM_variable(IntEnum):
|
||||
UV_Value = 0
|
||||
KT_Value = 1
|
||||
OT_Value = 2
|
||||
OC_Value = 3
|
||||
ACC = 4
|
||||
DEC = 5
|
||||
MAX_SPD = 6
|
||||
MST_ID = 7
|
||||
ESC_ID = 8
|
||||
TIMEOUT = 9
|
||||
CTRL_MODE = 10
|
||||
Damp = 11
|
||||
Inertia = 12
|
||||
hw_ver = 13
|
||||
sw_ver = 14
|
||||
SN = 15
|
||||
NPP = 16
|
||||
Rs = 17
|
||||
LS = 18
|
||||
Flux = 19
|
||||
Gr = 20
|
||||
PMAX = 21
|
||||
VMAX = 22
|
||||
TMAX = 23
|
||||
I_BW = 24
|
||||
KP_ASR = 25
|
||||
KI_ASR = 26
|
||||
KP_APR = 27
|
||||
KI_APR = 28
|
||||
OV_Value = 29
|
||||
GREF = 30
|
||||
Deta = 31
|
||||
V_BW = 32
|
||||
IQ_c1 = 33
|
||||
VL_c1 = 34
|
||||
can_br = 35
|
||||
sub_ver = 36
|
||||
u_off = 50
|
||||
v_off = 51
|
||||
k1 = 52
|
||||
k2 = 53
|
||||
m_off = 54
|
||||
dir = 55
|
||||
p_m = 80
|
||||
xout = 81
|
||||
|
||||
|
||||
class Control_Type(IntEnum):
|
||||
MIT = 1
|
||||
POS_VEL = 2
|
||||
VEL = 3
|
||||
Torque_Pos = 4
|
||||
116
u2can/DM_Motor_Test.py
Normal file
116
u2can/DM_Motor_Test.py
Normal file
@@ -0,0 +1,116 @@
|
||||
import math
|
||||
from DM_CAN import *
|
||||
import serial
|
||||
import time
|
||||
import imu_py
|
||||
|
||||
Motor1=Motor(DM_Motor_Type.DM4340,0x01,0x11)
|
||||
Motor2=Motor(DM_Motor_Type.DM4340,0x02,0x12)
|
||||
Motor3=Motor(DM_Motor_Type.DM4340,0x03,0x13)
|
||||
Motor4=Motor(DM_Motor_Type.DM4340,0x04,0x14)
|
||||
|
||||
Wheel1=Motor(DM_Motor_Type.DMH6215,0x05,0x15)
|
||||
Wheel2=Motor(DM_Motor_Type.DMH6215,0x06,0x16)
|
||||
Wheel3=Motor(DM_Motor_Type.DMH6215,0x07,0x17)
|
||||
Wheel4=Motor(DM_Motor_Type.DMH6215,0x08,0x18)
|
||||
|
||||
serial_device = serial.Serial('/dev/ttyACM1', 921600, timeout=0.5)
|
||||
imu = imu_py.DmImu("/dev/ttyACM0", 921600)
|
||||
imu.start()
|
||||
|
||||
MC1=MotorControl(serial_device)
|
||||
MC1.addMotor(Motor1)
|
||||
MC1.addMotor(Motor2)
|
||||
MC1.addMotor(Motor3)
|
||||
MC1.addMotor(Motor4)
|
||||
|
||||
MC1.enable(Motor1)
|
||||
MC1.enable(Motor2)
|
||||
MC1.enable(Motor3)
|
||||
MC1.enable(Motor4)
|
||||
i=0
|
||||
|
||||
print(Motor1.getTorque())
|
||||
print(Motor2.getTorque())
|
||||
print(Motor3.getTorque())
|
||||
print(Motor4.getTorque())
|
||||
|
||||
time.sleep(0.01)
|
||||
|
||||
MC1.control_Pos_Vel(Motor1,-0.85,0.5)
|
||||
MC1.control_Pos_Vel(Motor2,0.85,0.5)
|
||||
MC1.control_Pos_Vel(Motor3,0.85,0.5)
|
||||
MC1.control_Pos_Vel(Motor4,-0.85,0.5)
|
||||
|
||||
print("#####################")
|
||||
|
||||
time.sleep(5)
|
||||
|
||||
offs1=0.0
|
||||
offs2=0.0
|
||||
offs3=0.0
|
||||
offs4=0.0
|
||||
for i in range(1,10000):
|
||||
MC1.control_Pos_Vel(Motor1,-0.85+offs1,12)
|
||||
MC1.control_Pos_Vel(Motor2,0.85-offs2,12)
|
||||
MC1.control_Pos_Vel(Motor3,0.85-offs3,12)
|
||||
MC1.control_Pos_Vel(Motor4,-0.85+offs4,12)
|
||||
|
||||
data = imu.getData()
|
||||
if data['pitch']>0.2:
|
||||
offs1=offs1+0.0001*(data['pitch'])*pow(data['pitch'],0.5)
|
||||
offs2=offs2+0.0001*(data['pitch'])*pow(data['pitch'],0.5)
|
||||
if data['pitch']<-0.2:
|
||||
offs3=offs3+0.0001*(-data['pitch'])*pow(-data['pitch'],0.5)
|
||||
offs4=offs4+0.0001*(-data['pitch'])*pow(-data['pitch'],0.5)
|
||||
if data['roll']<-0.2:
|
||||
offs1=offs1+0.0001*(-data['roll'])*pow(-data['roll'],0.2)
|
||||
offs4=offs4+0.0001*(-data['roll'])*pow(-data['roll'],0.2)
|
||||
if data['roll']>0.2:
|
||||
offs2=offs2+0.0001*(data['roll'])*pow(data['roll'],0.2)
|
||||
offs3=offs3+0.0001*(data['roll'])*pow(data['roll'],0.2)
|
||||
add = min(offs1,offs2,offs3,offs4)
|
||||
offs1=offs1-add
|
||||
offs2=offs2-add
|
||||
offs3=offs3-add
|
||||
offs4=offs4-add
|
||||
if offs1>0.5: offs1=0.5
|
||||
if offs2>0.5: offs2=0.5
|
||||
if offs3>0.5: offs3=0.5
|
||||
if offs4>0.5: offs4=0.5
|
||||
print(f"euler: (roll={data['roll']:.2f}, pitch={data['pitch']:.2f}, yaw={data['yaw']:.2f})")
|
||||
print(offs3,offs4,offs1,offs2,data['pitch'])
|
||||
time.sleep(0.001)
|
||||
|
||||
MC1.disable(Wheel1)
|
||||
MC1.disable(Wheel2)
|
||||
MC1.disable(Wheel3)
|
||||
MC1.disable(Wheel4)
|
||||
|
||||
MC1.refresh_motor_status(Motor1)
|
||||
MC1.refresh_motor_status(Motor2)
|
||||
MC1.refresh_motor_status(Motor3)
|
||||
MC1.refresh_motor_status(Motor4)
|
||||
|
||||
time.sleep(0.1)
|
||||
|
||||
print(Motor1.getTorque())
|
||||
print(Motor2.getTorque())
|
||||
print(Motor3.getTorque())
|
||||
print(Motor4.getTorque())
|
||||
|
||||
MC1.control_Pos_Vel(Motor1,0.0,0.5)
|
||||
MC1.control_Pos_Vel(Motor2,0.0,0.5)
|
||||
MC1.control_Pos_Vel(Motor3,0.0,0.5)
|
||||
MC1.control_Pos_Vel(Motor4,0.0,0.5)
|
||||
|
||||
time.sleep(3)
|
||||
|
||||
MC1.disable(Motor1)
|
||||
MC1.disable(Motor2)
|
||||
MC1.disable(Motor3)
|
||||
MC1.disable(Motor4)
|
||||
|
||||
|
||||
serial_device.close()
|
||||
# imu.stop()
|
||||
21
u2can/LICENSE
Normal file
21
u2can/LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2024 cmjang
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
227
u2can/README.md
Normal file
227
u2can/README.md
Normal file
@@ -0,0 +1,227 @@
|
||||
# 达妙Python库
|
||||
|
||||
该库支持MAC,Linux,Windows三个平台
|
||||
|
||||
**欢迎加入QQ群:677900232 进行达妙电机技术交流。欢迎进入达妙店铺进行点击选购**[首页-达妙智能控制企业店-淘宝网 (taobao.com)](https://shop290016675.taobao.com/?spm=pc_detail.29232929/evo365560b447259.shop_block.dshopinfo.59f47dd6w4Z4dX)
|
||||
|
||||
### 1.引用达妙库
|
||||
|
||||
默认文件夹下有两个文件DM_CAN.py为所在的电机库,使用的时候
|
||||
|
||||
```python
|
||||
from DM_CAN import *
|
||||
```
|
||||
|
||||
电机库相关依赖是serial , numpy 这几个库,记得安装相关依赖。**具体的requirements在目录下面的requirements.txt,这个版本是我目前测试的版本,比这些版本低理论上应该也没啥问题。**
|
||||
|
||||
### 2.定义控制对象
|
||||
|
||||
定义电机对象,有几个电机就定义几个。重要的事情:不要把masterid设为0x00
|
||||
|
||||
```python
|
||||
Motor1=Motor(DM_Motor_Type.DM4310,0x01,0x11)
|
||||
Motor2=Motor(DM_Motor_Type.DM4310,0x02,0x12)
|
||||
Motor3=Motor(DM_Motor_Type.DM4310,0x03,0x13)
|
||||
```
|
||||
|
||||
第一个参数为电机类型,第二个是SlaveID即电机的CANID(电机的ID),第三个参数是MasterID是主机ID,建议MasterID设置的都不一样,比SlaveID整体高一个。
|
||||
|
||||
例如Motor1的SlaveID是0x01,MasterID是0x11.这样是最好。
|
||||
|
||||
**MasterID和SlaveID需要在达妙上位机进行设置!!如果出现问题请先检查MasterID是否不和SlaveID冲突,并且不为0x00**
|
||||
|
||||
**MasterID不要设置为0x00**
|
||||
|
||||
**MasterID不要设置为0x00**
|
||||
|
||||
**MasterID不要设置为0x00**
|
||||
|
||||
python使用serial串口,波特率是921600,串口进行选择。demo是windows所以是'COM8'
|
||||
|
||||
```python
|
||||
serial_device = serial.Serial('COM8', 921600, timeout=0.5)
|
||||
```
|
||||
|
||||
初始化电机控制对象。传入参数是定义的串口对象
|
||||
|
||||
```python
|
||||
MotorControl1=MotorControl(serial_device)
|
||||
```
|
||||
|
||||
### 3.电机状态
|
||||
|
||||
#### 3.1 添加电机
|
||||
|
||||
添加电机是addMotor。
|
||||
|
||||
```python
|
||||
MotorControl1.addMotor(Motor1)
|
||||
MotorControl1.addMotor(Motor2)
|
||||
MotorControl1.addMotor(Motor3)
|
||||
```
|
||||
|
||||
#### 3.2使能电机
|
||||
|
||||
**建议:如果要修改电机参数。建议使能放在最后**
|
||||
|
||||
```python
|
||||
MotorControl1.enable(Motor1)
|
||||
MotorControl1.enable(Motor2)
|
||||
MotorControl1.enable(Motor3)
|
||||
```
|
||||
|
||||
此代码为兼容旧固件,关于旧版本电机固件,使能对应不同模式需要加上使能的模式(即需要使能电机对应的模式,并不能修改电机此时的模式)**注意需要使能电机此时对应的模式,并不能修改电机内部的模式**
|
||||
|
||||
```python
|
||||
MotorControl1.enable_old(Motor1,Control_Type.MIT)
|
||||
MotorControl1.enable_old(Motor2,Control_Type.POS_VEL)
|
||||
MotorControl1.enable_old(Motor3,Control_Type.VEL)
|
||||
```
|
||||
|
||||
#### 3.3设置电机零点
|
||||
|
||||
将电机在失能状态下摆到需要设置为0点的位置,然后运行下面两行,电机将会将当前位置作为电机0点。
|
||||
|
||||
```python
|
||||
MotorControl1.set_zero_position(Motor3)
|
||||
MotorControl1.set_zero_position(Motor6)
|
||||
```
|
||||
|
||||
#### 3.4 失能电机
|
||||
|
||||
```python
|
||||
MotorControl1.disable(Motor3)
|
||||
MotorControl1.disable(Motor6)
|
||||
```
|
||||
|
||||
#### 3.5 电机状态获取
|
||||
|
||||
达妙电机默认是需要每发送一帧控制指令才能获得当前电机力矩、位置、速度等信息。如果在没有发送控制指令的过程中想要获得电机此时的状态可以通过以下指令。
|
||||
|
||||
```python
|
||||
MotorControl1.refresh_motor_status(Motor1)
|
||||
print("Motor1:","POS:",Motor1.getPosition(),"VEL:",Motor1.getVelocity(),"TORQUE:",Motor1.getTorque())
|
||||
```
|
||||
|
||||
通过**refresh_motor_status**这个函数可以获得当前电机的状态,并保存到对应的电机。
|
||||
|
||||
### 4.电机控制模式
|
||||
|
||||
**推荐在每帧控制完后延迟2ms或者1ms,usb转can默认有缓冲器没有延迟也可使用,但是推荐加上延迟。**
|
||||
|
||||
#### 4.1MIT模式
|
||||
|
||||
使能电机后可以使用MIT模式控制,推荐用MIT模式控制。
|
||||
|
||||
```python
|
||||
MotorControl1.controlMIT(Motor1, 50, 0.3, 0, 0, 0)
|
||||
```
|
||||
|
||||
#### 4.2位置速度模式
|
||||
|
||||
位置速度模式,第一个参数是电机对象,第二个是位置,第三个是转动速度。具体的参数介绍已经写了函数文档,用pycharm等ide就可以看到。
|
||||
|
||||
例子如下
|
||||
|
||||
```python
|
||||
q=math.sin(time.time())
|
||||
MotorControl1.control_Pos_Vel(Motor1,q*10,2)
|
||||
```
|
||||
|
||||
#### 4.3 速度模式
|
||||
|
||||
例子如下,第一个是电机对象,第二个是电机速度
|
||||
|
||||
```python
|
||||
q=math.sin(time.time())
|
||||
MotorControl1.control_Vel(Motor1, q*5)
|
||||
```
|
||||
|
||||
目前达妙的新固件支持切换
|
||||
|
||||
#### 4.4力位混合模式
|
||||
|
||||
第一个是电机对象,第二个是电机位置,第三个是电机速度范围是0-10000,第四个是电机电流范围为0-10000。具体详细请查看达妙文档
|
||||
|
||||
例子如下
|
||||
|
||||
```python
|
||||
MotorControl1.control_pos_force(Motor1, 10, 1000,100)
|
||||
```
|
||||
|
||||
### 5.电机状态读取
|
||||
|
||||
电机的各个状态都保存在对应的电机对象中,需要调用可以用如下几个函数。
|
||||
|
||||
**请注意!达妙的电机状态是每次发了控制帧或者刷新状态(refresh_motor_status 函数)后才能刷新电机对象的当前各个信息。!!**
|
||||
|
||||
**达妙电机是一发一收模式,只有发送指令电机才会返回当前状态,电机才会更新**
|
||||
|
||||
```python
|
||||
vel = Motor1.getVelocity() #获得电机速度
|
||||
pos = Motor1.getPosition() #获得电机位置
|
||||
tau = Motor1.getTorque() #获得电机此时输出力矩
|
||||
```
|
||||
|
||||
```maltab
|
||||
MotorControl1.refresh_motor_status(Motor1) print("Motor1:","POS:",Motor1.getPosition(),"VEL:",Motor1.getVelocity(),"TORQUE:",Motor1.getTorque())
|
||||
```
|
||||
|
||||
### 6.电机内部参数更改
|
||||
|
||||
达妙电机新固件支持使用can进行电机模式修改,以及修改其他参数等操作。要求版本号5013及以上。具体请咨询达妙客服。**请注意所有保存参数、修改参数。请在失能模式下修改!!**
|
||||
|
||||
#### 6.1电机控制模式更改
|
||||
|
||||
通过下面的函数可以对电机的控制模式进行修改。支持MIT,POS_VEL,VEL,Torque_Pos。四种控制模式在线修改。下面是修改的demo。并且代码会有返回值,如果是True那么说明设置成功了,如果不是也不一定没修改成功hhhh。**请注意这里模式修改只是当前有效,掉电后这个模式还是修改前的**
|
||||
|
||||
```python
|
||||
if MotorControl1.switchControlMode(Motor1,Control_Type.POS_VEL):
|
||||
print("switch POS_VEL success")
|
||||
if MotorControl1.switchControlMode(Motor2,Control_Type.VEL):
|
||||
print("switch VEL success")
|
||||
```
|
||||
|
||||
**如果要保持电机控制模式,需要最后保存参数**
|
||||
|
||||
#### 6.2保存参数
|
||||
|
||||
默认电机修改模式等操作后参数不会保存到flash中,需要使用命令如下进行保存至电机的flash中。这一个例子如下。**请注意这一个代码就把所有修改的都保存到Motor1的flash中,并且请在失能模式下进行修改**,该函数内部有自动失能的代码,防止电机在使能模式下无法保存参数。
|
||||
|
||||
```python
|
||||
MotorControl1.save_motor_param(Motor1)
|
||||
```
|
||||
|
||||
#### 6.3 读取内部寄存器参数
|
||||
|
||||
内部寄存器有很多参数都是可以通过can线读取,具体参数列表请看达妙的手册。其中可以读的参数都已经在DM_variable这个枚举类里面了。可以通过read_motor_param进行读取
|
||||
|
||||
```python
|
||||
print("PMAX:",MotorControl1.read_motor_param(Motor1,DM_variable.PMAX))
|
||||
print("MST_ID:",MotorControl1.read_motor_param(Motor1,DM_variable.MST_ID))
|
||||
print("VMAX:",MotorControl1.read_motor_param(Motor1,DM_variable.VMAX))
|
||||
print("TMAX:",MotorControl1.read_motor_param(Motor1,DM_variable.TMAX))
|
||||
print("Motor2:")
|
||||
print("PMAX:",MotorControl1.read_motor_param(Motor2,DM_variable.PMAX))
|
||||
print("MST_ID:",MotorControl1.read_motor_param(Motor2,DM_variable.MST_ID))
|
||||
print("VMAX:",MotorControl1.read_motor_param(Motor2,DM_variable.VMAX))
|
||||
print("TMAX:",MotorControl1.read_motor_param(Motor2,DM_variable.TMAX))
|
||||
```
|
||||
|
||||
并且每次读取参数后,当前的参数也会同时存在对应的电机类里面,通过getParam这个函数进行读取。
|
||||
|
||||
```python
|
||||
print("PMAX",Motor1.getParam(DM_variable.PMAX))
|
||||
```
|
||||
|
||||
#### 6.4改写内部寄存器参数
|
||||
|
||||
内部寄存器有一部分是支持修改的,一部分是只读的(无法修改)。通过调用change_motor_param这个函数可以进行寄存器内部值修改。并且也如同上面读寄存器的操作一样,他的寄存器的值也会同步到电机对象的内部值,可以通过Motor1.getParam这个函数进行读取。
|
||||
|
||||
**请注意这个修改内部寄存器参数,掉电后会恢复为修改前的,并没有保存**
|
||||
|
||||
```python
|
||||
if MotorControl1.change_motor_param(Motor1,DM_variable.KP_APR,54):
|
||||
print("write success")
|
||||
```
|
||||
|
||||
BIN
u2can/__pycache__/DM_CAN.cpython-310.pyc
Normal file
BIN
u2can/__pycache__/DM_CAN.cpython-310.pyc
Normal file
Binary file not shown.
BIN
u2can/__pycache__/DM_CAN.cpython-312.pyc
Normal file
BIN
u2can/__pycache__/DM_CAN.cpython-312.pyc
Normal file
Binary file not shown.
BIN
u2can/__pycache__/DM_CAN.cpython-313.pyc
Normal file
BIN
u2can/__pycache__/DM_CAN.cpython-313.pyc
Normal file
Binary file not shown.
BIN
u2can/__pycache__/gradio.cpython-313.pyc
Normal file
BIN
u2can/__pycache__/gradio.cpython-313.pyc
Normal file
Binary file not shown.
BIN
u2can/__pycache__/motor_interface.cpython-313.pyc
Normal file
BIN
u2can/__pycache__/motor_interface.cpython-313.pyc
Normal file
Binary file not shown.
174
u2can/motor_interface.py
Normal file
174
u2can/motor_interface.py
Normal file
@@ -0,0 +1,174 @@
|
||||
import time
|
||||
import numpy as np
|
||||
import serial
|
||||
import imu_py # Real IMU wrapper
|
||||
from .DM_CAN import Motor, MotorControl, DM_Motor_Type
|
||||
from cpg import CPGController
|
||||
|
||||
# -------------------------------------------------------------------------------
|
||||
# 硬件初始化(串口、IMU、四条腿电机)
|
||||
# -------------------------------------------------------------------------------
|
||||
serial_dev = None
|
||||
imu = None
|
||||
motor_ctrl = None
|
||||
motors = {}
|
||||
|
||||
# 全局滑动窗口,用于对 IMU 原始数据进行低通滤波(移动平均)
|
||||
_pitch_window = []
|
||||
_yaw_window = []
|
||||
_roll_window = []
|
||||
_WINDOW_SIZE = 5 # 窗口长度,可根据噪声水平调节
|
||||
|
||||
def _moving_average(window, new_value):
|
||||
"""将 new_value 加入窗口并返回窗口均值"""
|
||||
window.append(new_value)
|
||||
if len(window) > _WINDOW_SIZE:
|
||||
window.pop(0)
|
||||
return float(np.mean(window))
|
||||
|
||||
def _init_hardware():
|
||||
"""
|
||||
初始化真实硬件:
|
||||
- 串口用于 CAN 总线
|
||||
- IMU(pybind_imu)提供陀螺仪角速度
|
||||
- 四条腿电机对象并使能
|
||||
"""
|
||||
global serial_dev, imu, motor_ctrl, motors
|
||||
|
||||
# 1. 串口(根据实际设备路径修改)
|
||||
serial_dev = serial.Serial('/dev/ttyACM1', 921600, timeout=0.5)
|
||||
|
||||
# 2. IMU(使用 pybind_imu 包)
|
||||
imu = imu_py.DmImu("/dev/ttyACM0", 921600)
|
||||
imu.start()
|
||||
|
||||
# 3. 电机控制对象
|
||||
motor_ctrl = MotorControl(serial_dev)
|
||||
|
||||
# 4. 创建四条腿电机实例(DM4340 为示例型号,可根据实际更改)
|
||||
Motor1 = Motor(DM_Motor_Type.DM4340, 0x01, 0x11)
|
||||
Motor2 = Motor(DM_Motor_Type.DM4340, 0x02, 0x12)
|
||||
Motor3 = Motor(DM_Motor_Type.DM4340, 0x03, 0x13)
|
||||
Motor4 = Motor(DM_Motor_Type.DM4340, 0x04, 0x14)
|
||||
|
||||
# 5. 将电机加入控制器并使能
|
||||
motor_ctrl.addMotor(Motor1)
|
||||
motor_ctrl.addMotor(Motor2)
|
||||
motor_ctrl.addMotor(Motor3)
|
||||
motor_ctrl.addMotor(Motor4)
|
||||
|
||||
motor_ctrl.enable(Motor1)
|
||||
motor_ctrl.enable(Motor2)
|
||||
motor_ctrl.enable(Motor3)
|
||||
motor_ctrl.enable(Motor4)
|
||||
|
||||
# 6. 保存到全局字典,便于后续索引
|
||||
motors = {
|
||||
'Motor1': Motor1,
|
||||
'Motor2': Motor2,
|
||||
'Motor3': Motor3,
|
||||
'Motor4': Motor4
|
||||
}
|
||||
|
||||
# -------------------------------------------------------------------------------
|
||||
# 主循环:读取 IMU → 更新 CPG → 发送电机指令
|
||||
# -------------------------------------------------------------------------------
|
||||
def run(duration: float = 60.0, dt: float = 0.01):
|
||||
"""
|
||||
运行四足平衡控制,使用真实 IMU 数据。
|
||||
:param duration: 运行时长(秒)
|
||||
:param dt: 控制循环时间步长(秒)
|
||||
"""
|
||||
# 硬件初始化(只在第一次调用时执行)
|
||||
if serial_dev is None or imu is None or motor_ctrl is None:
|
||||
_init_hardware()
|
||||
|
||||
# 使用更长的基准周期以降低振荡频率(原 1.0 s → 2.0 s)
|
||||
controller = CPGController(base_height=0.0,
|
||||
base_period=2.0,
|
||||
amplitude=0.85,
|
||||
stable_range=6.0)
|
||||
|
||||
# 初始位置:Motor1、Motor4 在 -0.85,Motor2、Motor3 在 +0.85
|
||||
h1 = -0.85
|
||||
h2 = 0.85
|
||||
h3 = 0.85
|
||||
h4 = -0.85
|
||||
t = 0.0
|
||||
print(f"t={t:.2f}s deviation={0.0:.3f} "
|
||||
f"h1={h1:.3f} h2={h2:.3f} h3={h3:.3f} h4={h4:.3f}")
|
||||
motor_ctrl.control_Pos_Vel(motors['Motor1'], h1, 12)
|
||||
motor_ctrl.control_Pos_Vel(motors['Motor2'], h2, 12)
|
||||
motor_ctrl.control_Pos_Vel(motors['Motor3'], h3, 12)
|
||||
motor_ctrl.control_Pos_Vel(motors['Motor4'], h4, 12)
|
||||
|
||||
# 保持初始位置一段时间后再开始 CPG 循环
|
||||
time.sleep(0.5)
|
||||
|
||||
# 重置时间计数
|
||||
start_time = time.time()
|
||||
# 将 CPG 时间同步到最高点,以保持平滑运动
|
||||
controller.t = controller.base_period / 4
|
||||
|
||||
while time.time() - start_time < duration:
|
||||
# 1️⃣ 从真实 IMU 读取角速度(单位:度/秒)
|
||||
data = imu.getData()
|
||||
pitch_raw = data.get('gyroy', 0.0)
|
||||
yaw_raw = data.get('gyroz', 0.0)
|
||||
roll_raw = data.get('gyrox', 0.0)
|
||||
|
||||
# 对原始 IMU 数据进行移动平均滤波
|
||||
pitch_rate = _moving_average(_pitch_window, pitch_raw)
|
||||
yaw_rate = _moving_average(_yaw_window, yaw_raw)
|
||||
roll_rate = _moving_average(_roll_window, roll_raw)
|
||||
|
||||
print(f"IMU data: pitch_rate={pitch_rate:.3f}, yaw_rate={yaw_rate:.3f}, roll_rate={roll_rate:.3f}")
|
||||
|
||||
# 2️⃣ CPG 步进,更新四条腿的目标高度,返回偏差用于调试
|
||||
deviation = controller.step(pitch_rate, yaw_rate, dt)
|
||||
|
||||
# 3️⃣ 读取四条腿的目标高度(范围在 [-0.85, 0.85])
|
||||
heights = controller.get_leg_heights() # {'FL':h1, 'FR':h2, 'RL':h3, 'RR':h4}
|
||||
|
||||
# 4️⃣ 将高度映射到电机指令范围(结合 CPG 输出和 IMU 角速度进行微调,保持最高点)
|
||||
# - 基准高度:Motor1、Motor4 为 -0.85,Motor2、Motor3 为 +0.85
|
||||
# - factor_cpg 控制 CPG 微调幅度(默认 0.2)
|
||||
# - factor_imu 控制俯仰/偏航角速度反馈幅度(默认 0.05)
|
||||
# - factor_roll 控制横滚(左右倾斜)反馈幅度(已增大至 0.12)
|
||||
factor_cpg = 0.2
|
||||
factor_imu = 0.05
|
||||
factor_roll = 0.12
|
||||
|
||||
# 基于 IMU 角速度的额外微调
|
||||
imu_correction_1 = -factor_imu * pitch_rate - factor_imu * yaw_rate - factor_roll * roll_rate # Motor1
|
||||
imu_correction_2 = factor_imu * pitch_rate + factor_imu * yaw_rate + factor_roll * roll_rate # Motor2
|
||||
imu_correction_3 = factor_imu * pitch_rate - factor_imu * yaw_rate + factor_roll * roll_rate # Motor3
|
||||
imu_correction_4 = -factor_imu * pitch_rate + factor_imu * yaw_rate - factor_roll * roll_rate # Motor4
|
||||
|
||||
# 将 CPG 输出(heights)与基准高度、IMU 修正相结合后进行裁剪
|
||||
h1 = np.clip(-0.85 + factor_cpg * heights['FL'] + imu_correction_1, -0.85, 0.0) # Motor1 负向
|
||||
h2 = np.clip( 0.85 + factor_cpg * heights['FR'] + imu_correction_2, 0.0, 0.85) # Motor2 正向
|
||||
h3 = np.clip( 0.85 + factor_cpg * heights['RL'] + imu_correction_3, 0.0, 0.85) # Motor3 正向
|
||||
h4 = np.clip(-0.85 + factor_cpg * heights['RR'] + imu_correction_4, -0.85, 0.0) # Motor4 负向
|
||||
|
||||
# 5️⃣ 调试输出(显示实际发送给电机的高度,已裁剪到合法区间)
|
||||
t = time.time() - start_time
|
||||
print(f"t={t:.2f}s deviation={deviation:.3f} "
|
||||
f"h1={h1:.3f} h2={h2:.3f} h3={h3:.3f} h4={h4:.3f}")
|
||||
|
||||
# 6️⃣ 发送位置指令
|
||||
motor_ctrl.control_Pos_Vel(motors['Motor1'], h1, 12)
|
||||
motor_ctrl.control_Pos_Vel(motors['Motor2'], h2, 12)
|
||||
motor_ctrl.control_Pos_Vel(motors['Motor3'], h3, 12)
|
||||
motor_ctrl.control_Pos_Vel(motors['Motor4'], h4, 12)
|
||||
|
||||
# 7️⃣ 控制循环频率
|
||||
time.sleep(dt)
|
||||
|
||||
# ------------------- 安全停机 -------------------
|
||||
for m in motors.values():
|
||||
motor_ctrl.disable(m)
|
||||
if serial_dev:
|
||||
serial_dev.close()
|
||||
if imu:
|
||||
imu.stop()
|
||||
2
u2can/requirements.txt
Normal file
2
u2can/requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
numpy<2.0
|
||||
pyserial>=3.5
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user