forked from carla-simulator/ros-bridge
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- carla_ros_scenario_runner is a ros node, that is able to control the CARLA scenario runner. - scenarios can be executed via ros-service - carla_ad_agent is a ros node, that provides basic ad functionality - derived from carla planning - respects traffic lights - avoids crashs with other vehicles - rviz_carla_plugin is a rviz plugin with the following features: - provide a pose of the current view (used in carla_spectator_camera) - visualize the current vehicle control - allows manually overriding the vehicle control - execute a scenario - pause the simulation (if started in synchronous mode) - carla_ad_demo provides a demo setup (also including all of the above nodes) - modify carla_waypoint_publisher service to be able to provide waypoint for an actor id
- Loading branch information
1 parent
cb00099
commit d968bc9
Showing
60 changed files
with
3,526 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(carla_ad_agent) | ||
|
||
find_package(catkin REQUIRED COMPONENTS | ||
rospy | ||
roslaunch | ||
) | ||
|
||
catkin_python_setup() | ||
|
||
roslaunch_add_file_check(launch) | ||
|
||
catkin_package( | ||
CATKIN_DEPENDS | ||
rospy | ||
) | ||
|
||
catkin_install_python(PROGRAMS | ||
src/carla_ad_agent/carla_ad_agent.py | ||
src/carla_ad_agent/basic_agent.py | ||
src/carla_ad_agent/agent.py | ||
src/carla_ad_agent/local_planner.py | ||
src/carla_ad_agent/vehicle_pid_controller.py | ||
src/carla_ad_agent/misc.py | ||
src/carla_ad_agent/__init__.py | ||
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} | ||
) | ||
|
||
install(DIRECTORY launch/ | ||
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# CARLA AD Agent | ||
|
||
An AD agent that can follow a given route. | ||
|
||
It avoids crashs with other vehicles and respects the state of the traffic lights. | ||
|
||
For a more comprehensive solution, have a look at [Autoware](https://www.autoware.ai/). | ||
|
||
## Publications | ||
|
||
| Topic | Type | Description | | ||
| ---------------------------------- | ------------------- | --------------------------- | | ||
| `/carla/<ROLE NAME>/vehicle_control_cmd` | [carla_msgs.CarlaEgoVehicleControl](../carla_msgs/msg/CarlaEgoVehicleControl.msg) | Vehicle control command | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- --> | ||
<launch> | ||
<arg name="role_name" default="ego_vehicle"/> | ||
<arg name="target_speed" default="20"/> | ||
<arg name="avoid_risk" default="True"/> | ||
|
||
<node pkg="carla_ad_agent" type="carla_ad_agent.py" name="carla_ad_agent_$(arg role_name)" output="screen"> | ||
<param name="target_speed" value="$(arg target_speed)" /> | ||
<param name="role_name" value="$(arg role_name)" /> | ||
<param name="avoid_risk" value="$(arg avoid_risk)" /> | ||
</node> | ||
</launch> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<package format="2"> | ||
<name>carla_ad_agent</name> | ||
<version>0.0.1</version> | ||
<description>The carla_ad_agent package</description> | ||
<maintainer email="[email protected]">CARLA Simulator Team</maintainer> | ||
<license>MIT</license> | ||
<buildtool_depend>catkin</buildtool_depend> | ||
<build_depend>rospy</build_depend> | ||
<build_depend>roslaunch</build_depend> | ||
<build_export_depend>rospy</build_export_depend> | ||
<exec_depend>rospy</exec_depend> | ||
<exec_depend>topic_tools</exec_depend> | ||
<exec_depend>carla_waypoint_types</exec_depend> | ||
<exec_depend>carla_msgs</exec_depend> | ||
<export> | ||
</export> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
from distutils.core import setup | ||
from catkin_pkg.python_setup import generate_distutils_setup | ||
|
||
d = generate_distutils_setup( | ||
packages=['carla_ad_agent'], | ||
package_dir={'': 'src'} | ||
) | ||
|
||
setup(**d) | ||
|
Empty file.
Oops, something went wrong.