Closed Phyrisana closed 1 year ago
rocker
で docker 起動する毎に ROS2 をセットアップするファイルを source
コマンドで実行する必要があると思われます。
# Step 1: ビルドする
cd /aichallenge/aichallenge_ws
rosdep update
rosdep install -y -r -i --from-paths src --ignore-src --rosdistro $ROS_DISTRO
colcon build
# Step 2: ROS2 をファイルでセットアップする ↓↓↓↓このステップが必要と思われます↓↓↓↓
source /aichallenge/aichallenge_ws/install/setup.bash
# Step 3: 動作確認
cd /aichallenge
ros2 launch autoware_launch e2e_simulator.launch.xml vehicle_model:=sample_vehicle sensor_model:=awsim_sensor_kit map_path:=nishishinjuku_autoware_map
rocker
de docker 启动するるニ ROS2 をズットアップするファイルをsource
コマンド実行する必须要ガあると思わレま。# Step 1: ビルドする cd /aichallenge/aichallenge_ws rosdep update rosdep install -y -r -i --from-paths src --ignore-src --rosdistro $ROS_DISTRO colcon build # Step 2: ROS2 をファイルでセットアップする ↓↓↓↓このステップが必要と思われます↓↓↓↓ source /aichallenge/aichallenge_ws/install/setup.bash # Step 3: 動作確認 cd /aichallenge ros2 launch autoware_launch e2e_simulator.launch.xml vehicle_model:=sample_vehicle sensor_model:=awsim_sensor_kit map_path:=nishishinjuku_autoware_map
ありがとうございます。解決できましたが、AWSIMとAutowareを一緒起動する際には強制再起動されます。 osと関係ありますでしょうか。こちらが使っているOSはUbuntu 22.04
2つ可能性があると思います。
AWSIM が起動できずクラッシュする場合 Ubuntu にインストールされた NVIDIA ドライバが原因かもしれないです。以下の記事からドライバを更新すると AWSIM がクラッシュしなくなる可能性があります。 https://twitter.com/wd01x2oa/status/1616420832401817601?s=46&t=3a0mNaOhKySYOvZXU8CuHw
AWSIM と Autoware が連携しない場合 今回のコンテナ側の Autoware は ROS2 Galactic を使用しているため,Galactic が対応している Ubuntu 20.04 が必要かもしれないです。ホスト側を Ubuntu 20.04 にして ROS2 Galactic をインストールします。
スペックもあると思います。実行時に free -h コマンドで swap が一杯になっているとメモリ不足で OS が不安定になり AWSIM もクラッシュします。AWSIM と Autoware を 1台で起動する場合,メモリは swap と合わせて 20GB は必要な印象です。
動作確認 AutowareとAWSIMを用いて動作確認を行う方法を記載します。
AWSIMを起動 Autowareを起動
Rockerコンテナ内で
cd /aichallenge
ros2 launch autoware_launch e2e_simulator.launch.xml vehicle_model:=sample_vehicle sensor_model:=awsim_sensor_kit map_path:=nishishinjuku_autoware_mapを入力すると、
こいう異常がでました。