Tasks #2348
Use reflections for nested RST types
Status: | Feedback | Start date: | 07/21/2015 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | D. Wigand | % Done: | 100% | |
Category: | - | |||
Target version: | - |
Description
In order to use reflections for instantiating RST in java, the full package path is required.
For example to instantiate rst.kinematics.JointAngles the following path is needed: rst.kinematics.JointAnglesType$JointAngles. In order to ensure that nested types also work, Arne suggested to make use of domain knowledge regarding the structure of the dotted rst path. Since the package path is always lower case, the first upper case token has to be the parent type (confirmed by Johannes):
rst.euroc.ColoredPoseSet.ColoredPose.Color -> rst.euroc.ColoredPoseSetType$ColoredPoseSet$ColoredPose$Color
Related issues
Associated revisions
Fixed reflection package path. refs #2348
History
#1 Updated by D. Wigand almost 9 years ago
- Related to Tasks #2337: Create parser for RST types added
#2 Updated by D. Wigand almost 9 years ago
- Description updated (diff)
- Status changed from In Progress to Feedback
- % Done changed from 0 to 100
Seems to be working