Skip to content

Commit

Permalink
fixed path for code reference
Browse files Browse the repository at this point in the history
  • Loading branch information
mpgussert committed Nov 21, 2024
1 parent 7639860 commit 95d0dfe
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
9 changes: 7 additions & 2 deletions docs/source/overview/sensors/contact_sensor.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
:linenos:


5 changes: 4 additions & 1 deletion docs/source/overview/sensors/frame_transformer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
5 changes: 4 additions & 1 deletion docs/source/overview/sensors/ray_caster.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:

0 comments on commit 95d0dfe

Please sign in to comment.