Browse Source

Minor fix on robot descriptions version

tags/v0.3.12-rc0
haixuantao 7 months ago
parent
commit
c357415818
2 changed files with 14 additions and 6 deletions
  1. +9
    -6
      node-hub/dora-mujoco/pyproject.toml
  2. +5
    -0
      node-hub/dora-rerun/src/urdf.rs

+ 9
- 6
node-hub/dora-mujoco/pyproject.toml View File

@@ -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" }

+ 5
- 0
node-hub/dora-rerun/src/urdf.rs View File

@@ -71,6 +71,11 @@ pub fn init_urdf(rec: &RecordingStream) -> Result<HashMap<String, Chain<f32>>> {
.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


Loading…
Cancel
Save