Team Galaxis Notes
- docker starten mit
./scripts/start_docker.sh - mehrmals compilen mit
./compile.sh source /opt/ros/eloquent/setup.bash(check, ob alles stimmt:ros2 run demo_nodes_cpp talkerund in anderem terminal (hier ohne docker)ros2 run demo_nodes_cpp listener) 4.-8. ist optional:sudo rosdep initrosdep updateecho $ROS_DISTROum ros distro rauszufinden- Resolve dependencies
rosdep install -i --from-path src --rosdistro eloquent -y - follow Tutorial
source ./install/setup.bash(check, ob alles stimmt:ros2 pkg executables | vim -zeigt jetzt neben den ROS2 standard packages u.a. verschiedenegalaxis_packages an) (Statt 3. und 9. kann man auch ein scriptphth_script.sherstellen, das dieselben commands enthält und dann in jedem tmux über. ./phth_script.shodersource ./phth_script.shsourcen oder übertmux set-option -g default-command "bash --rcfile phth_script.sh"(command muss in einer tmux session eingegeben werden!) in allen weiteren tmux panes und windows automatisch sourcen (dh. im aktuellen pane muss das script noch gesourct werden, aber alle neu geöffneten panes sourcen das script automatisch). Achtung:bash ./phth_script.shfunktioniert nicht, weil s. hier oder hier)ros2 run <package> <executable>zBros2 run gal<tab1> <tab2>, wobei<tab1>um package zu vervollständigen und<tab2>um executable auszuwählen.- Start simulation: auf local machine:
cd ~/git/galaxis-simulation/simulationund hier./start_container.sh. Dann im container./start_simulation.sh. - Start bridge to simulation: auf local machine:
cd ~/git/galaxis-simulation/bridgeund hier./start_container.sh. Dann im container./start_bridge.sh. - Start control terminal: auf local machine:
cd ~/git/onboardingund hier./scripts/start_docker.sh. Dann im containertmux. - in tmux: ROS2 control Beispiele:
ros2 topic pub --once /galaxis/simulation/remotecontrol messages/msg/SimulationVehicleControl "car_speed: 0.0
turnangle_front: 0.0
reset: true
remote_control: -1"
ros2 topic pub /simulation/gazebo/model/dr_drift/set_pose gazebo_simulation/msg/SetModelPose "keys: [0,1]
values: [0.4,-0.2]"
tmux
send-keys
C-m ist dasselbe wie Enter.