Skip to content

Joint angles returned from BaseCyclic API are outside of joint limits #225

Description

@ToruOwO

Description

When querying the current joint angles, I get out-of-limit values like
[17.721736907958984, 66.60884857177734, 299.3712158203125, 235.97201538085938, 292.9685363769531, 280.77398681640625, 296.1153869628906]

This is for a Kinova Gen3 arm.

Version

At a minimum, provide the Kortex API and Kortex-enabled device versions.

KortexAPI : latest C++

Kortex Device : Ubuntu 22

Steps to reproduce

  1. step 1...
  2. step 2...

Code example

std::vector<float> KinovaArm::get_qpos() const {
    auto base_feedback = base_cyclic_->RefreshFeedback();
    std::vector<float> joint_angles;
    for (size_t i = 0; i < base_->GetActuatorCount().count(); i++) {
        joint_angles.push_back(base_feedback.actuators(i).position());
    }
    return joint_angles;
}

Expected behavior

Joint angle values in range

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions