We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6abd405 commit 55682a3Copy full SHA for 55682a3
robot_smach_states/src/robot_smach_states/util/designators/utility.py
@@ -13,6 +13,13 @@
13
__author__ = 'loy'
14
15
16
+def value_or_resolve(value):
17
+ """
18
+ If value is a designator, resolve it, otherwise return value
19
20
+ return value.resolve() if hasattr(value, "resolve") else value
21
+
22
23
class LockingDesignator(Designator):
24
"""A designator's resolve() method may return a different object everytime.
25
For some cases, this may be unwanted because a process has to be done with the same object.
0 commit comments