This is a convenience function to make escape responses comparable between scenarios with different orientation (e.g. different fruit picking place). It does not (yet) allow reorienting the rotations. (NOTE: if required, such rotation re-orientation would require a function to convert a rotation matrix to Euler angles)

translate_movement_to_ref(df, ref_pos = list(pos_x = 0, pos_y = 0, pos_z = 0))

Arguments

df

A movement data frame.

ref_pos

A named list of x,y,z reference position (default: 0, 0, 0)

Value

A translated movement data frame with the same column names