Commits

Martin Felis committed 5852dae Draft

urdfreader: fixed reading body mass (thanks to Barrett Ames for reporting)

Comments (0)

Files changed (1)

addons/urdfreader/rbdl_urdfreader.cc

 
 		// but only if we actually have inertial data
 		if (urdf_child->inertial) {
-			double link_inertial_mass = urdf_child->inertial->mass;
+			link_inertial_mass = urdf_child->inertial->mass;
 
 			link_inertial_position.set (
 					urdf_child->inertial->origin.position.x,