Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #605 #606

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions python/src/ouster/cli/core/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ def benchmark(file: str, meta: Optional[str], url: Optional[str]) -> None:
click.echo(f" filename: {os.path.basename(file)}")
click.echo(f" md5: {hash}")
click.echo(f" size: {os.path.getsize(file) / 2**30:.3f} GB")
click.echo(f" mode: {info.mode}")
click.echo(f" mode: {info.config.lidar_mode}")
click.echo(f" prod line: {info.prod_line}")
click.echo(f" col window: {info.format.column_window}")

Expand Down Expand Up @@ -435,9 +435,10 @@ def benchmark_sensor(hostname: str, lidar_port: Optional[int],

for idx, (conf, meta) in enumerate(zip(configs, packet_source.metadata)):
click.echo(f"sensor [{idx}] = ")
click.echo(f" {'Model':<20}: {meta.prod_line} {meta.fw_rev} {meta.mode}")
click.echo(f" {'Model':<20}: {meta.prod_line} {meta.fw_rev} {meta.config.lidar_mode}")
click.echo(f" {'SN':<20}: {meta.sn}")
click.echo(f" {'hostname':<20}: {meta.hostname}")
hostname = f"os-{meta.sn}.local"
click.echo(f" {'hostname':<20}: {hostname}")
for prop in [
"udp_dest", "udp_port_lidar", "udp_port_imu", "lidar_mode",
"azimuth_window", "udp_profile_lidar"
Expand Down Expand Up @@ -530,7 +531,7 @@ def status_str(sl: List[PacketStatus]) -> str:

for idx, info in enumerate(data_source.metadata):
click.echo(
f"Receiving data [{idx}]: {info.prod_line}, {info.mode}, "
f"Receiving data [{idx}]: {info.prod_line}, {info.config.lidar_mode}, "
f"{info.format.udp_profile_lidar}, {info.format.column_window}, "
f"[{flags}] ...")

Expand Down Expand Up @@ -697,7 +698,7 @@ def status_str(sl: List[PacketStatus]) -> str:
click.echo(" sensors:")
for idx, info in enumerate(data_source.metadata):
click.echo(
f" {idx:<5}: {info.prod_line}, {info.mode}, "
f" {idx:<5}: {info.prod_line}, {info.config.lidar_mode}, "
f"{info.format.udp_profile_lidar}, {info.format.column_window}"
)

Expand Down Expand Up @@ -732,7 +733,7 @@ def status_str(sl: List[PacketStatus]) -> str:
# one line summary for spreadsheets use (only for single sensor)
if len(data_source.metadata) == 1:
info = data_source.metadata[0]
click.echo(f"-,{info.prod_line},{info.mode},"
click.echo(f"-,{info.prod_line},{info.config.lidar_mode},"
f"{info.format.udp_profile_lidar},"
f"{flags},"
f"{sum(total_packets)},"
Expand Down