From c21af9062be1ffd3c6ab1572130988a5f64edfa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cem=20G=C3=B6kmen?= <1408354+cgokmen@users.noreply.github.com> Date: Fri, 6 May 2022 11:51:04 -0700 Subject: [PATCH] Add warning to AP set. (#781) * Add warning to AP set. * Address comment --- .../starter_semantic_action_primitives.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/igibson/action_primitives/starter_semantic_action_primitives.py b/igibson/action_primitives/starter_semantic_action_primitives.py index 85d78547b..6ae8bb507 100644 --- a/igibson/action_primitives/starter_semantic_action_primitives.py +++ b/igibson/action_primitives/starter_semantic_action_primitives.py @@ -1,3 +1,10 @@ +""" +WARNING! +The StarterSemanticActionPrimitive is a work-in-progress and is only provided as an example. +It currently only works with BehaviorRobot with its JointControllers set to absolute mode. +See provided behavior_robot_mp_behavior_task.yaml config file for an example. See examples/action_primitives for +runnable examples. +""" import inspect import logging import random @@ -176,6 +183,12 @@ class StarterSemanticActionPrimitive(IntEnum): class StarterSemanticActionPrimitives(BaseActionPrimitiveSet): def __init__(self, task, scene, robot): + logger.warning( + "The StarterSemanticActionPrimitive is a work-in-progress and is only provided as an example. " + "It currently only works with BehaviorRobot with its JointControllers set to absolute mode. " + "See provided behavior_robot_mp_behavior_task.yaml config file for an example. " + "See examples/action_primitives for runnable examples." + ) super().__init__(task, scene, robot) self.controller_functions = { StarterSemanticActionPrimitive.GRASP: self.grasp,