From c357415818dfa8a1b773ba0f19f49d206a664ab7 Mon Sep 17 00:00:00 2001 From: haixuantao Date: Tue, 24 Jun 2025 15:52:40 +0200 Subject: [PATCH] Minor fix on robot descriptions version --- node-hub/dora-mujoco/pyproject.toml | 15 +++++++++------ node-hub/dora-rerun/src/urdf.rs | 5 +++++ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/node-hub/dora-mujoco/pyproject.toml b/node-hub/dora-mujoco/pyproject.toml index 055a73c3..c5de8d41 100644 --- a/node-hub/dora-mujoco/pyproject.toml +++ b/node-hub/dora-mujoco/pyproject.toml @@ -8,11 +8,11 @@ readme = "README.md" requires-python = ">=3.8" dependencies = [ - "dora-rs >= 0.3.9", - "mujoco >= 3.1.6", - "numpy >= 1.21.0", - "pyarrow >= 14.0.1", - "robot_descriptions >= 1.12.0", + "dora-rs >= 0.3.9", + "mujoco >= 3.1.6", + "numpy >= 1.21.0", + "pyarrow >= 14.0.1", + "robot_descriptions", ] [dependency-groups] @@ -23,9 +23,12 @@ dora-mujoco = "dora_mujoco.main:main" [tool.ruff.lint] extend-select = [ - "UP", # pyupgrade + "UP", # pyupgrade "PERF", # Ruff's PERF rule "RET", # Ruff's RET rule "RSE", # Ruff's RSE rule "N", # Ruff's N rule ] + +[tool.uv.sources] +robot-descriptions = { git = "https://github.com/robot-descriptions/robot_descriptions.py.git" } diff --git a/node-hub/dora-rerun/src/urdf.rs b/node-hub/dora-rerun/src/urdf.rs index 18d77313..4241df3d 100644 --- a/node-hub/dora-rerun/src/urdf.rs +++ b/node-hub/dora-rerun/src/urdf.rs @@ -71,6 +71,11 @@ pub fn init_urdf(rec: &RecordingStream) -> Result>> { .stdout; let response_str = String::from_utf8(response).context("Could not parse robot descriptions")?; + // Only keep last line of the response + let response_str = response_str + .lines() + .last() + .context("Could not find last line in robot descriptions response")?; PathBuf::from(response_str.trim()) } else { // Use the path directly