Skip to content

Commit

Permalink
Move urdf_viewer.rs into bin/urdf-viz.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
OTL committed Dec 23, 2020
1 parent 1cff981 commit 6b6b272
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
4 changes: 0 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,3 @@ urdf-rs = "0.4.2"
rouille = "2.1.0"
assimp = { version = "0.3.1", optional = true }
assimp-sys = { version = "0.3.1", optional = true }

[[bin]]
name = "urdf-viz"
path = "src/urdf_viewer.rs"
15 changes: 14 additions & 1 deletion src/urdf_viewer.rs → src/bin/urdf-viz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,20 @@ impl LoopIndex {
}
}

const HOW_TO_USE_STR: &str = "[: joint ID +1\n]: joint ID -1\n,: IK target ID +1\n.: IK target ID -1\nr: set random angles\nz: reset angles\nUp: joint angle +0.1\nDown: joint angle -0.1\nCtrl+Drag: move joint\nShift+Drag: IK (y, z)\nShift+Ctrl+Drag: IK (x, z)\nc: toggle visual/collision";
const HOW_TO_USE_STR: &str = r#"[: joint ID +1
]: joint ID -1
,: IK target ID +1
.: IK target ID -1
Up: joint angle +0.1
Down: joint angle -0.1
Ctrl+Drag: move joint
Shift+Drag: IK (y, z)
Shift+Ctrl+Drag: IK (x, z)
l: Reload the file
r: set random angles
z: reset angles
c: toggle visual/collision
"#;

struct UrdfViewerApp {
input_path: PathBuf,
Expand Down

0 comments on commit 6b6b272

Please sign in to comment.