Skip to content

mpc_nvblox_example.py runs into an ValueError with it's ArticulationController #444

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

Open
Bradan opened this issue Dec 16, 2024 · 0 comments
Assignees

Comments

@Bradan
Copy link

Bradan commented Dec 16, 2024

If it’s not a bug, please use discussions: https://github.com/NVlabs/curobo/discussions

Please provide the below information in addition to your issue:

  1. cuRobo installation mode (choose from [python, isaac sim, docker python, docker isaac sim]): isaac sim
  2. python version: Python 3.10.14
  3. Isaac Sim version (if using): 4.2.0

Issue Details

When trying to run the mpc_nvblox_example.py it crashes with an exception:

Traceback (most recent call last):
  File "/home/user/curobo/examples/isaac_sim/mpc_nvblox_example.py", line 341, in main
    articulation_controller.apply_action(art_action)
  File "/home/user/.local/share/ov/pkg/isaac-sim-4.2.0/exts/omni.isaac.core/omni/isaac/core/controllers/articulation_controller.py", line 64, in apply_action
    if joint_positions[0][i] is None or np.isnan(
ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()

As the exception says it can be fixed by .any() behind the np.isnan calls in line 66 and 75 of the file exts/omni.isaac.core/omni/isaac/core/controllers/articulation_controller.py, but I cannot find this file in any public repository.

I was tempted to post this in https://github.com/isaac-sim/IsaacLab, but maybe I'm just solving it too deep inside Isaac Sim and there's actually a fix inside cuRobo to make this a scalar value?

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