Skip to content

Commit

Permalink
Add warning to AP set. (#781)
Browse files Browse the repository at this point in the history
* Add warning to AP set.

* Address comment
  • Loading branch information
cgokmen authored May 6, 2022
1 parent bf9be46 commit c21af90
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions igibson/action_primitives/starter_semantic_action_primitives.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit c21af90

Please sign in to comment.