• Articles
  • Api Documentation
Show / Hide Table of Contents
  • AsyncGPUReadbackPluginNs
    • AsyncGPUReadbackPlugin
    • AsyncGPUReadbackPluginRequest
  • ZO
    • ZOMouseOrbitCamera
  • ZO.Controllers
    • ZO2FingerGripController
    • ZOLinearActuator
    • ZOLinearActuator.Axis
    • ZOServoMotorActuator
  • ZO.Document
    • ZOSerializationInterface
    • ZOSimDocumentRoot
    • ZOSimOccurrence
  • ZO.Math
    • ZOGaussianNoiseModel
    • ZOMathUtil
    • ZOMatrix4x4Util
    • ZORandom
  • ZO.Networking
    • ZOBinaryMessagePublisher
    • ZOBinaryMessageSubscriber
    • ZOJSONMessagePublisher
    • ZOJSONMessageSubscriber
    • ZOPubSubHeader
    • ZOTCPServer
  • ZO.Physics
    • ZOArticulatedBody
    • ZOFixedJoint
    • ZOHingeJoint
    • ZOJointInterface
    • ZOPIDController
    • ZOSpeedLimiter
  • ZO.ROS
    • ZOROSActionServer<TActionMessage, TGoalMessage>
    • ZOROSAPI
    • ZOROSBridgeConnection
    • ZOROSBridgeConnection.ROSBridgeConnectionChangeHandler
    • ZOROSBridgeConnection.SerializationType
  • ZO.ROS.Controllers
    • ControllerStateEnum
    • ZOArmController
    • ZODifferentialDriveController
    • ZOROSControllerInterface
  • ZO.ROS.MessageTypes
    • ZOROSMessageInterface
  • ZO.ROS.MessageTypes.ActionLib
    • ActionStatusEnum
    • GoalIDMessage
    • GoalStatusArrayMessage
    • GoalStatusMessage
    • ZOROSActionGoalMessageInterface
    • ZOROSActionMessageInterface
  • ZO.ROS.MessageTypes.Control
    • FollowJointTrajectoryActionFeedback
    • FollowJointTrajectoryActionGoal
    • FollowJointTrajectoryActionMessage
    • FollowJointTrajectoryActionResult
    • FollowJointTrajectoryFeedback
    • FollowJointTrajectoryGoal
    • FollowJointTrajectoryResult
    • JointToleranceMessage
    • JointTrajectoryControllerStateMessage
  • ZO.ROS.MessageTypes.ControllerManager
    • ControllerStateMessage
    • HardwareInterfaceResourcesMessage
    • ListControllersResponse
    • ListControllerTypesServiceResponse
    • LoadControllerServiceRequest
    • LoadControllerServiceResponse
    • ReloadControllerLibrariesServiceRequest
    • ReloadControllerLibrariesServiceResponse
    • SwitchControllerServiceRequest
    • SwitchControllerServiceResponse
    • UnloadControllerServiceRequest
    • UnloadControllerServiceResponse
  • ZO.ROS.MessageTypes.Gazebo
    • SpawnModelServiceRequest
    • SpawnModelServiceResponse
  • ZO.ROS.MessageTypes.Geometry
    • PointMessage
    • PoseMessage
    • PoseWithCovarianceMessage
    • QuaternionMessage
    • TransformMessage
    • TransformStampedMessage
    • TwistMessage
    • TwistWithCovarianceMessage
    • Vector3Message
  • ZO.ROS.MessageTypes.Nav
    • OdometryMessage
  • ZO.ROS.MessageTypes.ROSAPI
    • GetParamNamesResponse
    • GetParamResponse
    • GetParamServiceRequest
    • HasParamResponse
    • HasParamServiceRequest
    • SetParamServiceRequest
  • ZO.ROS.MessageTypes.ROSGraph
    • ClockMessage
  • ZO.ROS.MessageTypes.Sensor
    • CameraInfoMessage
    • ImageMessage
    • ImuMessage
    • JointStateMessage
    • LaserScanMessage
    • RegionOfInterestMessage
  • ZO.ROS.MessageTypes.Std
    • DurationMessage
    • EmptyServiceRequest
    • EmptyServiceRespone
    • HeaderMessage
    • Int32Message
    • SetBoolServiceRequest
    • SetBoolServiceResponse
    • StringMessage
    • TimeMessage
  • ZO.ROS.MessageTypes.TF2
    • TFMessage
  • ZO.ROS.MessageTypes.Trajectory
    • JointTrajectoryMessage
    • JointTrajectoryPointMessage
  • ZO.ROS.MessageTypes.ZOSim
    • ZOSimDeleteModelRequest
    • ZOSimDeleteModelResponse
    • ZOSimPrefabSpawnRequest
    • ZOSimPrefabSpawnResponse
    • ZOSimSpawnServiceRequest
    • ZOSimSpawnServiceResponse
  • ZO.ROS.Publisher
    • ZOROSImagePublisher
    • ZOROSIMUPublisher
    • ZOROSIMUPublisher.CoordinateSystemEnum
    • ZOROSJointStatesPublisher
    • ZOROSLaserScanPublisher
    • ZOROSRGBDepthPublisher
    • ZOROSStereoImagePublisher
    • ZOROSTransformPublisher
  • ZO.ROS.Unity
    • ZOROSUnityGameObjectBase
    • ZOROSUnityInterface
    • ZOROSUnityManager
    • ZOROSUnityManager.ROSBridgeConnectionChangeHandler
  • ZO.ROS.Unity.Docker
    • ZOROSLaunchParameters
  • ZO.ROS.Unity.Service
    • ZOControllerManagerService
    • ZOSimDeleteModelService
    • ZOSimPrefabSpawnService
    • ZOSimResetSimulationService
    • ZOSimSpawnService
  • ZO.Sensors
    • ZOContactDetector
    • ZOContactSwitchDualChannel
    • ZOIMU
    • ZOLIDAR2D
    • ZOLIDAR3D
    • ZOLIDAR3D.ReferenceFrame
    • ZORaycastJobBatch
    • ZORGBCamera
    • ZORGBDepthCamera
    • ZORGBDepthCamera.FrameOutputType
  • ZO.Util
    • ZOCenterOfMass
    • ZOClock
    • ZODocker
    • ZODocker.VolumeMapEntry
    • ZODockerRunParameters
    • ZODrawArc
    • ZODrawCircle
    • ZOEarthUtils
    • ZOEarthUtils.GeoPoint
    • ZOEarthUtils.HomeGeoPoint
    • ZOFrequencyCounter
    • ZOFrequencyCounter.TimeSourceType
    • ZOGameObjectBase
    • ZOMagnetometer
    • ZOMoveTest
    • ZOMoveTest.MoveTypeEnum
    • ZORandomizePhysics
    • ZORandomizeTransform
    • ZOReadOnlyAttribute
    • ZOSystem
    • ZOTurnOffSelfCollision
  • ZO.Util.Extensions
    • ZOJSONExtensions
  • ZO.Util.Rendering
    • ZOAsyncGPUReadbackPlugin
    • ZOAsyncGPUReadbackPluginRequest

Class ZOPIDController

Proportional Integral Derivative (PID) controller.

Inheritance
System.Object
ZOPIDController
Implements
ZOSerializationInterface
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZO.Physics
Assembly: Unity.ZeroSim.dll
Syntax
[Serializable]
public class ZOPIDController : ZOSerializationInterface

Fields

| Improve this Doc View Source

_deadBandEpsilon

Declaration
[Tooltip("Deadband")]
public float _deadBandEpsilon
Field Value
Type Description
System.Single
| Improve this Doc View Source

_Kd

Declaration
[Tooltip("Derivative constant (fights oscillation)")]
public float _Kd
Field Value
Type Description
System.Single
| Improve this Doc View Source

_Ki

Declaration
[Tooltip("Integral constant (counters cumulated error)")]
public float _Ki
Field Value
Type Description
System.Single
| Improve this Doc View Source

_Kp

Declaration
[Tooltip("Proportional constant (counters current error)")]
public float _Kp
Field Value
Type Description
System.Single
| Improve this Doc View Source

_maximumOutputValue

Declaration
[Tooltip("Maximum Output Value")]
public float _maximumOutputValue
Field Value
Type Description
System.Single
| Improve this Doc View Source

_name

Declaration
public string _name
Field Value
Type Description
System.String
| Improve this Doc View Source

_output

Declaration
public float _output
Field Value
Type Description
System.Single
| Improve this Doc View Source

_setPoint

Declaration
[Tooltip("Set point value")]
public float _setPoint
Field Value
Type Description
System.Single

Properties

| Improve this Doc View Source

DeadBandEpsilon

Deadband area where if value jump around we consider the PID converged to the set point.

Declaration
public float DeadBandEpsilon { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

IsAtDeadBand

Determines if we are within the deadband epsilon area. DeadBandEpsilon

Declaration
public bool IsAtDeadBand { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

JSON

Declaration
public JObject JSON { get; }
Property Value
Type Description
Newtonsoft.Json.Linq.JObject
| Improve this Doc View Source

Kd

Derivative

Declaration
public float Kd { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Ki

Integral

Declaration
public float Ki { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Kp

Proportional

Declaration
public float Kp { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

MaximumOutputValue

Maximum output value that we clamp to.

Declaration
public float MaximumOutputValue { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Name

Declaration
public string Name { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

SetPoint

PID set point. The value it is trying to "get" to.

Declaration
public float SetPoint { get; set; }
Property Value
Type Description
System.Single
| Improve this Doc View Source

Type

Declaration
public string Type { get; }
Property Value
Type Description
System.String

Methods

| Improve this Doc View Source

Deserialize(ZOSimDocumentRoot, JObject)

Declaration
public void Deserialize(ZOSimDocumentRoot documentRoot, JObject json)
Parameters
Type Name Description
ZOSimDocumentRoot documentRoot
Newtonsoft.Json.Linq.JObject json
| Improve this Doc View Source

Serialize(ZOSimDocumentRoot, Object)

Declaration
public JObject Serialize(ZOSimDocumentRoot documentRoot, Object parent = null)
Parameters
Type Name Description
ZOSimDocumentRoot documentRoot
UnityEngine.Object parent
Returns
Type Description
Newtonsoft.Json.Linq.JObject
| Improve this Doc View Source

Update(Single, Single)

Declaration
public float Update(float current, float dt)
Parameters
Type Name Description
System.Single current
System.Single dt
Returns
Type Description
System.Single

Implements

ZOSerializationInterface
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX