public override Action CreateGUI(AccelWithCovarianceMsg message, MessageMetadata meta) { return(() => { message.accel.GUI(); VisualizationUtils.GUIGrid(message.covariance, 6, ref m_ViewCovariance); }); }
public override Action CreateGUI(MagneticFieldMsg message, MessageMetadata meta) { return(() => { message.header.GUI(); message.magnetic_field.GUI("Magnetic field (Tesla)"); VisualizationUtils.GUIGrid(message.magnetic_field_covariance, 3, "Covariance", ref m_ViewCovariance); }); }
public override Action CreateGUI(PoseWithCovarianceStampedMsg message, MessageMetadata meta) { return(() => { message.header.GUI(); message.pose.pose.GUI(); VisualizationUtils.GUIGrid(message.pose.covariance, 6, ref m_ViewCovariance); }); }
public override Action CreateGUI(ImuMsg message, MessageMetadata meta) { return(() => { message.header.GUI(); message.orientation.GUI("Orientation"); message.angular_velocity.GUI("Angular velocity"); message.linear_acceleration.GUI("Linear acceleration"); VisualizationUtils.GUIGrid(message.orientation_covariance, 3, "Orientation covariance", ref m_ViewOrientation); VisualizationUtils.GUIGrid(message.angular_velocity_covariance, 3, "Angular velocity covariance", ref m_ViewAngular); VisualizationUtils.GUIGrid(message.linear_acceleration_covariance, 3, "Linear acceleration covariance", ref m_ViewAccel); }); }
public override Action CreateGUI(CameraInfoMsg message, MessageMetadata meta, Texture2D tex) { return(() => { message.header.GUI(); GUILayout.Label($"Height x Width: {message.height}x{message.width}\nDistortion model: {message.distortion_model}"); GUILayout.Label($"Distortion parameters: {string.Join(", ", message.d)}"); VisualizationUtils.GUIGrid(message.k, 3, "K", ref m_ViewK); VisualizationUtils.GUIGrid(message.r, 3, "R", ref m_ViewR); VisualizationUtils.GUIGrid(message.p, 3, "P", ref m_ViewP); GUILayout.Label($"Binning X: {message.binning_x}\nBinning Y: {message.binning_y}"); message.roi.GUI(tex); }); }