Functions | |
def | reconfig_callback |
Variables | |
float | accel_factor = 9.806 |
tuple | accel_x_max = rospy.get_param('~accel_x_max', 250.0) |
tuple | accel_x_min = rospy.get_param('~accel_x_min', -250.0) |
tuple | accel_y_max = rospy.get_param('~accel_y_max', 250.0) |
tuple | accel_y_min = rospy.get_param('~accel_y_min', -250.0) |
tuple | accel_z_max = rospy.get_param('~accel_z_max', 250.0) |
tuple | accel_z_min = rospy.get_param('~accel_z_min', -250.0) |
tuple | calib_data = ser.readlines() |
string | calib_data_print = "Printing set calibration values:\r\n" |
tuple | calibration_magn_use_extended = rospy.get_param('~calibration_magn_use_extended', False) |
string | default_port = '/dev/ttyUSB0' |
float | degrees2rad = 180.0 |
tuple | diag_arr = DiagnosticArray() |
tuple | diag_msg = DiagnosticStatus() |
tuple | diag_pub = rospy.Publisher('diagnostics', DiagnosticArray, queue_size=1) |
tuple | diag_pub_time = rospy.get_time() |
tuple | discard = ser.readlines() |
configure board ### stop datastream | |
tuple | gyro_average_offset_x = rospy.get_param('~gyro_average_offset_x', 0.0) |
tuple | gyro_average_offset_y = rospy.get_param('~gyro_average_offset_y', 0.0) |
tuple | gyro_average_offset_z = rospy.get_param('~gyro_average_offset_z', 0.0) |
float | imu_yaw_calibration = 0.0 |
tuple | imuMsg = Imu() |
tuple | line = ser.readline() |
tuple | magn_ellipsoid_center = rospy.get_param('~magn_ellipsoid_center', [0, 0, 0]) |
tuple | magn_ellipsoid_transform = rospy.get_param('~magn_ellipsoid_transform', [[0, 0, 0], [0, 0, 0], [0, 0, 0]]) |
tuple | magn_x_max = rospy.get_param('~magn_x_max', 600.0) |
tuple | magn_x_min = rospy.get_param('~magn_x_min', -600.0) |
tuple | magn_y_max = rospy.get_param('~magn_y_max', 600.0) |
tuple | magn_y_min = rospy.get_param('~magn_y_min', -600.0) |
tuple | magn_z_max = rospy.get_param('~magn_z_max', 600.0) |
tuple | magn_z_min = rospy.get_param('~magn_z_min', -600.0) |
int | pitch = 0 |
tuple | port = rospy.get_param('~port', default_port) |
tuple | pub = rospy.Publisher('imu', Imu, queue_size=1) |
tuple | q = quaternion_from_euler(roll,pitch,yaw) |
int | roll = 0 |
int | seq = 0 |
tuple | ser = serial.Serial(port=port, baudrate=57600, timeout=1) |
tuple | srv = Server(imuConfig, reconfig_callback) |
tuple | words = string.split(line,",") |
int | yaw = 0 |
tuple | yaw_deg = -float(words[0]) |
def imu_node.reconfig_callback | ( | config, | |
level | |||
) |
Definition at line 47 of file imu_node.py.
float imu_node::accel_factor = 9.806 |
Definition at line 149 of file imu_node.py.
tuple imu_node::accel_x_max = rospy.get_param('~accel_x_max', 250.0) |
Definition at line 108 of file imu_node.py.
tuple imu_node::accel_x_min = rospy.get_param('~accel_x_min', -250.0) |
Definition at line 107 of file imu_node.py.
tuple imu_node::accel_y_max = rospy.get_param('~accel_y_max', 250.0) |
Definition at line 110 of file imu_node.py.
tuple imu_node::accel_y_min = rospy.get_param('~accel_y_min', -250.0) |
Definition at line 109 of file imu_node.py.
tuple imu_node::accel_z_max = rospy.get_param('~accel_z_max', 250.0) |
Definition at line 112 of file imu_node.py.
tuple imu_node::accel_z_min = rospy.get_param('~accel_z_min', -250.0) |
Definition at line 111 of file imu_node.py.
tuple imu_node::calib_data = ser.readlines() |
Definition at line 203 of file imu_node.py.
string imu_node::calib_data_print = "Printing set calibration values:\r\n" |
Definition at line 204 of file imu_node.py.
tuple imu_node::calibration_magn_use_extended = rospy.get_param('~calibration_magn_use_extended', False) |
Definition at line 121 of file imu_node.py.
string imu_node::default_port = '/dev/ttyUSB0' |
Definition at line 100 of file imu_node.py.
float imu_node::degrees2rad = 180.0 |
Definition at line 43 of file imu_node.py.
tuple imu_node::diag_arr = DiagnosticArray() |
Definition at line 265 of file imu_node.py.
tuple imu_node::diag_msg = DiagnosticStatus() |
Definition at line 268 of file imu_node.py.
tuple imu_node::diag_pub = rospy.Publisher('diagnostics', DiagnosticArray, queue_size=1) |
Definition at line 59 of file imu_node.py.
tuple imu_node::diag_pub_time = rospy.get_time() |
Definition at line 60 of file imu_node.py.
tuple imu_node::discard = ser.readlines() |
configure board ### stop datastream
Definition at line 161 of file imu_node.py.
tuple imu_node::gyro_average_offset_x = rospy.get_param('~gyro_average_offset_x', 0.0) |
Definition at line 127 of file imu_node.py.
tuple imu_node::gyro_average_offset_y = rospy.get_param('~gyro_average_offset_y', 0.0) |
Definition at line 128 of file imu_node.py.
tuple imu_node::gyro_average_offset_z = rospy.get_param('~gyro_average_offset_z', 0.0) |
Definition at line 129 of file imu_node.py.
tuple imu_node::imu_yaw_calibration = 0.0 |
Definition at line 44 of file imu_node.py.
tuple imu_node::imuMsg = Imu() |
Definition at line 62 of file imu_node.py.
tuple imu_node::line = ser.readline() |
Definition at line 217 of file imu_node.py.
tuple imu_node::magn_ellipsoid_center = rospy.get_param('~magn_ellipsoid_center', [0, 0, 0]) |
Definition at line 122 of file imu_node.py.
tuple imu_node::magn_ellipsoid_transform = rospy.get_param('~magn_ellipsoid_transform', [[0, 0, 0], [0, 0, 0], [0, 0, 0]]) |
Definition at line 123 of file imu_node.py.
tuple imu_node::magn_x_max = rospy.get_param('~magn_x_max', 600.0) |
Definition at line 116 of file imu_node.py.
tuple imu_node::magn_x_min = rospy.get_param('~magn_x_min', -600.0) |
Definition at line 115 of file imu_node.py.
tuple imu_node::magn_y_max = rospy.get_param('~magn_y_max', 600.0) |
Definition at line 118 of file imu_node.py.
tuple imu_node::magn_y_min = rospy.get_param('~magn_y_min', -600.0) |
Definition at line 117 of file imu_node.py.
tuple imu_node::magn_z_max = rospy.get_param('~magn_z_max', 600.0) |
Definition at line 120 of file imu_node.py.
tuple imu_node::magn_z_min = rospy.get_param('~magn_z_min', -600.0) |
Definition at line 119 of file imu_node.py.
tuple imu_node::pitch = 0 |
Definition at line 146 of file imu_node.py.
tuple imu_node::port = rospy.get_param('~port', default_port) |
Definition at line 101 of file imu_node.py.
tuple imu_node::pub = rospy.Publisher('imu', Imu, queue_size=1) |
Definition at line 57 of file imu_node.py.
tuple imu_node::q = quaternion_from_euler(roll,pitch,yaw) |
Definition at line 252 of file imu_node.py.
tuple imu_node::roll = 0 |
Definition at line 145 of file imu_node.py.
int imu_node::seq = 0 |
Definition at line 148 of file imu_node.py.
tuple imu_node::ser = serial.Serial(port=port, baudrate=57600, timeout=1) |
Definition at line 139 of file imu_node.py.
tuple imu_node::srv = Server(imuConfig, reconfig_callback) |
Definition at line 58 of file imu_node.py.
tuple imu_node::words = string.split(line,",") |
Definition at line 225 of file imu_node.py.
imu_node::yaw = 0 |
Definition at line 147 of file imu_node.py.
float imu_node::yaw_deg = -float(words[0]) |
Definition at line 228 of file imu_node.py.