Changes between Version 4 and Version 5 of XmlModelConfiguration
- Timestamp:
- Feb 18, 2011, 8:25:29 PM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
XmlModelConfiguration
v4 v5 13 13 - label: text to label the model with. 14 14 - dynamic: "yes" to add an standard updater to the model. 15 - position: Position to place the model16 - attitude: Orientation in degree to place the model17 - updater [optional]: Channels to use for position, attitude and label update18 - cameraoffset [optional]: Rotational (in degree) and translational offset for the object mounted camera manipulator to the visual_object19 - Geometry [optional]: 3D model to display. Leave empty to use model without 3D model.20 - Geometryoffset [optional]: Rotational offset (in degree) for the loaded 3D model to the visual_object (if the 3D model has a wrong coordinate frame)21 - Geometryscale [optional]: Scale factors for the loaded 3D model in all three dimensions.22 15 --> 23 16 <model objectname="TestObject" trackingid="1" label="TestText!" dynamic="no"> … … 42 35 43 36 == Position & Attitute == 37 To position the visual_object, you have to setup a location in latitude (in degree), logitude (in degree) and altitude. Additionally you have to specify it's attitude in degree. 44 38 {{{ 45 39 #!xml … … 49 43 50 44 == Updater == 45 To update certain properties of the visual_object, you can define an updater and configure the slot names which should be used for the updates. 46 The attributes in the XML entries are not values but names of the slots which content should be used for updating the visual_object every frame. 47 To skip updating of a certain value, leave the updatername emtpy. 48 49 The updater can be defined in the XML configuration file as followed: 51 50 {{{ 52 51 #!xml 53 52 <updater> 54 <position lat=" " lon="" alt=""></position>55 <attitude rot_x=" " rot_y="" rot_z=""></attitude>53 <position lat="your_lat_slot" lon="your_lon_slot" alt=""></position> 54 <attitude rot_x="your_rot_x_slot" rot_y="" rot_z="your_rot_z_slot"></attitude> 56 55 <label text=""></label> 57 56 </updater> … … 59 58 60 59 == Camera Offset == 60 To use the "Object mounted" camera manipulator, you have to define for your what the camera coordinates relative to your visual_object are. You can define a rotational (in degree) und translational offset. 61 62 The defition of the camera offset in the XML configuration file is: 61 63 {{{ 62 64 #!xml … … 68 70 69 71 == Geometry == 70 Using a geometry as well as modifying it with offset or scalefactors is optional. 72 You can load and display a 3D geometry to visualize the 3D object. You have to specify the filename with an relative or absolute path. 73 If the 3D model has the wrong orientation or wrong size, you can specify an offset rotation (in degree) or scale factors. Using a geometry as well as modifying it with offset or scalefactors is optional. 71 74 72 You can load and display a 3D geometry to visualize the 3D object. You have to specify the filename with an relative or absolute path. 73 If the 3D model has the wrong orientation or wrong size, you can specify an offset rotation or scale factors. 74 75 The XML configuration of an gemoetry entry in a visual object is: 75 The XML configuration of an geometry entry in a visual object is: 76 76 {{{ 77 77 #!xml … … 82 82 }}} 83 83 84 85 84 If you do not use a geometry, a visual_object is still usefull, e.g. for dynamic positioning and upating a text label or to attach the camera.