F/T Sensor (force/torque sensor) #513
Replies: 3 comments 4 replies
-
|
Hi, the warning appears because your script tries to access physics data before the physics simulation view is fully initialized after a timeline stop/play cycle. You can try following options to fix it:
import omni.isaac.core.utils.prims as prim_utils
from isaacsim.core.prims import Articulation
def compute(db):
# Get your articulation
articulation = Articulation(prim_path="/your/articulation")
# CHECK: Is physics handle valid before accessing?
if not articulation.is_physics_handle_valid():
# Physics not ready yet - skip this frame
return
# CHECK: Is articulation view initialized?
if articulation._articulation_view is None:
return
# Now safe to access physics data
try:
joint_forces = articulation.get_measured_joint_forces()
# ... your logic here
except Exception as e:
# Handle any remaining edge cases
return |
Beta Was this translation helpful? Give feedback.
-
|
Hi, The error occurs because you're creating a new Can you try following fix: def compute(db: og.Database):
# Initialize articulation ONCE and store in db.state
if not hasattr(db.state, 'articulation'):
db.state.articulation = Articulation(prim_path="/UF_ROBOT/ft_sensor/FixedJoint")
db.state.articulation.initialize() #Important: call initialize
articulation = db.state.articulation |
Beta Was this translation helpful? Give feedback.
-
|
Hi, I was able to get it to work using an onSimulation ActionGraph. This was achieved by checking if the physics handle was valid during the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
I have recently added a force/torque sensor to my cobot .usd file in Isaac Sim. Thus, I can read the forces applied to it through
forces = db.state.robot.get_measured_joint_forces()(checked https://docs.isaacsim.omniverse.nvidia.com/5.1.0/py/source/extensions/isaacsim.core.nodes/docs/ogn/OgnIsaacArticulationState.html and https://docs.isaacsim.omniverse.nvidia.com/5.1.0/sensors/isaacsim_sensors_physics_articulation_force.html).The Python script I wrote is as follows:
And that Python script is run inside an OmniGraph as shown in the following screenshot:

However, after the simulation runs for the first time, I have to click on “Reload script” within the “Script node” block for it to work again. Otherwise, the warning
2026-03-02 07:30:47 [Warning] [isaacsim.core.prims.impl.articulation] Physics Simulation View is not created yet in order to use get_measured_joint_forcesappears, and when I read the values, I get the last values read from the first simulation run and not those corresponding to the current run.Has anyone else encountered this situation, and how did you resolve it? Having to click on reload script every time the execution is launched is tedious, considering that there may be several action graphs where you have to click.
Beta Was this translation helpful? Give feedback.
All reactions