-
Notifications
You must be signed in to change notification settings - Fork 75
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
对于真正的机器人,在何处添加"send_orders"和"receive_commands"方法? #8
Comments
在LegController.cpp下,我看到了LegController:: update Data (LegDatalegData,添加我查询方法的位置)是否正确? |
可以写一个main.cpp,里面调用SetIMUData和SetLegData函数,将IMU和电机数据放入控制器,然后写一个获取规划关节位置速度的函数,并调用ToqueCalculateor函数计算关节力矩,将这个力矩及设定的kp,kd,以及关节规划位置速度一起下发到电机. |
LegDatalegData是将电机实际的反馈值赋值进去 |
Thanks Derek... Trying. |
Hello Derek.. It sends too IMU values. I send it to SetIMUData and SetLegData functions, Do you have an code example of what extra lines of code I need? Thanks a lot Derek. |
Hey, Derek.. Would you help me in my previous post? |
You should write a cpp file, in the main loop or thread to get the leg data from robot and imu data from imu, and use function TorqueCalculator to run controller, then the calculated torque and pos/vel kp/kd etc. should send back to the robot.
…------------------ 原始邮件 ------------------
发件人: "Derek-TH-Wang/quadruped_ctrl" ***@***.***>;
发送时间: 2021年12月10日(星期五) 凌晨1:56
***@***.***>;
***@***.******@***.***>;
主题: Re: [Derek-TH-Wang/quadruped_ctrl] 对于真正的机器人,在何处添加"send_orders"和"receive_commands"方法? (#8)
Hey, Derek.. Would you help me in my previous post?
Have a nice day
Vincent
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
嗨,德里克,
你的西穆包很有魅力。
现在我想把它加入我真正的机器人。
你能告诉我在哪里添加我的c++方法吗?
一个用于发送订单(id、pos、vel、扭矩、kp、kd)
一个用于查询(id、pos、vel、扭矩、kp、kd)
在mainController.cpp中?不知道在哪里!!
对于12 ID,它应该存在于
迫不及待地想念你。
非常感谢
Vincent (french)
The text was updated successfully, but these errors were encountered: