hanlinniu/turtlebot3_ddpg_collision_avoidance

turtlebot burger

gkgpqls opened this issue · 0 comments

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