0330 » History » Version 13
Simon Lacroix, 2018-04-02 15:58
1 | 1 | Ellon Paiva Mendes | h1. Meeting to discuss more about PoM/Prism (a good one) |
---|---|---|---|
2 | |||
3 | *Participants*: |
||
4 | Ellon, Pierre, Simon |
||
5 | |||
6 | |
||
7 | |||
8 | *Goal of the meeting*: Discuss implementation details of PoM/Prism and try to take a decision about how to proceed (yes, again) |
||
9 | |||
10 | 11 | Simon Lacroix | |
11 | |||
12 | 10 | Simon Lacroix | *First, have a look to the [[Conventions]] page* |
13 | 6 | Simon Lacroix | |
14 | 1 | Ellon Paiva Mendes | h2. Discussion |
15 | |||
16 | 6 | Simon Lacroix | In this meeting we tried to define all the requirements for PoM, focusing on what is needed to be done for the project and what is going to be done on this sprint. |
17 | 1 | Ellon Paiva Mendes | |
18 | h3. PoM requirements |
||
19 | |||
20 | 6 | Simon Lacroix | # *PoM has to provide the most recent pose of the robot body frame with respect to a given frame (e.g.: mission frame, site frame)* |
21 | 1 | Ellon Paiva Mendes | _Why_: Some clients need to know this pose in a high frequency (control, trajectory, velodyne, etc..) |
22 | 6 | Simon Lacroix | This pose is the fusion of the poses produced by the various the localisation processes. It is produced synchronously (i.e. periodically) on a topic/poster. It is the pose of the robot body frame, with respect to a given frame, defined by a configuration request to POM. |
23 | 4 | Simon Lacroix | |
24 | 6 | Simon Lacroix | # *PoM has to provide the sensors poses with respect to the robot body frame for each living sensor, configured at start up.* |
25 | 1 | Ellon Paiva Mendes | _Why_: Because clients that exploit sensor data may need to know these poses to attach to the data |
26 | 6 | Simon Lacroix | The sensor poses to export are defined by configuration requests, that trigger or stop their emission. This way PoM will only output transformation from its internal tree to the sensors that are exploited, instead of publishing the complete tree each time. The output is synchronised with the most recent robot body frame pose (it has the same timestamp, so clients may associate them). |
27 | 1 | Ellon Paiva Mendes | |
28 | 6 | Simon Lacroix | # *PoM has to gather all localisation information, as pose or delta-poses (increments), expressed as poses* |
29 | 4 | Simon Lacroix | _Why_: PoM need this information to fuse them so as to export the best robot frame pose |
30 | 6 | Simon Lacroix | PoM may accept poses or delta-poses. Some discussion about how to allow this happened, and the decision was to use a general type that allows to represent both poses and delta-poses (see below). These inputs are made through topics/ports, similar to the way it's done on current pom-genom. |
31 | 1 | Ellon Paiva Mendes | |
32 | +NOTE: Only one input will be implemented on sprint 4.+ |
||
33 | |
||
34 | 6 | Simon Lacroix | # *PoM should provide a service where a client may request a transform between any pair of frames, at any pair of times* |
35 | 4 | Simon Lacroix | _Why_: because any frame may change in time, except the absolute world frame which is fixed once and for all. |
36 | 1 | Ellon Paiva Mendes | This request will mostly be used by DEM on this sprint. |
37 | 4 | Simon Lacroix | |
38 | 6 | Simon Lacroix | # *PoM has to gather information about internal joints of the robots, expressed as poses* |
39 | _Why_: Because this is needed to update the robot internal tree of poses. |
||
40 | The tree is loaded from a URDF file. The information about non-static joints/branches enters PoM through topics/ports published by mounts (or actuators), defined with the same data structure way it's done with localisation information. |
||
41 | 1 | Ellon Paiva Mendes | |
42 | 4 | Simon Lacroix | # *PoM has to perform the fusion of the gathered localisation information* |
43 | 6 | Simon Lacroix | _Why_: This is needed to provide the best robot body frame pose. |
44 | 4 | Simon Lacroix | |
45 | +NOTE: This won't be implemented on sprint 4, in which a single localisation DFPC feeds POM+ |
||
46 | 1 | Ellon Paiva Mendes | |
47 | # *PoM has to provide two services to let clients tell him which poses to memorise and which ones to forget* |
||
48 | _Why_: So it can keep track of which poses may be updated in the future. |
||
49 | |
||
50 | +NOTE: This won't be implemented on sprint 4!+ |
||
51 | |
||
52 | # *PoM needs to manage an internal memory* |
||
53 | 6 | Simon Lacroix | _Why_: To allow the update of memorised past poses while keeping the memory size under control |
54 | The elements of the internal memory consists of: 1) a circular buffer buffer of a given size where all robot pose outputs are stored; 2) Reference counters to tell PoM if the poses will be kept after they go out of the time-span of the buffer; 3) A garbage collector that removes poses no one will ever ask. |
||
55 | 1 | Ellon Paiva Mendes | |
56 | +NOTE: Only the internal buffer will be implemented on sprint 4.+ |
||
57 | |||
58 | 12 | Simon Lacroix | h3. genericTransform type |
59 | 1 | Ellon Paiva Mendes | |
60 | 12 | Simon Lacroix | We decided to use a generic pose type defined as follows: |
61 | 1 | Ellon Paiva Mendes | |
62 | 6 | Simon Lacroix | * FrameID 1 |
63 | 1 | Ellon Paiva Mendes | * Timestamp 1 |
64 | 6 | Simon Lacroix | * FrameID 2 |
65 | 1 | Ellon Paiva Mendes | * Timestamp 2 |
66 | 6 | Simon Lacroix | * Transform From_1_to_2 |
67 | * TransformCovariance |
||
68 | 1 | Ellon Paiva Mendes | |
69 | 6 | Simon Lacroix | This way we can represent "normal poses" (same timestamp, different Frame IDs), "delta poses" (same frame ID, different timestamps), or even transforms between different frames at different times, e.g. "Transform from frame ID 1 at time 1 to frame ID 2 at time 2". |
70 | 1 | Ellon Paiva Mendes | |
71 | 6 | Simon Lacroix | This should be properly documented, and Ellon thinks we may have some problems convincing others to use this structure. |
72 | 1 | Ellon Paiva Mendes | |
73 | h3. Metadata tagging |
||
74 | |||
75 | 6 | Simon Lacroix | * Modules producing data (like usb3-cameras or velodyne) may access their pose with respect to the robot body frame (extracted from the internal robot tree of poses) to add this pose as a metadata of the data product. |
76 | 1 | Ellon Paiva Mendes | |
77 | 6 | Simon Lacroix | * Robot body frame poses at the time of the data acquisition do not goes into the metadata of the data, because they may be subject to subsequent changes after fusion (contrary to the sensor pose with respect to the robot body frame, which will never be revised). |
78 | 1 | Ellon Paiva Mendes | |
79 | 6 | Simon Lacroix | * If a client needs the robot body frame pose, it will look for it on PoM output poster/topic or get it through a request. |
80 | 1 | Ellon Paiva Mendes | |
81 | 4 | Simon Lacroix | h3. Time management |
82 | 1 | Ellon Paiva Mendes | |
83 | * Time is going to be handled by a library that all clients may use to get current time. |
||
84 | |||
85 | * The interface should be completely independent, although internally this library may use ROS (probably enabled by means of compilation flags) or other mechanism to retrieve time (like gettimeofday or clock network synchronization) |
||
86 | |||
87 | 12 | Simon Lacroix | h2. POM interfaces |
88 | |||
89 | h3. Data flow |
||
90 | |||
91 | Besides control parameters, POM imports and exports only genericTransforms. |
||
92 | |||
93 | * Imports |
||
94 | ** POM imports the genericTransform produced by the variable sensor mounts nodes (in which the timestamps are equal): this is to feed the internal tree of poses. These transforms are systematically read et every period of POM. |
||
95 | ** POM imports the genericTransform produced by the localisation DFPCs. Most likely, these transforms will be read upon a request to POM. Note: we may define the associated topic (and request parameters) so that POM imports a list of genericTransforms instead of a single one? (this will the case when PG-SLAM closes a loop for instance) |
||
96 | |||
97 | * Exports |
||
98 | ** POM periodically exports the GenericTransform RBFPose_2_ReferenceFrame |
||
99 | ** POM periodically exports the GenericTransform Sensor_2_RBF for each declared sensor |
||
100 | ** Upon request, POM exports a GenericTransform RBFPose_2_ReferenceFrame at a given timestamp _t_, _ReferenceFrame_ and _t_ being parameters of the request. Note: we may define the associated topic (and request parameters) so that POM exports a list of genericTransforms? (this will be the case when one want to build a Total Rover Map for instance) |
||
101 | |||
102 | h3. Control flow |
||
103 | |||
104 | The various requests associated to POM are: |
||
105 | |||
106 | * Configuration requests. Most often called once at the POM initialisation, they can nevertheless be called during the POM life. |
||
107 | ** addSensor (sensorID): this implies that the sensorId frame will be periodically exported. The removeSensor configuration request is also defined. |
||
108 | ** addVariableMount (mountID): this implies that the genericTransform produced the node associated to the defined mount will be regularly read. The removeVariableMount configuration request can also be defined. |
||
109 | ** setReferenceFrame: to define the frame in which are expressed the exported RBF poses |
||
110 | ** Start: to trigger the start of POM (which must be made after a series of configuration requests) |
||
111 | |||
112 | Note: in the URDF file that describes the various robot frames, one should define the various sensorID and mountIDs, no? |
||
113 | |||
114 | * Computation requests. They are regularly called during the life of POM. |
||
115 | ** fuseEstimate (localisationProcessID): this causes POM to read a genericTransform produced by the given localisation process, and to fuse it within the history of poses. Note this request could take as inputs a series of genericPoses (as produced by PG-SLAM for instance) |
||
116 | 13 | Simon Lacroix | ** getRBFPose (timestamp, referenceFrame and associated timestampRef): tells POM to export the genericTransform that represents at time "timestamp" the RBF pose expressed in the referenceFrame at the time "timestampRef". Every time this request is emitted to POM (e.g. by the DEM and PG-SLAM DFPCs), POM should be warned that the produced pose may be later re-asked, and that it should be memorised. This could be made automatically (solution preferred by Simon), by incrementing a reference counter on the asked pose, or upon a dedicated request? |
117 | ** clearReference (timestamp): this tells POM that a client who asked a RBF pose at time "timestamp" will not need it anymore. This would then decrement the reference counter associated to this pose in the memory of POM. |
||
118 | ** garbageCollect: to clean the memory of POM. Note that a simple management of the reference counters should allow to live without such a request. |
||
119 | 12 | Simon Lacroix | |
120 | 6 | Simon Lacroix | |
121 | 1 | Ellon Paiva Mendes | h2. Whiteboard log |
122 | 6 | Simon Lacroix | |
123 | 1 | Ellon Paiva Mendes | |
124 | !White_board_meeting_POM_30_Mars_2018.jpg! |