Function urdf_rs::read_file

source ·
pub fn read_file<P: AsRef<Path>>(path: P) -> Result<Robot>
Expand description

Read urdf file and create Robot instance

Examples

let urdf_robot = urdf_rs::read_file("sample.urdf").unwrap();
let links = urdf_robot.links;
println!("{:?}", links[0].visual[0].origin.xyz);