diff --git a/docs/source/overview/sensors/contact_sensor.rst b/docs/source/overview/sensors/contact_sensor.rst index 525b0dedb2..34958368bd 100644 --- a/docs/source/overview/sensors/contact_sensor.rst +++ b/docs/source/overview/sensors/contact_sensor.rst @@ -137,6 +137,11 @@ Notice that even with filtering, both sensors report the net contact force actin In this case, the contact sensor has two bodies: the left and right hind feet. When the force matrix is queried, the result is ``None`` because this is a many body sensor, and presently Isaac Lab only supports "many to one" contact force filtering. Unlike the single body contact sensor, the reported force tensor has multiple entries, with each "row" corresponding to the contact force on a single body of the sensor (matching the ordering at construction). - .. literalinclude:: ../../../source/standalone/demos/sensors/contact_sensor_demo.py +.. dropdown:: Code for contact_sensor_demo.py + :icon: code + + .. literalinclude:: ../../../../source/standalone/demos/sensors/contact_sensor_demo.py :language: python - :linenos: \ No newline at end of file + :linenos: + + \ No newline at end of file diff --git a/docs/source/overview/sensors/frame_transformer.rst b/docs/source/overview/sensors/frame_transformer.rst index 30c1233cdc..29e583cc9c 100644 --- a/docs/source/overview/sensors/frame_transformer.rst +++ b/docs/source/overview/sensors/frame_transformer.rst @@ -150,6 +150,9 @@ By activating the visualizer, we can see that the frames of the feet are rotated Here, the sensor is tracking all rigid body children of ``Robot/base``, but this expression is **inclusive**, meaning that the source body itself is also a target. This can be seen both by examining the source and target list, where ``base`` appears twice, and also in the returned data, where the sensor returns the relative transform to itself, (0, 0, 0). - .. literalinclude:: ../../../source/standalone/demos/sensors/frame_transformer_sensor_demo.py +.. dropdown:: Code for frame_transformer_sensor_demo.py + :icon: code + + .. literalinclude:: ../../../../source/standalone/demos/sensors/frame_transformer_sensor_demo.py :language: python :linenos: \ No newline at end of file diff --git a/docs/source/overview/sensors/ray_caster.rst b/docs/source/overview/sensors/ray_caster.rst index a5d245b33d..0f0895de2e 100644 --- a/docs/source/overview/sensors/ray_caster.rst +++ b/docs/source/overview/sensors/ray_caster.rst @@ -100,6 +100,9 @@ Here we can see the data returned by the sensor itself. Notice first that there You can use this script to experiment with pattern configurations and build an intuition about how the data is stored by altering the ``triggered`` variable on line 99. - .. literalinclude:: ../../../source/standalone/demos/sensors/raycaster_sensor_demo.py +.. dropdown:: Code for raycaster_sensor_demo.py + :icon: code + + .. literalinclude:: ../../../../source/standalone/demos/sensors/raycaster_sensor_demo.py :language: python :linenos: \ No newline at end of file