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

Re-sending of previous commands #388

Open
stephane-caron opened this issue Sep 14, 2022 · 1 comment
Open

Re-sending of previous commands #388

stephane-caron opened this issue Sep 14, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@stephane-caron
Copy link
Member

When the spine is in neither of the following three states:

  • Stop
  • Shutdown
  • Act

Then Spine::cycle_actuation will send the previous command:

    if (state_machine_.state() == State::kSendStops ||
        state_machine_.state() == State::kShutdown) {
      write_stop_commands(actuation_.commands());
    } else if (state_machine_.state() == State::kAct) {
      Dictionary& action = dict_("action");
      write_position_commands(actuation_.commands(),
                              actuation_.servo_joint_map(), action);
    } else {
      // TODO(scaron): clear commands, otherwise the previous ones will be
      // sent again!
    }

This is OK for stop commands, but not OK for infrequent position commands.

@stephane-caron stephane-caron added the enhancement New feature or request label Mar 1, 2023
@stephane-caron stephane-caron self-assigned this Apr 11, 2023
@stephane-caron
Copy link
Member Author

Escalating this issue in light of #29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

1 participant