Commit 3d6a9491 authored by Helge's avatar Helge

Some testing with the tag regarding the RosCOnnection

parent 75d1da97
package test;
conforms to de.monticore.lang.monticar.generator.roscpp.RosToEmamTagSchema;
tags Bumb {
tag bumbBot.throttle with RosConnection = {topic = (/carla/ego_vehicle/vehicle_control_cmd, std_msgs/Float64), msgField = data};
tags Bumb{
tag bumbBot.test with RosConnection = {topic = (/carla/ego_vehicle/vehicle_control_cmd, carla_msgs/CarlaEgoVehicleControl), msgField = data};
}
......@@ -2,9 +2,16 @@ package test;
import test.structures.*;
component BumbBot{
port out Q (0.0 : 0.001 : 1.0) throttle;
port out Ego_Vehicle test;
implementation Math{
throttle = 1.0;
test.throttle = 1.0;
test.steer = 0.0;
test.brake = 0.0;
test.hand_brake = false;
test.reverse = false;
test.gear = 1;
test.manual_gear_shift = false;
}
}
......@@ -3,4 +3,9 @@ package test.structures;
struct Ego_Vehicle{
Q throttle;
Q steer;
Q brake;
B hand_brake;
B reverse;
Z gear;
B manual_gear_shift;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment