async_port: updated latest async_port impl from wrp_sdk

This commit is contained in:
Ruixiang Du
2022-01-06 11:40:18 +08:00
parent 99e6e6aba1
commit 035231a806
9 changed files with 93 additions and 108 deletions

View File

@@ -76,7 +76,7 @@ int main(int argc, char **argv) {
while (true) {
// motion control
std::cout << "Setting motion command: 0.0, 0,0, 0.8" << std::endl;
scout->SetMotionCommand(0.0, 0.0, 0.8);
scout->SetMotionCommand(0.0, 0.3, 0.0);
// get robot state
auto state = scout->GetRobotState();

View File

@@ -59,7 +59,7 @@ int main(int argc, char **argv) {
while (true) {
// motion control
std::cout << "Motor: 1.0, 0" << std::endl;
tracer->SetMotionCommand(1.0, 0.0);
tracer->SetMotionCommand(0.0, 0.0);
// get robot state
auto state = tracer->GetRobotState();