Skip to content

Conversation

@nogueiravinicius
Copy link

This is a minor modification to the CFFPlanParser to include more general cases covered by PDDL 2.1. The planner was able to give a valid plan but the parser would not work correctly. The earliest version identifies the parameter by locating its type. So it always should have a type after every parameter, in other to work.
For example it would work in:
:parameters (?q - robot ?wayp - waypoint ?wayp2 - waypoint )

But not in:
:parameters (?q - robot ?wayp ?wayp2 - waypoint ) or :parameters (?q ?wayp ?wayp2)

The proposed version uses the same original structure but identify the parameter by locating the "?"

This is a minor modification to the CFFPlanParser to include more general cases covered by PDDL 2.1. The planner was able to give a valid plan but the parser would not work correctly. The earliest version identifies the predicate by locating its type. So it always should have a type after every predicate, in other to work. 
For example it would work in:
:parameters (?q - robot ?wayp - waypoint ?wayp2 - waypoint )

But not in:
:parameters (?q - robot ?wayp ?wayp2 - waypoint )   or   :parameters (?q ?wayp ?wayp2) 

The proposed version uses the same original structure but identify the predicate by locating the "?"
@nogueiravinicius nogueiravinicius changed the title Minor Change in Parameter Extraction on Parameters Minor Change in Parameter Extraction on Parameters on CFFParser Sep 21, 2017
This is a minor modification to the CFFPlanParser to include more general cases covered by PDDL 2.1. The planner was able to give a valid plan but the parser would not work correctly. The earliest version identifies the parameter by locating its type. So it always should have a type after every parameter, in other to work. 
For example it would work in:
:parameters (?q - robot ?wayp - waypoint ?wayp2 - waypoint )

But not in:
:parameters (?q - robot ?wayp ?wayp2 - waypoint )   or   :parameters (?q ?wayp ?wayp2) 

The proposed version uses the same original structure but identify the parameter by locating the "?"
@m312z m312z added the Devel Manually adding to devel branch label Mar 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Devel Manually adding to devel branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants