You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Conception/drake-master/bindings/pydrake/systems/trajectory_optimization.py

18 lines
737 B

"""Deprecated aliases to planning resources."""
from pydrake.common.deprecation import _warn_deprecated
# Note: This imports more than just the trajectory optimization symbols
# (because planning is flat). If this is too generous in exposing planning
# symbols in this module, we'll need to enumerate all the former members of
# this module explicitly.
from pydrake.planning import *
# Historically, TimeStep belonged to the module; pull it out to maintain
# backwards compatibility until completed deprecation.
TimeStep = DirectTranscription.TimeStep
_warn_deprecated(
"Please import the trajectory optimization from pydrake.planning instead "
f"of the deprecated {__name__} submodule.",
date="2023-05-01", stacklevel=3)