Skip to content

如何生成odrive_endpoints.h #41

Description

@lbyyyq

你好大神,请问下 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。希望得到您的帮助,谢谢!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions