Skip to content

Error related to qlim when running example robotics-toolbox-python/examples/neo.py #665

Description

@LonelyPaprika

RTB version

1.4.2

Python version

3.10.21

Operating system

macOS

Expected behavior

When running robotics-toolbox-python/examples/neo.py there should be no error.

Actual behavior

When running robotics-toolbox-python/examples/neo.py, the following error is encountered:

File "neo.py", line 143, in <module>
    step()
  File "neo.py", line 93, in step
    Ain[:n, :n], bin[:n] = panda.joint_velocity_damper(ps, pi, n)
  File "robot/Robot.py", line 1423, in joint_velocity_damper
    Bin[i] = -gain * (((self.qlim[0, i] - q[i]) + ps) / (pi - ps))
TypeError: 'float' object is not subscriptable

Minimal reproducible example

robotics-toolbox-python/examples/neo.py

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

    bugwe got it wrong, will fix

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions