Source code for irsim.world.obstacles.obstacle_omni

import warnings

from irsim.world.object_base import ObjectBase


[docs] class ObstacleOmni(ObjectBase): """Omnidirectional obstacle. .. deprecated:: Use ``ObjectBase`` with ``kinematics={'name': 'omni'}, role='obstacle'`` directly. This subclass will be removed in a future version. """ def __init__(self, color="k", state_dim=3, **kwargs): warnings.warn( "ObstacleOmni is deprecated. Use ObjectBase with kinematics={'name': 'omni'} directly.", DeprecationWarning, stacklevel=2, ) super().__init__(color=color, role="obstacle", state_dim=state_dim, **kwargs)