Class RosEndpointConnectorComponent
A MonoBehaviour that configures and creates a RosEndpointConnector at runtime, exposing its connection parameters as serialized Inspector fields.
Inheritance
Inherited Members
Namespace: Unity.SimulationPro.RosIntegrations
Assembly: Unity.SimulationPro.RosIntegrations.dll
Syntax
public class RosEndpointConnectorComponent : BaseConnectionComponent
Properties
EndpointIPAddress
Gets or sets the IP address of the ROS TCP endpoint. Defaults to "127.0.0.1".
Declaration
public string EndpointIPAddress { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
EndpointPort
Gets or sets the TCP port of the ROS endpoint. Defaults to 10000.
Declaration
public int EndpointPort { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
IsRos2
Gets or sets whether the connector operates in ROS 2 CDR mode.
Defaults to true when the ROS2 scripting define is active; otherwise false.
Declaration
public bool IsRos2 { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
KeepaliveTime
Gets or sets the idle time in seconds after which a keepalive message is sent. Defaults to 1.
Declaration
public float KeepaliveTime { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
NetworkTimeoutSeconds
Gets or sets the network read timeout in seconds. Defaults to 2.
Declaration
public float NetworkTimeoutSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
ServiceResponseTimeoutSeconds
Gets or sets the service response timeout in seconds. Defaults to 30. Set to 0 to wait forever.
Declaration
public float ServiceResponseTimeoutSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
SleepTimeSeconds
Gets or sets the duration in seconds the connection thread sleeps between send attempts. Defaults to 0.01.
Declaration
public float SleepTimeSeconds { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
Methods
CreateConnector()
CreateConnector method.
Declaration
protected override IConnector CreateConnector()
Returns
| Type | Description |
|---|---|
| IConnector | The result. |