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

Running Cheetah under program control #32

Open
sanjainarainperspectalabs opened this issue Apr 28, 2020 · 2 comments
Open

Running Cheetah under program control #32

sanjainarainperspectalabs opened this issue Apr 28, 2020 · 2 comments

Comments

@sanjainarainperspectalabs

Hello, we'd like to understand how Cheetah's design parameters affect its performance e.g., maximum running speed. Parameters we might want to alter are in mc-mit-ctrl-user-parameters.yaml.

Would appreciate knowing how to do this under program control, not via an external joystick. We can modify the parameters in the file, but how do we run the simulated robot without a joystick. Even if we can do this with a mouse that would help.

We do not have a physical robot and would like to do this purely with simulation.

We have been able to build the software at our end.

Thanks very much.

@qiayuanl
Copy link
Contributor

The speed command is given by

void Simulation::highLevelControl() {
  // send joystick data to robot:
  _sharedMemory().simToRobot.gamepadCommand = _window->getDriverCommand();
  _sharedMemory().simToRobot.gamepadCommand.applyDeadband(
      _simParams.game_controller_deadband);

in simulation.cpp.
So you only need to rewrite function:
void updateGamepadCommand(GamepadCommand &gamepadCommand);
of GameController class.

@sanjainarainperspectalabs
Copy link
Author

Thanks. We will try out this suggestion and let you know.

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