Skip to content

Commit

Permalink
fix: fix pRange not found
Browse files Browse the repository at this point in the history
  • Loading branch information
daohu527 committed Nov 23, 2022
1 parent c3c9222 commit 3cc082d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions imap/lib/opendrive/plan_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,16 +192,16 @@ def sampling(self, delta_s):
points = []
for i in range(sample_count):
local_s = min(i * delta_s, self.length)
if pRange == "arcLength":
if self.pRange == "arcLength":
s, t, theta = parametric_cubic_curve(
self.aU, self.bU, self.cU, self.dU,
self.aV, self.bV, self.cV, self.dV, local_s)
elif pRange == "normalized":
elif self.pRange == "normalized":
s, t, theta = parametric_cubic_curve(
self.aU, self.bU, self.cU, self.dU,
self.aV, self.bV, self.cV, self.dV, local_s/self.length)
else:
print("Unsupported pRange type: {}".format(pRange))
print("Unsupported pRange type: {}".format(self.pRange))
return []
x, y, z = tf.transform(s, t, 0.0)

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="imap_box",
version="0.1.1",
version="0.1.2",
author="daohu527",
author_email="[email protected]",
description="High-resolution map visualization and conversion tool",
Expand Down

0 comments on commit 3cc082d

Please sign in to comment.