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 5ed9dfa commit d75900f
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 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: 规划控制专项模拟器


Expand Down Expand Up @@ -55,7 +56,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
4 changes: 2 additions & 2 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
/usr/local/LinuxNoEditor/RMUA.sh seed $Seed
else
/usr/local/LinuxNoEditor/RMUA.sh -RenderOffscreen -seed=$Seed
/usr/local/LinuxNoEditor/RMUA.sh -RenderOffscreen seed $Seed
fi

0 comments on commit d75900f

Please sign in to comment.