Reward
Yiquan-lol opened this issue · 2 comments
Yiquan-lol commented
Hi,
Where is the reward function defined?
Is it in the https://github.com/praveen-palanisamy/macad-gym/blob/master/src/macad_gym/carla/reward.py file?
praveen-palanisamy commented
Hi @Yiquan-lol ,
The Reward
class in reward.py has methods for the different types (currently 4) of reward functions that can be configured to be used in a MACAD-Gym environment.
For example, if you are using the following environment (as in the README example):
import gym
import macad_gym
env = gym.make("HomoNcomIndePOIntrxMASS3CTWN3-v0")
# Your agent code here
the HomoNcomIndePOIntrxMASS3CTWN3-v0
environment's config uses the following reward function:
which is defined here:
macad-gym/src/macad_gym/carla/reward.py
Lines 43 to 67 in 38884ac
praveen-palanisamy commented
Converting this to a discussion.