hanlinniu / turtlebot3_ddpg_collision_avoidance

Mapless Collision Avoidance of Turtlebot3 Mobile Robot Using DDPG and Prioritized Experience Replay
https://github.com/hanlinniu/turtlebot3_ddpg_collision_avoidance
102 stars 31 forks source link

turtlebot burger #9

Closed gkgpqls closed 2 years ago

gkgpqls commented 2 years ago

Hello, I'm really appreciate to try DDPG network on my turtlebot.

but when I execute command roslaunch and rosrun, there always be following errors.

Traceback (most recent call last): File "/home/hahyebin/catkin_ws/src/turtlebot3_ddpg_collision_avoidance/turtlebot_ddpg/scripts/fd_replay/play_human_data/ddpg_network_turtlebot3_amcl_fd_replay_human.py", line 492, in main() File "/home/hahyebin/catkin_ws/src/turtlebot3_ddpg_collision_avoidance/turtlebot_ddpg/scripts/fd_replay/play_human_data/ddpg_network_turtlebot3_amcl_fd_replay_human.py", line 466, in main reward, new_state, crashed_value = game_state.game_step(0.1, action[0][1], action[0][0]) # we get reward and state here, then we need to calculate if it is crashed! for 'dones' value File "/home/hahyebin/catkin_ws/src/turtlebot3_ddpg_collision_avoidance/turtlebot_ddpg/scripts/fd_replay/play_human_data/ddpg_turtlebot_turtlebot3_amcl_fd_replay_human.py", line 316, in game_step state = state.reshape(1, self.state_num) ValueError: cannot reshape array of size 364 into shape (1,28)

Why do you think it happens?

Thank you