evalio.rerun
Functions:
-
convert–Convert a variety of objects to rerun types.
convert
convert(
obj: LidarMeasurement,
color: Optional[
Literal["z", "intensity"]
| tuple[int, int, int]
| tuple[float, float, float]
] = None,
radii: Optional[float] = None,
) -> Points3D
convert(
obj: list[Point],
color: Optional[
Literal["z", "intensity"]
| tuple[int, int, int]
| tuple[float, float, float]
] = None,
radii: Optional[float] = None,
) -> Points3D
convert(
obj: NDArray[float64],
color: Optional[Literal["z"] | NDArray[float64]] = None,
radii: Optional[float] = None,
) -> Points3D
convert(
obj: list[SE3],
color: Optional[
tuple[int, int, int] | tuple[float, float, float]
] = None,
) -> Points3D
convert(
obj: Trajectory[M],
color: Optional[
tuple[int, int, int] | tuple[float, float, float]
] = None,
) -> Points3D
convert(obj: SE3) -> Transform3D
convert(
obj: Any,
color: Optional[Any] = None,
radii: Optional[float] = None,
) -> Transform3D | Points3D
Convert a variety of objects to rerun types.
Parameters:
-
obj(object) –Object to convert. Can be a LidarMeasurement, list of Points, numpy array, SE3, or Trajectory.
-
color(Optional[Any], default:None) –Optional color to set. See overloads for additional literal options. Defaults to None.
Raises:
-
ValueError–If the color pass is invalid.
-
ValueError–If the object is not an implemented type for conversion.
Returns:
-
Transform3D | Points3D–Rerun type.
Source code in python/evalio/rerun.py
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 | |