Skip to content

Commit

Permalink
added possibility to forbid tunneling
Browse files Browse the repository at this point in the history
  • Loading branch information
merschformann committed Jun 29, 2020
1 parent 2f86254 commit c94e69c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions RAWSimO.Core/Configurations/MethodConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,10 @@ public abstract class PathPlanningConfiguration : ControllerConfigurationBase
/// </summary>
public bool AutoSetParameter = false;

/// <summary>
/// Indicates whether the robot can drive under stored pods (tunnel them).
/// </summary>
public bool CanTunnel = true;
/// <summary>
/// The length of a wait step
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion RAWSimO.Core/Control/PathManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ private void getBotAgentDictionary(out Dictionary<BotNormal, Agent> botAgentDict
Path = bot.Path, //path reference => will be filled
FixedPosition = bot.hasFixedPosition(),
Resting = bot.IsResting(),
CanGoThroughObstacles = bot.Pod == null,
CanGoThroughObstacles = Instance.ControllerConfig.PathPlanningConfig.CanTunnel && bot.Pod == null,
Physics = bot.Physics,
RequestReoptimization = bot.RequestReoptimization,
Queueing = bot.IsQueueing,
Expand Down

0 comments on commit c94e69c

Please sign in to comment.