Back to Carla

CARLA messages reference

Docs/ros2_native_msgs.md

0.10.033.2 KB
Original Source

CARLA messages reference

The following reference lists all the CARLA messages available in the ROS bridge.

Any doubts regarding these messages or the CARLA-ROS bridge can be solved in the forum.

<div class="build-buttons"> <!-- Latest release button --> <p> <a href="https://forum.carla.org/c/carla-ecosystem/ros-bridge" target="_blank" class="btn btn-neutral" title="Go to the CARLA Forum, ROS bridge section"> CARLA forum</a> </p> </div>

CarlaActorInfo.msg

Information shared between ROS and CARLA regarding an actor.

FieldTypeDescription
iduint32The ID of the actor.
parent_iduint32The ID of the parent actor. `0` if no parent available.
typestringThe identifier of the blueprint this actor was based on.
rolenamestringRole assigned to the actor when spawned.

CarlaActorList.msg

A list of messages with some basic information for CARLA actors.

FieldTypeDescription
actorsCarlaActorInfoList of messages with actors' information.

CarlaCollisionEvent.msg

Data retrieved on a collision event detected by the collision sensor of an actor.

FieldTypeDescription
headerHeaderTime stamp and frame ID when the message is published.
other_actor_iduint32ID of the actor against whom the collision was detected.
normal_impulsegeometry_msgs/Vector3Vector representing resulting impulse from the collision.

CarlaControl.msg

These messages control the simulation while in synchronous, non-passive mode. The constant defined is translated as stepping commands.

FieldTypeDescription
commandint8PLAY=0
PAUSE=1
STEP_ONCE=2

CarlaEgoVehicleControl.msg

Messages sent to apply a control to a vehicle in both modes, autopilot and manual. These are published in a stack.

FieldTypeDescription
headerHeaderTime stamp and frame ID when the message is published.
throttlefloat32Scalar value to cotrol the vehicle throttle: [0.0, 1.0]
steerfloat32Scalar value to control the vehicle steering direction: [-1.0, 1.0] to control the vehicle steering
brakefloat32Scalar value to control the vehicle brakes: [0.0, 1.0]
hand_brakeboolIf True, the hand brake is enabled.
reverseboolIf True, the vehicle will move reverse.
gearint32Changes between the available gears in a vehicle.
manual_gear_shiftboolIf True, the gears will be shifted using gear.

CarlaEgoVehicleInfo.msg

Static information regarding a vehicle, mostly the attributes used to define the vehicle's physics.

FieldTypeDescription
iduint32ID of the vehicle actor.
typestringThe identifier of the blueprint this vehicle was based on.
typestringThe identifier of the blueprint this vehicle was based on.
rolenamestringRole assigned to the vehicle.
wheelsCarlaEgoVehicleInfoWheelList of messages with information regarding wheels.
max_rpmfloat32Maximum RPM of the vehicle's engine.
moifloat32Moment of inertia of the vehicle's engine.
damping_rate_full_throttlefloat32Damping rate when the throttle is at maximum.
damping_rate_zero_throttle
_clutch_engagedfloat32Damping rate when the throttle is zero with clutch engaged.
damping_rate_zero_throttle
_clutch_disengagedfloat32Damping rate when the throttle is zero with clutch disengaged.
use_gear_autoboxboolIf True, the vehicle will have an automatic transmission.
gear_switch_timefloat32Switching time between gears.
clutch_strengthfloat32The clutch strength of the vehicle. Measured in Kgm^2/s.
massfloat32The mass of the vehicle measured in Kg.
drag_coefficientfloat32Drag coefficient of the vehicle's chassis.
center_of_massgeometry_msgs/Vector3The center of mass of the vehicle.

CarlaEgoVehicleInfoWheel.msg

Static information regarding a wheel that will be part of a CarlaEgoVehicleInfo.msg message.

FieldTypeDescription
tire_frictionfloat32A scalar value that indicates the friction of the wheel.
damping_ratefloat32The damping rate of the wheel.
max_steer_anglefloat32The maximum angle in degrees that the wheel can steer.
radiusfloat32The radius of the wheel in centimeters.
max_brake_torquefloat32The maximum brake torque in Nm.
max_handbrake_torquefloat32The maximum handbrake torque in Nm.
positiongeometry_msgs/Vector3World position of the wheel.

CarlaEgoVehicleStatus.msg

Current status of the vehicle as an object in the world.

FieldTypeDescription
headerHeaderTime stamp and frame ID when the message is published.
velocityfloat32Current speed of the vehicle.
accelerationgeometry_msgs/AccelCurrent acceleration of the vehicle.
orientationgeometry_msgs/QuaternionCurrent orientation of the vehicle.
controlCarlaEgoVehicleControlCurrent control values as reported by CARLA.

CarlaLaneInvasionEvent.msg

These messages publish lane invasions detected by a lane-invasion sensor attached to a vehicle. The invasions detected in the last step are passed as a list with a constant definition to identify the lane crossed.

FieldTypeDescription
headerheaderTime stamp and frame ID when the message is published.
crossed_lane_markingsint32[]LANE_MARKING_OTHER=0
LANE_MARKING_BROKEN=1
LANE_MARKING_SOLID=2

CarlaScenario.msg

Details for a test scenario.

FieldTypeDescription
namestringName of the scenario.
scenario_filestringTest file for the scenario.
destinationgeometry_msgs/PoseGoal location of the scenario.
target_speedfloat64Desired speed during the scenario.

CarlaScenarioList.msg

List of test scenarios to run in ScenarioRunner.

FieldTypeDescription
scenariosCarlaScenario[]List of scenarios.

CarlaScenarioRunnerStatus.msg

Current state of the ScenarioRunner. It is managed using a constant.

FieldTypeDescription
statusuint8Current state of the scenario as an enum:
STOPPED=0
STARTING=1
RUNNING=2
SHUTTINGDOWN=3
ERROR=4

CarlaStatus.msg

Current world settings of the simulation.

FieldTypeDescription
frameuint64Current frame number.
fixed_delta_secondsfloat32Simulation time between last and current step.
synchronous_modeboolIf True, synchronous mode is enabled.
synchronous_mode_runningboolTrue when the simulation is running. False when it is paused.

CarlaTrafficLightStatus.msg

Constant definition regarding the state of a traffic light.

FieldTypeDescription
iduint32ID of the traffic light actor.
stateuint8RED=0
YELLOW=1
GREEN=2
OFF=3
UNKNOWN=4

CarlaTrafficLightStatusList.msg

List of traffic lights with their status.

FieldTypeDescription
scenariosCarlaTrafficLightStatus[]A list of messages summarizing traffic light states.

CarlaWalkerControl.msg

Information needed to apply a movement controller to a walker.

FieldTypeDescription
directiongeometry_msgs/Vector3Vector that controls the direction of the walker.
speedfloat32A scalar value to control the walker's speed.
jumpboolIf True, the walker will jump.

CarlaWaypoint.msg

Data contained in a waypoint object.

FieldTypeDescription
road_idint32OpenDRIVE road's id.
section_idint32OpenDRIVE section's id, based on the order that they are originally defined.
lane_idint32OpenDRIVE lane's id, this value can be positive or negative which represents the direction of the current lane with respect to the road.
is_junctionboolTrue, if the current Waypoint is on a junction as defined by OpenDRIVE.
is_junctiongeometry_msgs/PoseTrue when the simulation is running. False when it is paused.

CarlaWorldInfo.msg

Information about the current CARLA map.

FieldTypeDescription
map_namestringName of the CARLA map loaded in the current world.
opendrivestring.xodr OpenDRIVE file of the current map as a string.

EgoVehicleControlCurrent.msg

Current time, speed and acceleration values of the vehicle. Used by the controller. It is part of a Carla_Ackermann_Control.EgoVehicleControlInfo.msg message.

FieldTypeDescription
time_secfloat32Current time when the controller is applied.
speedfloat32Current speed applied by the controller.
speed_absfloat32Speed as an absolute value.
accelfloat32Current acceleration applied by the controller.

EgoVehicleControlInfo.msg

Current values within an Ackermann controller. These messages are useful for debugging.

FieldTypeDescription
headerheaderTime stamp and frame ID when the message is published.
restrictionsEgoVehicleControlMaximaLimits to the controller values.
targetEgoVehicleControlTargetLimits to the controller values.
currentEgoVehicleControlCurrentLimits to the controller values.
statusEgoVehicleControlStatusLimits to the controller values.
outputCarlaEgoVehicleControlLimits to the controller values.

EgoVehicleControlMaxima.msg

Controller restrictions (limit values). It is part of a Carla_Ackermann_Control.EgoVehicleControlInfo.msg message.

FieldTypeDescription
max_steering_anglefloat32Max. steering angle for a vehicle.
max_speedfloat32Max. speed for a vehicle.
max_accelfloat32Max. acceleration for a vehicle.
max_decelfloat32Max. deceleration for a vehicle. Default: 8m/s^2
min_accelfloat32Min. acceleration for a vehicle. When the Ackermann taget accel. exceeds this value, the input accel. is controlled.
max_pedalfloat32Min. pedal.

EgoVehicleControlStatus.msg

Current status of the ego vehicle controller. It is part of a Carla_Ackermann_Control.EgoVehicleControlInfo.msg message.

FieldTypeDescription
statusstringCurrent control status.
speed_control_activation_countuint8Speed controller.
speed_control_accel_deltafloat32Speed controller.
speed_control_accel_targetfloat32Speed controller.
accel_control_pedal_deltafloat32Acceleration controller.
accel_control_pedal_targetfloat32Acceleration controller.
brake_upper_borderfloat32Borders for lay off pedal.
throttle_lower_borderfloat32Borders for lay off pedal.

EgoVehicleControlTarget.msg

Target values of the ego vehicle controller. It is part of a Carla_Ackermann_Control.EgoVehicleControlInfo.msg message.

FieldTypeDescription
steering_anglefloat32Target steering angle for the controller.
speedfloat32Target speed for the controller.
speed_absfloat32Speed as an absolute value.
accelfloat32Target acceleration for the controller.
jerkfloat32Target jerk for the controller.