Factor-Robotics / odrive_ros2_control

ODrive driver for ros2_control
Apache License 2.0
250 stars 82 forks source link

如何生成odrive_endpoints.h #41

Open lbyyyq opened 4 months ago

lbyyyq commented 4 months ago

你好大神,请问下 odrive_hardware_interface/odrive_endpoints.hpp 这个文件是如何生成的? 我发现humble0.5.3版本这个文件里的enum值与我编译odrive0.5.3版本生成的endpoint.hpp里的值不一致,导致与odrive通讯出现问题跑不通。例如odrive_endpoints.hpp 里定义的AXIS_CONTROLLER__INTPUT_VEL = 253, 但是endpoint.hpp里253是get_input_torque,252才是get_input_vel。

odrive0.5.3版本发布有说明: Changed Removed odrivetool generate-code. This feature was broken in 0.5.2. Use interface_generator.py instead (see Tupfile.lua for examples).

但是我参考Tupfile.lua的样例还是没生成正确的odrive_endpoints.hpp。希望得到您的帮助,谢谢!