Can't not determinate the number of the environment, training script may crash!
/home/dell/.cache/pypoetry/virtualenvs/arena-rosnav-jPKqHTAF-py3.8/lib/python3.8/site-packages/gym/spaces/box.py:73: UserWarning: WARN: Box bound precision lowered by casting to float32
logger.warn(
Traceback (most recent call last):
File "run_agent.py", line 142, in <module>
env = DummyVecEnv(
File "/home/dell/catkin_ws/src/forks/stable-baselines3/stable_baselines3/common/vec_env/dummy_vec_env.py", line 25, in __init__
self.envs = [fn() for fn in env_fns]
File "/home/dell/catkin_ws/src/forks/stable-baselines3/stable_baselines3/common/vec_env/dummy_vec_env.py", line 25, in <listcomp>
self.envs = [fn() for fn in env_fns]
File "run_agent.py", line 84, in _init
env = FlatlandEnv(
File "/home/dell/catkin_ws/src/arena-rosnav/arena_navigation/arena_local_planner/learning_based/arena_local_planner_drl/rl_agent/envs/flatland_gym_env.py", line 129, in __init__
self.task = get_predefined_task(
File "/home/dell/catkin_ws/src/arena-rosnav/task_generator/task_generator/tasks.py", line 672, in get_predefined_task
robot_manager = RobotManager(
File "/home/dell/catkin_ws/src/arena-rosnav/task_generator/task_generator/robot_manager.py", line 73, in __init__
self.planner = rospy.get_param("/local_planner")
File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/client.py", line 467, in get_param
return _param_server[param_name] #MasterProxy does all the magic for us
File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/msproxy.py", line 123, in __getitem__
raise KeyError(key)
KeyError: '/local_planner'
In addition, when I evaluated cadrl, it doesn't work,too.
Hello!My name is Yixiao Du. When I reproduce your code, there are two problems. Hope to get your help!Thank you! When I want to run the trained agent:
And I should note: Notes:
drl_mode
is activated in plan_fsm_param.yamlHowever, I can't find the file in this location.
If I ignore this file, continue to run the code
Then I got:
In addition, when I evaluated cadrl, it doesn't work,too.
When I run:
an error occurred:
It doesn't appear when I use TEB, DWA, etc
It puzzles me.
Hope to get your help, thank you very much!