MCPcopy Create free account
hub / github.com/PJLab-ADG/OASim / __post_init__

Method __post_init__

limsim/utils/trajectory.py:117–119  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

115 """State of the trajectory."""
116
117 def __post_init__(self):
118 if self.vel == 0 and self.s_d != 0:
119 self.vel = math.sqrt(self.s_d**2 + self.d_d**2)
120
121 """
122 Modified from: https://blog.csdn.net/u013468614/article/details/108748016

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected