Robert Haschke
abc4c5de50
PropertyMap: allow any type
2018-06-03 09:18:37 +02:00
Robert Haschke
abea2ee82b
reuse boost::any's type_index type
2018-06-02 17:46:37 +02:00
v4hn
381210f43d
compatibility with boost 1.54
...
This is required for ROS indigo on ubuntu 14.04
2018-06-01 15:02:11 +02:00
llach
a82a48bb70
fix PropertyMap::exposeTo: use other_name as new name for property ( #40 )
2018-04-05 13:47:23 +02:00
Robert Haschke
81d88911a9
cosmetic fixes
2018-03-23 17:18:56 +01:00
Robert Haschke
94bb50ddc1
fixup! PropertyMap: different exception types
2018-02-24 13:42:18 +01:00
v4hn
30de5e1a8c
add catch-rethrow for property initialization
...
The property doesn't know its own name, so we add it here
2018-02-24 13:42:18 +01:00
Robert Haschke
e9d1742337
ContainerBase::exposePropertiesOfChild
2018-02-24 13:42:18 +01:00
Robert Haschke
8152614d33
properties: init from source if current value is not defined
...
- reset(): reset current value to empty, not default
- value(): return current value, or - if not defined - the default
- initialize from source if current value is undefined,
don't care about default value
2018-02-24 13:42:18 +01:00
Robert Haschke
0c8c298450
declare by std::type_index (instead of std::type_info)
2018-02-24 13:42:18 +01:00
Robert Haschke
6444229877
Stage::reportPropertyError
2018-02-24 13:42:18 +01:00
Robert Haschke
da9cdb5cf6
PropertyMap: different exception types
...
undeclared
undefined
type_error
2018-02-24 13:42:18 +01:00
Robert Haschke
fe2c4f312e
serialize stage properties
2018-02-12 22:45:15 +01:00
Robert Haschke
5ff78f653e
signal callback function
...
... to allow for syncing with rviz::Property
2018-02-12 22:45:15 +01:00
Robert Haschke
c3eead0115
allow only a single inititialization source
2018-02-12 22:45:15 +01:00
Robert Haschke
3ab899a9a8
cleanup error handling
...
throw std::logic_error on type errors
throw std::runtime_error on undeclared property
don't expose generic PropertyMap::declare()
2018-02-04 08:56:11 +01:00
Robert Haschke
f6253c46a4
generalize initialization source from enum to int
2018-02-04 08:56:11 +01:00
Robert Haschke
59fe1e7860
separate setValue() and setCurrentValue()
...
setValue() also updates the default value.
reset() reset to the default value.
setCurrentValue() only updates the current value, keeping current default.
Thus setCurrentValue() can be reverted (to default) using reset().
2018-02-04 08:55:58 +01:00
Robert Haschke
d62b85572a
remove property name from InitializerFunction's signature
2018-02-03 21:45:40 +01:00
Robert Haschke
0d6dbee215
initFrom() -> configureInitFrom() + performInitFrom()
...
Use different function names for different semantics.
2018-02-03 21:45:40 +01:00
Robert Haschke
32a0de6bf3
countDefined(): count number of defined properties
2018-02-03 21:45:40 +01:00
Robert Haschke
7d8f8dfc8d
PropertyMap
2017-12-13 14:19:20 +01:00