Thanks Jaroslav,
It is a good thing for me to write down my thought here so that I can clear my mind along the way, cause it is a bit daunting when I just learning all by myself, and a big thanks for your explanation, it helps me know I'm on the right track.
Actually, I've just went to f1tenth_gym_ros github, and since my M1 does not have NVIDIA gpu, so I went for the noVNC, built the docker image and successfully connect to it, the browser.
I'm stuck in Launching the Simulation
$ source /opt/ros/foxy/setup.bash
$ source install/local_setup.bash
$ ros2 launch f1tenth_gym_ros gym_bridge_launch.py
here is my understanding about it:
$ source /opt/ros/foxy/setup.bash >>> I'm using mambaforge to install ROS2, thus mine should be: $ source /Users/eddie/mambaforge/envs/ROS/setup.bash
$ source install/local_setup.bash >>> After I typed docker exec -it f1tenth_gym_ros-sim-1 /bin/bash, I was redirected to a sim_ws:
root@dec2944c06c0:/sim_ws#ls
build install log src
root@dec2944c06c0:/sim_ws# cd install/
root@dec2944c06c0:/sim_ws/install# ls
COLCON_IGNORE _local_setup_util_sh.py local_setup.bash local_setup.sh setup.bash setup.sh
_local_setup_util_ps1.py f1tenth_gym_ros local_setup.ps1 local_setup.zsh setup.ps1 setup.zsh
I suppose local_setup.bash is what I'm looking for, correct me if I wrong.
so I cd .. back to sim_ws
and typed source install/local_setup.bash
I believed right now, I'm almost there.
the Third commmand:
$ ros2 launch f1tenth_gym_ros gym_bridge_launch.py
root@dec2944c06c0:/sim_ws# ros2 launch f1tenth_gym_ros gym_bridge_launch.py
bash: ros2: command not found
I'm not sure what happen, maybe is because I use M1, or could be ros Galatic didn't support it, or it could be I'm using iTerm2 zsh.
Jaroslav Klapálek 在 2022年2月15日 星期二下午11:16:20 [UTC+8] 的信中寫道: