Skip to content

Commit

Permalink
FIX:random seed not work
Browse files Browse the repository at this point in the history
  • Loading branch information
jake.luo committed Oct 7, 2023
1 parent fd5da29 commit d07f541
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# release note:
## 20231007: 修复启动脚本随机数输入参数问题,将 _-seed=123_ 改为 _seed 123_
## 20230926: 修改自定义数据类型,为所有的 _airsim_ros_ 下的自定义数据类型添加了时间戳
## 20230916: 更新README,去除settings.json中小窗口图像
## 20230908: 更新README
Expand Down Expand Up @@ -57,7 +58,7 @@
>+ `cp settings.json ~/Documents/AirSim`
>+ 渲染模式 `./run_simulator.sh`
>+ 后台模式 `./run_simulator_offscreen.sh`
注意:脚本中的 _-seed_ 参数为模拟器的随机种子,可根据需要修改
注意:脚本中的 _seed_ 参数为模拟器的随机种子,可根据需要修改
![pic](./docs/渲染模式.png)
>+ 使用ros查看主题
>+ `source /opt/ros/noetic/setup.bash`
Expand Down
2 changes: 1 addition & 1 deletion run_simulator.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
source /opt/ros/noetic/setup.bash
roscore &
./Build/LinuxNoEditor/RMUA.sh -seed=123
./Build/LinuxNoEditor/RMUA.sh seed 123
2 changes: 1 addition & 1 deletion run_simulator_offscreen.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
source /opt/ros/noetic/setup.bash
roscore &
./Build/LinuxNoEditor/RMUA.sh -seed=123 -RenderOffscreen
./Build/LinuxNoEditor/RMUA.sh seed 123 -RenderOffscreen
6 changes: 3 additions & 3 deletions start.bash
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ source /opt/ros/noetic/setup.bash
roscore &
if [ "$RenderOffScreen" -eq "0" ]
then
/usr/local/LinuxNoEditor/RMUA.sh -seed=$Seed
else
/usr/local/LinuxNoEditor/RMUA.sh -RenderOffscreen -seed=$Seed
/usr/local/LinuxNoEditor/RMUA.sh seed $Seed
else
/usr/local/LinuxNoEditor/RMUA.sh -RenderOffscreen seed $Seed
fi

0 comments on commit d07f541

Please sign in to comment.