Exemple #1
0
 def test_internal_point_contact_visualizer(self):
     """A very basic existance test, since this class is internal use only.
     The pydrake-internal user (meldis) has additional acceptance tests.
     """
     meshcat = Meshcat()
     params = ContactVisualizerParams()
     dut = _PointContactVisualizer(meshcat=meshcat, params=params)
Exemple #2
0
    def __init__(self, *, meshcat):
        # By default, don't show any contact illustrations.
        meshcat.SetProperty("/CONTACT_RESULTS", "visible", False)

        # Add point visualization.
        params = ContactVisualizerParams()
        params.prefix = "/CONTACT_RESULTS/point"
        self._helper = _PointContactVisualizer(meshcat, params)