Skip to content
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

Novel Reward warning issue #41

Open
CAI23sbP opened this issue Feb 2, 2025 · 0 comments
Open

Novel Reward warning issue #41

CAI23sbP opened this issue Feb 2, 2025 · 0 comments

Comments

@CAI23sbP
Copy link

CAI23sbP commented Feb 2, 2025

@zzuxzt Hi there, I want to use VO-novel reward for my robot.
In my case, the robot radius is 0.6m. How to modified your code in VO-novel reward?

Here is your code.

if(ped_dis <= 7):
ped_theta = np.arctan2(p_y, p_x)
vo_theta = np.arctan2(3self.robot_radius, np.sqrt(ped_dis**2 - (3self.robot_radius)**2))

When i run this i have a single warning issue, see under code

rewards/drl_vo_reward.py:113: RuntimeWarning: invalid value encountered in sqrt
vo_theta = np.arctan2(3self.robot_radius, np.sqrt(ped_dis**2 - (3self.robot_radius)**2))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant