Decision Module
1.0
ICRA2020 AI Challenge Northwestern Polytechnical University Aoxiang Team Strategy Code
|
Functions | |
def | init_from_dict (obj, Dict[str, Any] values) |
def | onehot_encode (int value, int max_v) |
def | init_quaternion (Quaternion values) |
def | quart_to_rpy (x, y, z, w) |
Utility functions
def util.init_from_dict | ( | obj, | |
Dict[str, Any] | values | ||
) |
Assign every fields from a dict to object
def util.init_quaternion | ( | Quaternion | values | ) |
Convert a quaternion to list of scalars
def util.onehot_encode | ( | int | value, |
int | max_v | ||
) |
Encode an int value using onehot encoding :param value: The value to be encoded, must ranged in [0, max_v) :param max_v: The max possible value + 1
def util.quart_to_rpy | ( | x, | |
y, | |||
z, | |||
w | |||
) |
Convert a quaternion to rpy