Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BamBirds
BamBirds lite
Commits
7140cf99
Commit
7140cf99
authored
3 years ago
by
Felix Haase
Browse files
Options
Download
Plain Diff
Merge branch 'master' of
https://sme.uni-bamberg.de/bambirds/bambirds-lite
parents
c80dce49
fb534a18
master
CaseBasedReasoning_Gramelt
Prolog_Case_Based_Gramelt
qualitative-cbr
v1.1.4
v1.1.3
v1.1.2
v1.1.1
v1.1.0
No related merge requests found
Pipeline
#1275
failed with stages
in 3 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
planner/src/main/prolog/planner/plans.pl
+4
-4
planner/src/main/prolog/planner/plans.pl
with
4 additions
and
4 deletions
+4
-4
planner/src/main/prolog/planner/plans.pl
+
4
−
4
View file @
7140cf99
...
...
@@ -74,10 +74,10 @@ simple_plans(SortedPlans) :-
% Finds a plan for targetting a pig, returns a list of a target, the strategy chosen, and confidence
% plan_(-DecisionList)
plan
(
Bird
,
plan
{
bird
:
Bird
,
shot
:
Shot
,
target_object
:
Target
,
impact_angle
:
ImpactAngle
,
strategy
:
"targetPig"
,
confidence
:
C
,
reasons
:
[
Target
]})
:-
pig
(
Target
),
% unify Target with some object of type pig
isHittable
(
Target
,
ImpactAngle
),
% ensure Target is directly hittable (and perform backtracking to pig(Target), if not)
C
is
0.8
,
% set confidence to 80% that shot is sensible
shot_at_target
(
Target
,
ImpactAngle
,
Shot
).
% compute shot parameters (needed by agent to launch bird)
pig
(
Target
),
% unify Target with some object of type pig
isHittable
(
Target
,
ImpactAngle
),
% ensure Target is directly hittable (and perform backtracking to pig(Target), if not)
C
is
0.8
,
% set confidence to 80% that shot is sensible
shot_at_target
(
Target
,
ImpactAngle
,
Shot
).
% compute shot parameters (needed by agent to launch bird)
% Finds a plan for targetting a pig hidden behind a single obstacle
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets