Closed Bkarso closed 3 years ago
@RGring
Seems that your pedsim is not setup correctly. Did you load the third-party repositories? https://github.com/RGring/drl_local_planner_ros_stable_baselines/blob/master/.rosinstall
yes,I downloaded it according to the version
but when I catkin_make the "flatland",I need to comment some code: //Bkarso----------------------------------- //if (target != m_targetA) //comment here,I think that it doesn't matter; { m_bodyB->SetAwake(true); m_targetA = target; } //Bkarso-----------------------------------
And when I run it : python rl_agent/scripts/train_scripts/train_ppo.py ;
It had some error :
(venv_p3) hantewin@hantewin-System-Product-Name:~/test/src/drl_local_planner_ros_stable_baselines-master$ python rl_agent/scripts/train_scripts/train_ppo.py
/home/hantewin/path_to_venv/venv_p3/lib/python3.5/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
/home/hantewin/path_to_venv/venv_p3/lib/python3.5/site-packages/tensorflow/python/framework/dtypes.py:527: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint8 = np.dtype([("quint8", np.uint8, 1)])
/home/hantewin/path_to_venv/venv_p3/lib/python3.5/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint16 = np.dtype([("qint16", np.int16, 1)])
/home/hantewin/path_to_venv/venv_p3/lib/python3.5/site-packages/tensorflow/python/framework/dtypes.py:529: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_quint16 = np.dtype([("quint16", np.uint16, 1)])
/home/hantewin/path_to_venv/venv_p3/lib/python3.5/site-packages/tensorflow/python/framework/dtypes.py:530: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint32 = np.dtype([("qint32", np.int32, 1)])
/home/hantewin/path_to_venv/venv_p3/lib/python3.5/site-packages/tensorflow/python/framework/dtypes.py:535: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
np_resource = np.dtype([("resource", np.ubyte, 1)])
Traceback (most recent call last):
File "rl_agent/scripts/train_scripts/train_ppo.py", line 22, in
help me please.thanks. @RGring
I also have another download spencer_messages and spencer_tracking_rviz_plugin in pedsim_ros
how do you solve your problem?
hello , When I tried to python rl_agent/scripts/train_scripts/train_ppo.py
It had error here:
Traceback (most recent call last): File "rl_agent/scripts/train_scripts/train_ppo.py", line 13, in
from rl_agent.env_wrapper.ros_env_cont_img import RosEnvContImg
File "/home/hantewin/test/src/drl_local_planner_ros_stable_baselines-master/rl_agent/src/rl_agent/env_wrapper/ros_env_cont_img.py", line 19, in
from rl_agent.env_wrapper.ros_env_img import RosEnvImg
File "/home/hantewin/test/src/drl_local_planner_ros_stable_baselines-master/rl_agent/src/rl_agent/env_wrapper/ros_env_img.py", line 15, in
from rl_agent.env_wrapper.ros_env import RosEnvAbs
File "/home/hantewin/test/src/drl_local_planner_ros_stable_baselines-master/rl_agent/src/rl_agent/env_wrapper/ros_env.py", line 32, in
from rl_agent.env_utils.task_generator import TaskGenerator
File "/home/hantewin/test/src/drl_local_planner_ros_stable_baselines-master/rl_agent/src/rl_agent/env_utils/task_generator.py", line 29, in
from pedsim_srvs.srv import SpawnPeds
ImportError: cannot import name 'SpawnPeds'
Can you help me? please,I don't know how to deal with it , I had chmod 777 als