ArticulationAction shape mismatch

Hi,
I am doing a tutorial on controlling a Franka robot joint in Extensions.

As in the code above, if a list is entered as joint_positions in ArticulationAction, it works normally.

But When I use numpy as input, I got an error.

However, when using jetbot, both numpy and list work (joint_velocities).

Why does franka get an error?

Hi @jwson3

You need to remove the 0 when creating the joint_positions:

ArticulationAction(joint_positions=np.random.rand(9),
                   joint_velocities=None,
                   joint_efforts=None)

I did as you said and it works find. Thanks so much!.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.