Skip to content

Commit f2f0dcc

Browse files
rubengrandiaawinkler
authored andcommitted
checking sum of the contact forces was hiding negative forces. Use norm instead (#10)
1 parent 7e432da commit f2f0dcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xpp_vis/src/rviz_robot_builder.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ RvizRobotBuilder::CreateEEForces (const EEForces& ee_forces,
151151

152152
Marker m = CreateForceArrow(f, p);
153153
m.color = color.red;
154-
m.color.a = f.sum() > 0.1? 1.0 : 0.0;
154+
m.color.a = f.norm() > 0.1 ? 1.0 : 0.0;
155155
m.ns = "ee_force";
156156
vec.push_back(m);
157157
}

0 commit comments

Comments
 (0)