-
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
33 changed files
with
2,061 additions
and
627 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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CompileFlags: | ||
Add: | ||
- -Iros-deps-for-development/rmw/rmw/include | ||
- -Iros-deps-for-development/rosidl/rosidl_runtime_c/include | ||
- -Iros-deps-for-development/rosidl/rosidl_typesupport_introspection_c/include | ||
- -Iros-deps-for-development/rosidl/rosidl_typesupport_interface/include | ||
- -Iros-deps-for-development/rosidl/rosidl_typesupport_interface/include | ||
- -Iros-deps-for-development/rmw_fastrtps/rmw_fastrtps_dynamic_cpp/include | ||
- -Iros-deps-for-development/rmw_fastrtps/rmw_fastrtps_shared_cpp/include | ||
- -Iros-deps-for-development/rmw_fastrtps/rmw_fastrtps_cpp/include |
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,2 @@ | ||
**/target | ||
ros-deps-for-development |
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,2 @@ | ||
/target/ | ||
/ros-deps-for-development/ |
This file was deleted.
Oops, something went wrong.
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,12 @@ | ||
FROM ros:humble | ||
|
||
RUN apt-get update | ||
RUN apt-get install libssl-dev libclang-dev curl pkg-config -y | ||
|
||
RUN curl https://sh.rustup.rs -sSf | bash -s -- -y | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
COPY . /src | ||
WORKDIR /src | ||
ENV BINDGEN_EXTRA_CLANG_ARGS="-I/opt/ros/humble/include/rcutils -I/opt/ros/humble/include/rcpputils -I/opt/ros/humble/include/rosidl_runtime_c -I/opt/ros/humble/include/rosidl_typesupport_interface -I/opt/ros/humble/include/rosidl_typesupport_introspection_c -I/opt/ros/humble/include/rmw -I/opt/ros/humble/include/rmw_fastrtps_shared_cpp -I/opt/ros/humble/include/fastrtps -I/opt/ros/humble/include/fastcdr" | ||
RUN ./build-release.sh |
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 was deleted.
Oops, something went wrong.
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,9 @@ | ||
set -e | ||
|
||
docker build -f Dockerfile.builder -t modality-ros2-build . | ||
|
||
mkdir -p target/docker-release/ | ||
id=$(docker create modality-ros2-build) | ||
docker cp $id:/src/target/release/libmodality_ros_hook.so target/docker-release/ | ||
docker cp $id:/src/target/release/ros_deps target/docker-release/ | ||
docker rm -v $id |
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,20 @@ | ||
FROM modality-ros2-build | ||
|
||
FROM ros:humble | ||
|
||
RUN apt update | ||
RUN apt upgrade -y | ||
RUN apt install less vim ros-humble-demo-nodes-py psmisc -y | ||
COPY --from=0 /src/target/release/libmodality_ros_hook.so / | ||
COPY run.sh / | ||
|
||
# RUN apt install xterm -y | ||
# RUN apt install ros-humble-ros-ign-bridge ros-humble-robot-localization "ros-humble-nav2-*" -y | ||
# RUN apt install ignition-fortress -y | ||
# RUN apt install ros-humble-xacro ros-humble-ros-gz-sim ros-humble-rviz2 -y | ||
# | ||
# COPY run.sh / | ||
# COPY nav2_outdoor_example /nav2_outdoor_example | ||
# WORKDIR /nav2_outdoor_example | ||
# RUN bash -c "source /opt/ros/humble/setup.bash && colcon build" | ||
# WORKDIR / |
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 @@ | ||
Make podman fast in debian: https://github.com/containers/podman/issues/13226 | ||
Running: | ||
- source install/setup.bash | ||
- ros2 launch nav2_outdoor_example bringup.launch.py | ||
|
||
/opt/ros/humble/lib/demo_nodes_py/add_two_ints_client | ||
/opt/ros/humble/lib/demo_nodes_py/add_two_ints_client_async | ||
/opt/ros/humble/lib/demo_nodes_py/add_two_ints_server | ||
/opt/ros/humble/lib/demo_nodes_py/listener | ||
/opt/ros/humble/lib/demo_nodes_py/listener_qos | ||
/opt/ros/humble/lib/demo_nodes_py/listener_serialized | ||
/opt/ros/humble/lib/demo_nodes_py/talker | ||
/opt/ros/humble/lib/demo_nodes_py/talker_qos |
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,64 @@ | ||
# -*- mode: ruby -*- | ||
# vi: set ft=ruby : | ||
|
||
Vagrant.configure("2") do |config| | ||
# Every Vagrant development environment requires a box. You can search for | ||
# boxes at https://vagrantcloud.com/search. | ||
config.vm.box = "generic/ubuntu2204" | ||
config.vagrant.plugins = "vagrant-libvirt" | ||
|
||
config.vm.provider "libvirt" do |lv| | ||
lv.memory = "8192" | ||
lv.cpus = 16 | ||
end | ||
|
||
config.vm.provision "shell", inline: <<-SHELL | ||
apt-get install -y software-properties-common curl | ||
curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg | ||
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | tee /etc/apt/sources.list.d/ros2.list > /dev/null | ||
apt-add-repository universe | ||
apt-get update | ||
apt-get upgrade -y | ||
apt-get install -y apache2 locales ros-humble-ros-base ros-dev-tools ros-humble-desktop "ros-humble-ament-*" ros-humble-xacro ros-humble-ros-gz-sim ros-humble-ros-gz-bridge -y | ||
locale-gen en_US en_US.UTF-8 | ||
update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8 | ||
LANG=en_US.UTF-8 | ||
SHELL | ||
|
||
# Create a forwarded port mapping which allows access to a specific port | ||
# within the machine from a port on the host machine. In the example below, | ||
# accessing "localhost:8080" will access port 80 on the guest machine. | ||
# NOTE: This will enable public access to the opened port | ||
# config.vm.network "forwarded_port", guest: 80, host: 8080 | ||
|
||
# Create a forwarded port mapping which allows access to a specific port | ||
# within the machine from a port on the host machine and only allow access | ||
# via 127.0.0.1 to disable public access | ||
# config.vm.network "forwarded_port", guest: 80, host: 8080, host_ip: "127.0.0.1" | ||
|
||
# Create a private network, which allows host-only access to the machine | ||
# using a specific IP. | ||
# config.vm.network "private_network", ip: "192.168.33.10" | ||
|
||
# Create a public network, which generally matched to bridged network. | ||
# Bridged networks make the machine appear as another physical device on | ||
# your network. | ||
# config.vm.network "public_network" | ||
|
||
# Share an additional folder to the guest VM. The first argument is | ||
# the path on the host to the actual folder. The second argument is | ||
# the path on the guest to mount the folder. And the optional third | ||
# argument is a set of non-required options. | ||
# config.vm.synced_folder "../data", "/vagrant_data" | ||
|
||
# Disable the default share of the current code directory. Doing this | ||
# provides improved isolation between the vagrant box and your host | ||
# by making sure your Vagrantfile isn't accessible to the vagrant box. | ||
# If you use this you may want to enable additional shared subfolders as | ||
# shown above. | ||
# config.vm.synced_folder ".", "/vagrant", disabled: true | ||
|
||
end |
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,16 @@ | ||
set -e | ||
|
||
( | ||
cd .. | ||
./build-in-docker.sh | ||
) | ||
|
||
if ! docker image exists ros:humble; then | ||
docker pull docker.io/ros:humble | ||
fi | ||
docker build . -t modality-ros2-example | ||
docker run -it --rm \ | ||
--net=host \ | ||
-v ~/.config/modality_cli:/root/.config/modality_cli \ | ||
modality-ros2-example \ | ||
/run.sh |
Oops, something went wrong.