Question: How to train a differential robot using reinforcement learning? I need my robot to reach a specific point in a given area. Currently, the algorithm
How to train a differential robot using reinforcement learning?
I need my robot to reach a specific point in a given area. Currently, the algorithm DDPG consists of the following parameters:
State: Robot's x and y position, its orientation, and the reading of an ultrasonic sensor for a total of parameters.
Goal: The goal is composed of the positions to be reached.
Actions: The actions generated are the linear and angular velocity of the robot.
Reward: It is given by the following function:
def rewardfunctionself objectivedistance, obstacledistance, avelocity, lvelocity, timeonobjective:
# Objective distance penalization
rewardobjectivedistance objectivedistance
# Obstacle distance penalization
rewardobstacledistance obstacledistance
# High speeds penalizations
rewardvelocity avelocity lvelocity
# Reward for staying on target
rewardtime timeonobjective
reward rewardobjectivedistance rewardobstacledistance
rewardvelocity rewardtime
return reward
Neural network parameters:
Actor: Two hidden layers of neurons, learning rate of
Critic: Two hidden layers of neurons, learning rate of
However, in all simulations I get very bad results.
Could you give me some tips to improve the training of the robot?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
