PlanSys2 / ros2_planning_system

This repo contains a PDDL-based planning system for ROS2.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Predicate 'notified' interpreted as 'not' node type

pac48 opened this issue · comments

I was getting a segmentation fault when trying to set a goal predicate using setGoal of the ProblemExpertClient class.

problem_expert_->setGoal(plansys2::Goal("(and(robot_at pioneer door)(notified midnight_warning))"))

It appears that the regex here is not specific enough to known the difference between a not and notified.

My understanding is that valid syntax for not is the following:

(not (notified midnight_warning))
(not(notified midnight_warning))

So it should only be detected if not is followed by a space or a open parentheses.