Skip to content

Commit

Permalink
fix actuation topic
Browse files Browse the repository at this point in the history
Signed-off-by: Alptuğ Cırıt <[email protected]>
  • Loading branch information
mozhoku committed Sep 4, 2024
1 parent c43b3f8 commit 35f6d27
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1655,7 +1655,7 @@ MonoBehaviour:
Depth: 1
_actuationQosSettings:
ReliabilityPolicy: 1
DurabilityPolicy: 1
DurabilityPolicy: 2
HistoryPolicy: 1
Depth: 1
--- !u!114 &1782664888259975789
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public class Ros2ToVPPInput : MonoBehaviour

[SerializeField] private QoSSettings qosSettings = new();
[SerializeField] private QoSSettings positionQosSettings;
[SerializeField] private QoSSettings _actuationQosSettings;

// subscribers
private ISubscription<autoware_vehicle_msgs.msg.ControlModeReport> _controlModeSubscriber;
Expand Down Expand Up @@ -76,6 +77,7 @@ private void Start()
{
var qos = qosSettings.GetQoSProfile();
var positionQoS = positionQosSettings.GetQoSProfile();
var actuationQoSSettings = _actuationQosSettings.GetQoSProfile();

_controlModeSubscriber =
SimulatorROS2Node.CreateSubscription<autoware_vehicle_msgs.msg.ControlModeReport>(
Expand Down Expand Up @@ -149,7 +151,7 @@ private void Start()
_adapter.ThrottleInput = msg.Actuation.Accel_cmd;
_adapter.BrakeInput = msg.Actuation.Brake_cmd;
// _adapter.SteerInput = msg.Steer_cmd;
}, qos);
}, actuationQoSSettings);
}

private void OnDestroy()
Expand Down
9 changes: 9 additions & 0 deletions docs/Components/Vehicle/VPPIntegration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,15 @@ As for the other components we've added to the vehicle, we have to give their ne
| `History Policy` | Keep Last |
| `Depth` | 1 |

- `Actuation QoS Setttings`: QoS settings for the actuation topic:

| Variable | Value |
|----------------------|-----------|
| `Reliability Policy` | Reliable |
| `Durability Policy` | Volatile |
| `History Policy` | Keep Last |
| `Depth` | 1 |

### VehicleSignalHandler.cs

| Variable | Description |
Expand Down

0 comments on commit 35f6d27

Please sign in to comment.