5 import vigir_footstep_planning_msgs.msg
7 from vigir_generic_params.msg
import ParameterMsg
26 def __init__(self, _type = TYPE_INVALID, name = str(), value =
None, msg =
None):
75 if (value.lower() ==
"true"):
77 if (value.lower() ==
"false"):
86 if (len(self.
_value) == 0):
91 for val
in value.split():
92 val = val.strip(
'[],')
94 if p.get_value()
is not None:
100 rospy.logerr(
"set_value called on parameter with incompatible type!")
110 val.append(p.get_value())
116 msg = vigir_footstep_planning_msgs.msg.ParameterMsg()
133 msg.data += p.to_msg().data
137 msg.data +=
pack_string(p.get_name()) + p.to_msg().data
139 print "ERROR: Unsupported type (" + str(self.
get_type()) +
")!" 145 self.
_name = msg.key.data
161 for i
in range(size):
163 offset = p.from_msg(msg, offset)
164 self._value.append(p)
168 for i
in range(size):
173 offset = p.from_msg(msg, offset)
175 self._value.append(p)
177 print "ERROR: Unsupported type (" + str(self.
get_type()) +
")!"