R/processing_movement_functions.R
translate_movement_to_ref.Rd
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))
A movement data frame.
A named list of x,y,z reference position (default: 0, 0, 0)
A translated movement data frame with the same column names