-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1d encoder implementations #266
base: master
Are you sure you want to change the base?
Conversation
…utonomous_f1tenth into 1d-encoder-implementations
…omous_f1tenth into 1d-encoder-implementations
…ARES/autonomous_f1tenth into 1d-encoder-implementations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should be added to gitignore
odom[5] = odom[5] - self.offset[5] | ||
|
||
limited_odom = odom[-2:] | ||
# if self.firstOdom: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know it looks ugly but this needs to stay for the real car odom to work. Can probably be changed to look nicer but logic is necessary.
|
||
scan = create_lidar_msg(lidar, len(lidar_range), lidar_range) | ||
self.processed_publisher.publish(scan) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not all cases seem to produce a variable called scan so this could break the code.
############################################################## | ||
## TEMPORARILY OVERRIDING NETWORK CONFIG FOR TD3AE AND SACAE | ||
############################################################## | ||
_,_,network_config = parse_args_from_file() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If network_config is assigned here it shouldn't be receiving the variables from parse_args too
##################################################################################################################### | ||
# CHANGE SETTINGS HERE, might be specific to environment, therefore not moved to config file (for now at least). | ||
|
||
# Reward configuration | ||
self.BASE_REWARD_FUNCTION:Literal["goal_hitting", "progressive"] = 'progressive' | ||
self.EXTRA_REWARD_TERMS:List[Literal['penalize_turn']] = [] | ||
self.REWARD_MODIFIERS:List[Tuple[Literal['turn','wall_proximity'],float]] = [('turn', 0.3), ('wall_proximity', 0.7)] # [ (penalize_turn", 0.3), (penalize_wall_proximity, 0.7) ] | ||
self.REWARD_MODIFIERS:List[Tuple[Literal['turn','wall_proximity','lin_acc'],float]] = [('turn', 0.2), ('wall_proximity', 0.6), ('lin_acc',0.2)] # [ (penalize_turn", 0.3), (penalize_wall_proximity, 0.7) ] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if it's just github showing it weird but if not this needs to be indented
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to modularize the AE stuff? Seems a bit clunky putting all of it within init so every algorithm gets all these unneeded variables
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update to latest submodule
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to ensure compatibility with latest version of cares_rl
No description provided.