Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行position controller报错, 运行velocity controller成功 #9

Open
henryliuliuliu opened this issue Feb 2, 2022 · 6 comments

Comments

@henryliuliuliu
Copy link

image

@henryliuliuliu
Copy link
Author

  1. 经过测试发现, 有一定几率报这个错误。
  2. 还有就是 运行 odrive bringup 之后的close loop等于没有一样,拨一下电机回不来,不像直接在odrivetool里面closeloop 会直接回到原来的位置。
  3. 运行positioncontroller后,如果在终端publish 位置命令,只能一次生效,ctrl+c之后再publish无效,而速度控制可多次发布

@borongyuan
Copy link
Member

您好,
我今天又做了测试,没有遇到位置控制的问题。

  1. 这个报错后关闭ROS,启动odrivetool会不会遇到什么问题?使用dump_errors会报哪些错误?
  2. 这个驱动为了防止切换控制模式时出现状态跳变,会自动将当前状态设为控制命令。比如从速度控制切换到位置控制时,会自动将位置命令设为当前位置估计值。启动时也会有一次控制模式切换,因此会发一次位置命令。
  3. 只有控制模式切换时会自动修改命令,平时不会修改controller的命令。关闭ROS后看下dump_errors会报哪些错误?其实错误码也转发到ROS了,但我们还没加解析和诊断。

位置控制时官方建议使用Filtered Position Control

@henryliuliuliu
Copy link
Author

henryliuliuliu commented Feb 8, 2022 via email

@henryliuliuliu
Copy link
Author

henryliuliuliu commented Feb 8, 2022 via email

@borongyuan
Copy link
Member

在树莓派上当前watchdog_timeout可能有点短,可能初始化喂狗后还没进入闭环控制喂狗就超时了,可以改长一些,或者先禁用看门狗测试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants