forked from carla-simulator/ros-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
230 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: CI | ||
|
||
on: [push, pull_request] | ||
# on: [push, pull_request] | ||
|
||
jobs: | ||
check: | ||
|
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,49 @@ | ||
name: Docker | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
|
||
clean-up: | ||
name: Clean up | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Clean up | ||
run: rm -rf * | ||
|
||
docker-ros: | ||
runs-on: ubuntu-latest | ||
needs: clean-up | ||
steps: | ||
- uses: actions/checkout@v4 | ||
name: Checkout repository | ||
with: | ||
submodules: true | ||
|
||
- uses: robinraju/[email protected] | ||
name: Download PythonAPI | ||
with: | ||
repository: carla-compose/carla-simulator | ||
latest: true | ||
fileName: PythonAPI.tar.gz | ||
extract: true | ||
out-file-path: docker/additional-files | ||
|
||
- name: Remove PythonAPI.tar.gz | ||
run: rm docker/additional-files/PythonAPI.tar.gz | ||
|
||
- uses: ika-rwth-aachen/[email protected] | ||
name: Run docker-ros pipeline | ||
with: | ||
base-image: rwthika/ros2:humble | ||
command: ros2 launch carla_ros_bridge carla_ros_bridge.launch.py | ||
target: run | ||
platform: amd64 | ||
registry: docker.io | ||
registry-user: ${{ secrets.DOCKER_USERNAME }} | ||
registry-password: ${{ secrets.DOCKER_PASSWORD }} | ||
image-name: rwthika/carla-ros-bridge | ||
image-tag: ros2 | ||
enable-push-as-latest: true | ||
enable-checkout: false |
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,14 @@ | ||
## Latest : 1.0.0 | ||
|
||
## 1.0.0 - Initial Release | ||
|
||
### Major changes | ||
|
||
* Created GitHub workflow to automatically build Docker images using [docker-ros](https://github.com/ika-rwth-aachen/docker-ros) (supports ROS 2 Humble distribution) | ||
* Update to [CARLA 0.9.15](https://carla.org/2023/11/10/release-0.9.15/) | ||
* Update to Ubuntu 22.04 and Python 3.10 including corresponding pip versions | ||
|
||
### Minor changes | ||
|
||
* Small fixes related to version updates | ||
* Move original Docker related content to `docker_original_folder/` |
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 |
---|---|---|
@@ -1 +1 @@ | ||
0.9.13 | ||
0.9.15 |
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,75 @@ | ||
# Containerization of the carla-ros-bridge | ||
|
||
- [ROS-Bridge](#ros-bridge) | ||
- [Nodes](#nodes) | ||
- [carla\_ros\_bridge/bridge.py](#carla_ros_bridgebridgepy) | ||
- [Subscribed Topics](#subscribed-topics) | ||
- [Published Topics](#published-topics) | ||
- [Services](#services) | ||
- [Usage of docker-ros Images](#usage-of-docker-ros-images) | ||
- [Available Images](#available-images) | ||
- [Default Command](#default-command) | ||
- [Launch Files](#launch-files) | ||
- [Official Documentation](#official-documentation) | ||
|
||
## Nodes | ||
|
||
| Package | Node | Description | | ||
| --- | --- | --- | | ||
| `carla_ros_bridge` | `bridge.py` | Enables two-way communication between ROS and CARLA via ROS topics and commands applied to the CARLA server | | ||
|
||
### carla_ros_bridge/bridge.py | ||
|
||
Also see the [official documentation](https://carla.readthedocs.io/projects/ros-bridge/en/latest/) | ||
|
||
#### Subscribed Topics | ||
|
||
| Topic | Type | Description | | ||
| --- | --- | --- | | ||
| `/carla/debug_marker` | `visualization_msgs/MarkerArray` | Draws markers in the CARLA world. | | ||
| `/carla/weather_control` | `carla_msgs/CarlaWeatherParameters` | Set the CARLA weather parameters | | ||
| `/clock` | `rosgraph_msgs/Clock` | Publishes simulated time in ROS. | | ||
|
||
#### Published Topics | ||
|
||
| Topic | Type | Description | | ||
| --- | --- | --- | | ||
| `/carla/status` | `carla_msgs/CarlaStatus` | Read the current status of CARLA | | ||
| `/carla/world_info` | `carla_msgs/CarlaWorldInfo` | Information about the current CARLA map. | | ||
| `/clock` | `rosgraph_msgs/Clock` | Publishes simulated time in ROS. | | ||
| `/rosout` | `rosgraph_msgs/Log` | ROS logging. | | ||
|
||
#### Services | ||
|
||
| Service | Type | Description | | ||
| --- | --- | --- | | ||
| `/carla/destroy_object` | `carla_msgs/DestroyObject.srv` | Destroys an object | | ||
| `/carla/get_blueprints` | `carla_msgs/GetBlueprints.srv` | Gets blueprints | | ||
| `/carla/spawn_object` | `carla_msgs/SpawnObject.srv` | Spawn an object | | ||
|
||
|
||
## Usage of docker-ros Images | ||
|
||
### Available Images | ||
|
||
| Tag | Description | | ||
| --- | --- | | ||
| `latest-dev_main_ci-amd64 ` | latest dev version | | ||
| `latest_main_ci-amd64 ` | latest run version | | ||
|
||
### Default Command | ||
|
||
```bash | ||
bash -ic "roslaunch carla_ros_bridge carla_ros_bridge.launch" | ||
``` | ||
**Note:** The `-i` flag is used to invoke an interactive shell so any additions/changes to the `.bashrc` are effective when running the command. | ||
|
||
### Launch Files | ||
|
||
| Package | File | Path | Description | | ||
| --- | --- | --- | --- | | ||
| `carla_ros_bridge` | `carla_ros_bridge(launch/py)` | `/docker-ros/ws/install/share/carla_ros_bridge` | Creates ROS bridge node and connects it to the CARLA server | | ||
|
||
## Official Documentation | ||
|
||
- [ROS Bridge](https://carla.readthedocs.io/projects/ros-bridge/en/latest/) |
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,15 @@ | ||
python3-pip | ||
python3-osrf-pycommon | ||
python3-rosdep | ||
python3-wstool | ||
python3-opencv | ||
ros-$ROS_DISTRO-ackermann-msgs | ||
ros-$ROS_DISTRO-cv-bridge | ||
ros-$ROS_DISTRO-vision-opencv | ||
ros-$ROS_DISTRO-rqt-image-view | ||
ros-$ROS_DISTRO-rqt-gui-py | ||
ros-$ROS_DISTRO-derived-object-msgs | ||
ros-$ROS_DISTRO-pcl-conversions | ||
wget | ||
qtbase5-dev | ||
qt5-qmake |
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 @@ | ||
pep8==1.7.1 | ||
autopep8==2.0.4 | ||
cmake_format==0.6.11 | ||
pylint==3.0.3 | ||
transforms3d==0.4.1 | ||
pygame==2.5.2 | ||
pexpect==4.9.0 | ||
simple-pid==2.0.0 | ||
networkx==3.2.1 | ||
pyproj==3.6.1 |
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,27 @@ | ||
export DOCKER_ROS_FILES_PATH=/docker-ros/additional-files | ||
# Install ROS version dependent apt packages | ||
if [ "$ROS_DISTRO" = "noetic" ]; then | ||
ADDITIONAL_PACKAGES="ros-$ROS_DISTRO-rviz | ||
ros-$ROS_DISTRO-opencv-apps | ||
ros-$ROS_DISTRO-rospy | ||
ros-$ROS_DISTRO-rospy-message-converter | ||
ros-$ROS_DISTRO-pcl-ros | ||
python3-catkin-tools | ||
python3-catkin-pkg | ||
python3-catkin-pkg-modules" | ||
else | ||
ADDITIONAL_PACKAGES="ros-$ROS_DISTRO-rviz2" | ||
fi | ||
apt-get install --no-install-recommends -y $ADDITIONAL_PACKAGES | ||
# Check if user provided CARLA PythonAPI. If not, exit | ||
mkdir -p /opt/carla | ||
if [ -d "$DOCKER_ROS_FILES_PATH/artifacts/PythonAPI" ]; then | ||
mv $DOCKER_ROS_FILES_PATH/artifacts/PythonAPI /opt/carla/PythonAPI | ||
else | ||
echo "CARLA PythonAPI not found in $DOCKER_ROS_FILES_PATH/artifacts/PythonAPI ...Exiting" | ||
exit 1 | ||
fi | ||
# Create a script to append necessary paths to PYTHONPATH and make .bashrc source it | ||
echo "export PYTHONPATH=\$PYTHONPATH:/opt/carla/PythonAPI/carla/dist/$(ls /opt/carla/PythonAPI/carla/dist | grep py$PYTHON_VERSION_SHORT.)" >> /opt/carla/setup.bash | ||
echo "export PYTHONPATH=\$PYTHONPATH:/opt/carla/PythonAPI/carla" >> /opt/carla/setup.bash | ||
echo "source /opt/carla/setup.bash" >> /root/.bashrc |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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