-
 
No version for distro humble. Known supported distros are highlighted in the buttons above.
No version for distro iron. Known supported distros are highlighted in the buttons above.
No version for distro jazzy. Known supported distros are highlighted in the buttons above.
No version for distro rolling. Known supported distros are highlighted in the buttons above.
No version for distro noetic. Known supported distros are highlighted in the buttons above.
No version for distro ardent. Known supported distros are highlighted in the buttons above.
No version for distro bouncy. Known supported distros are highlighted in the buttons above.
No version for distro crystal. Known supported distros are highlighted in the buttons above.
No version for distro eloquent. Known supported distros are highlighted in the buttons above.
No version for distro dashing. Known supported distros are highlighted in the buttons above.
No version for distro galactic. Known supported distros are highlighted in the buttons above.
No version for distro foxy. Known supported distros are highlighted in the buttons above.
No version for distro lunar. Known supported distros are highlighted in the buttons above.
No version for distro jade. Known supported distros are highlighted in the buttons above.
No version for distro indigo. Known supported distros are highlighted in the buttons above.
No version for distro hydro. Known supported distros are highlighted in the buttons above.

Package Summary

Tags No category tags.
Version 0.0.0
License MIT
Build type CATKIN
Use RECOMMENDED

Repository Summary

Checkout URI https://github.com/carla-simulator/ros-bridge.git
VCS Type git
VCS Version 0.9.6
Last Updated 2020-01-29
Dev Status MAINTAINED
CI status Continuous Integration
Released UNRELEASED
Tags No category tags.
Contributing Help Wanted (0)
Good First Issues (0)
Pull Requests to Review (0)

Package Description

The carla_ego_vehicle package

Additional Links

No additional links.

Maintainers

  • CARLA Simulator Team

Authors

No additional authors.

ROS Ego Vehicle

The reference Carla client carla_ego_vehicle can be used to spawn an ego vehicle (role-name: “ego_vehicle”) with attached sensors.

Info: To be able to use carla_manual_control a camera with role-name ‘view’ and resolution of 800x600 is required.

If no specific position is set, the ego vehicle is spawned at a random position.

Spawning at specific position

It is possible to (re)spawn the ego vehicle at the specific location by publishing to /carla/<ROLE NAME>/initialpose.

The preferred way of doing that is using RVIZ:

Autoware Runtime Manager Settings

Selecting a Pose with ‘2D Pose Estimate’ will delete the current ego_vehicle and respawn it at the specified position.

Re-use existing vehicle as ego-vehicle

It is possible to re-use an existing vehicle as ego-vehicle, instead of spawning a new vehicle. In this case, the role_name is used to identify the vehicle among all CARLA actors through the rolename attribute. Upon success, the requested sensors are attached to this actor, and the actor becomes the new ego vehicle.

To make use of this option, set the ROS parameter spawn_ego_vehicle to false.

Create your own sensor setup

Sensors, attached to the ego vehicle can be defined via a json file. carla_ego_vehicle reads it from the file location defined via the private ros parameter sensor_definition_file.

The format is defined like that:

{ "sensors" = [
    {
      "type": "<SENSOR-TYPE>",
      "id": "<NAME>",
      "x": 0.0, "y": 0.0, "z": 0.0, "roll": 0.0, "pitch": 0.0, "yaw": 0.0, # pose of the sensor, relative to the vehicle
      <ADDITIONAL-SENSOR-ATTRIBUTES>
    },
    ...
  ]
}

Define sensors with their attributes as described in the Carla Documentation about Cameras and Sensors.

An example is provided by carla_example_ego_vehicle.launch. It uses the sensors from sensors.json

CHANGELOG
No CHANGELOG found.

Wiki Tutorials

This package does not provide any links to tutorials in it's rosindex metadata. You can check on the ROS Wiki Tutorials page for the package.

Package Dependencies

System Dependencies

No direct system dependencies.

Dependant Packages

Launch files

  • launch/carla_example_ego_vehicle.launch
      • host [default: localhost]
      • port [default: 2000]
      • vehicle_filter [default: vehicle.*]
      • sensor_definition_file [default: $(find carla_ego_vehicle)/config/sensors.json]
      • role_name [default: ego_vehicle]
      • spawn_point [default: ]
  • launch/carla_ego_vehicle.launch
      • host [default: localhost]
      • port [default: 2000]
      • vehicle_filter [default: vehicle.*]
      • sensor_definition_file
      • role_name [default: ego_vehicle]
      • spawn_point [default: ]
      • remap_rviz_initialpose_goal [default: True]
      • spawn_ego_vehicle [default: True]

Messages

No message files found.

Services

No service files found

Plugins

No plugins found.

Recent questions tagged carla_ego_vehicle at Robotics Stack Exchange

No version for distro melodic. Known supported distros are highlighted in the buttons above.