norm(a)

Returns the norm of the argument

The argument can be one of four different types:

Pose: In this case the euclidian norm of the pose is returned.

Float: In this case fabs(a) is returned.

Int: In this case abs(a) is returned.

List: In this case the euclidian norm of the list is returned, the list elements must be numbers.

Parameters

a: Pose, float, int or List

Return Value

norm of a

Example command:

  • norm(-5.3) -> Returns 5.3
  • norm(-8) -> Returns 8
  • norm(p[-.2,.2,-.2,-1.57,0,3.14]) -> Returns 3.52768