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

Pedestrians have no obstacle force #39

Open
ll7 opened this issue Jun 26, 2024 · 0 comments
Open

Pedestrians have no obstacle force #39

ll7 opened this issue Jun 26, 2024 · 0 comments
Labels
bug Something isn't working p1 1st most import task category

Comments

@ll7
Copy link
Owner

ll7 commented Jun 26, 2024

def make_forces(sim: PySFSimulator, config: PySFSimConfig) -> List[PySFForce]:
forces = pysf_make_forces(sim, config)
forces = [f for f in forces if not isinstance(f, ObstacleForce)]
if self.config.prf_config.is_active:
for robot in self.robots:
self.config.prf_config.robot_radius = robot.config.radius
forces.append(
PedRobotForce(
self.config.prf_config,
sim.peds,
lambda: robot.pos
)
)
return forces

@ll7 ll7 added bug Something isn't working p1 1st most import task category labels Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working p1 1st most import task category
Projects
None yet
Development

No branches or pull requests

1 participant