Skip to content

Commit

Permalink
fix(scripts): message adjustment after the merge
Browse files Browse the repository at this point in the history
Signed-off-by: Lukasz Chojnacki <lukasz.chojnacki@robotec.ai>
  • Loading branch information
lchojnack committed Sep 12, 2024
1 parent cf72aff commit 4aad23f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Assets/AWSIM/Scripts/Environments/V2I/V2IRos2Publisher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ private void UpdateTrafficLightGroupMsg(V2I.OutputData data)
//Get bulbData
var trafficLightBulbData = trafficLight.GetBulbData();
//Fill TrafficSignal with bulbData
var trafficLightElementList = new List<autoware_perception_msgs.msg.TrafficSignalElement>();
var trafficLightElementList = new List<autoware_perception_msgs.msg.TrafficLightElement>();
foreach (var bulbData in trafficLightBulbData)
{
if (isBulbTurnOn(bulbData.Status))
{
var trafficLightElementMsg = new autoware_perception_msgs.msg.TrafficSignalElement();
var trafficLightElementMsg = new autoware_perception_msgs.msg.TrafficLightElement();
trafficLightElementMsg.Color = V2IROS2Utility.UnityToRosBulbColor(bulbData.Color);
trafficLightElementMsg.Shape = V2IROS2Utility.UnityToRosBulbShape(bulbData.Type);
trafficLightElementMsg.Status = V2IROS2Utility.UnityToRosBulbStatus(bulbData.Status);
Expand Down
2 changes: 1 addition & 1 deletion Assets/AWSIM/Scripts/Vehicles/VehicleRos2Input.cs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ void OnEnable()
});
}

void ValidateAndSetVehicleCommand(autoware_auto_control_msgs.msg.AckermannControlCommand command)
void ValidateAndSetVehicleCommand(autoware_control_msgs.msg.Control command)
{
if (Single.IsNaN(command.Longitudinal.Acceleration))
{
Expand Down

0 comments on commit 4aad23f

Please sign in to comment.