ROBOTIS-GIT / turtlebot3_machine_learning

Apache License 2.0
121 stars 82 forks source link

Lidar rays as state input #45

Open HosseinSheikhi opened 4 years ago

HosseinSheikhi commented 4 years ago

I found the state (the input to the deep-Q network) in the ROS2 version weird and confusing. As the documentation says and what is implemented in ROS 1 versions, the state supposed to be a vector by size 26 including 24 rays of lidar. However, in the ROS2 implementation, just min range and arg min of the lidar are extracted and the state is just a vector by size 4! Could you please explain what is going on?

LAXMEKS commented 3 years ago

yes i too have the same doubt. how the vector value from lidar is considered in the input state? here is my input state value. Screenshot from 2021-02-27 10-22-17

ROBOTIS-Will commented 3 years ago

Sorry about the discrepancy between the eManual descriptions and the ROS2 source code. The ROS2 code had been modified to use the distance and angle of the goal position, and those of the nearest obstacle (from the scan data) as an input state o. I'm currently reviewing the machine learning code as well as the documentations. Thank you.