You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After starting the sim based on isaac lab, I need to accept the joint value of the ros topic and use it as the target to control the simulated robot arm.
Therefore, I try to do the following:
whilesimulation_app.is_running():
sim.step(render=True)
# Omit the steps to get the joint values in the ros topic.# The result is stored in the targetPositions[]action=ArticulationAction(joint_positions=np.array(targetPositions))
articulation.apply_action(action)
This will actually report an error. I don't know what to do to achieve my business goals.
What can I do to fix my problem, I can't find how to turn off PxSceneFlag::eENABLE_DIRECT_GPU_API.
Thank you for your reply!
Referring to the position-control code in the link above, I was able to run it normally in the script editor of isaac sim4.2. When I tried to embed this code block in a standalone script in the isaac lab environment, an error was reported at the dc.set_articulation_dof_position_targets stage
fromomni.isaac.dynamic_controlimport_dynamic_controlimportnumpyasnpdc=_dynamic_control.acquire_dynamic_control_interface()
articulation=dc.get_articulation("/Franka")
# Call this each frame of simulation step if the state of the articulation is changing.dc.wake_up_articulation(articulation)
joint_angles= [np.random.rand(9) *2-1]
dc.set_articulation_dof_position_targets(articulation, joint_angles)
Error Messages
PhysX error: PxArticulationJointReducedCoordinate::setDriveTarget(): it is illegal to call this method if PxSceneFlag::eENABLE_DIRECT_GPU_API is enabled!, FILE /builds/omniverse/physics/physx/source/physx/src/NpArticulationJointReducedCoordinate.cpp, LINE 304
The text was updated successfully, but these errors were encountered:
I asked the same question on the forum:https://forums.developer.nvidia.com/t/physx-error-pxarticulationjointreducedcoordinate-setdrivetarget/320512
Question
After starting the sim based on isaac lab, I need to accept the joint value of the ros topic and use it as the target to control the simulated robot arm.
Therefore, I try to do the following:
This will actually report an error. I don't know what to do to achieve my business goals.
What can I do to fix my problem, I can't find how to turn off PxSceneFlag::eENABLE_DIRECT_GPU_API.
Thank you for your reply!
Steps to Reproduce
https://docs.omniverse.nvidia.com/isaacsim/latest/how_to_guides/robots_simulation.html#
Referring to the position-control code in the link above, I was able to run it normally in the script editor of isaac sim4.2. When I tried to embed this code block in a standalone script in the isaac lab environment, an error was reported at the dc.set_articulation_dof_position_targets stage
Error Messages
The text was updated successfully, but these errors were encountered: