├── .gitignore ├── ACKS ├── README.md ├── app ├── CMakeLists.txt ├── COPYING ├── COPYING.LESSER ├── configuration │ ├── core_libs-nogui.in │ ├── core_libs.in │ ├── envire_core_libs-nogui.in │ ├── envire_core_libs.in │ ├── envire_other_libs.in │ ├── mars_default.in │ ├── other_libs.in │ ├── pypath.yml │ └── python │ │ └── mars_plugin.py ├── doc │ ├── Doxyfile │ └── tutorial │ │ ├── Diagram1.png │ │ └── lib_manager.tut.tex ├── manifest.xml ├── mars_app.pc.in ├── resources │ ├── appicon.rc │ └── images │ │ └── mars_icon.ico └── src │ ├── GraphicsTimer.cpp │ ├── GraphicsTimer.h │ ├── MARS.cpp │ ├── MARS.h │ ├── MyApp.h │ └── main.cpp ├── common ├── cfg_manager │ ├── .gitignore │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── cfg_manager.pc.in │ ├── doc │ │ └── cfg_manager.md │ ├── manifest.xml │ └── src │ │ ├── CFGClient.h │ │ ├── CFGDefs.h │ │ ├── CFGManager.cpp │ │ ├── CFGManager.h │ │ ├── CFGManagerInterface.h │ │ ├── CFGParam.cpp │ │ ├── CFGParam.h │ │ ├── CFGParamBool.cpp │ │ ├── CFGParamBool.h │ │ ├── CFGParamDouble.cpp │ │ ├── CFGParamDouble.h │ │ ├── CFGParamInt.cpp │ │ ├── CFGParamInt.h │ │ ├── CFGParamString.cpp │ │ ├── CFGParamString.h │ │ ├── CFGProperty.cpp │ │ └── CFGProperty.h ├── data_broker │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── data_broker.pc.in │ ├── doc │ │ └── data_broker.md │ ├── manifest.xml │ └── src │ │ ├── DataBroker.cpp │ │ ├── DataBroker.h │ │ ├── DataBrokerInterface.h │ │ ├── DataInfo.cpp │ │ ├── DataInfo.h │ │ ├── DataItem.cpp │ │ ├── DataItem.h │ │ ├── DataPackage.cpp │ │ ├── DataPackage.h │ │ ├── DataPackageMapping.cpp │ │ ├── DataPackageMapping.h │ │ ├── LockableContainer.h │ │ ├── ProducerInterface.h │ │ └── ReceiverInterface.h ├── graphics │ ├── osg_animations │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_animation.pc.in │ │ └── src │ │ │ ├── Animation.hpp │ │ │ ├── AnimationFactory.cpp │ │ │ ├── AnimationFactory.hpp │ │ │ ├── AnimationP.cpp │ │ │ └── AnimationP.hpp │ ├── osg_frames │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_frames.pc.in │ │ ├── resources │ │ │ ├── frame.mtl │ │ │ └── frame.obj │ │ └── src │ │ │ ├── Frame.hpp │ │ │ ├── FrameP.cpp │ │ │ ├── FrameP.hpp │ │ │ ├── FramesFactory.cpp │ │ │ └── FramesFactory.hpp │ ├── osg_lines │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_lines.pc.in │ │ └── src │ │ │ ├── Lines.h │ │ │ ├── LinesFactory.cpp │ │ │ ├── LinesFactory.h │ │ │ ├── LinesP.cpp │ │ │ └── LinesP.h │ ├── osg_material_manager │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_material_manager.pc.in │ │ ├── resources │ │ │ ├── graph_shader │ │ │ │ ├── backfaceNormal.frag │ │ │ │ ├── backfaceNormal.yaml │ │ │ │ ├── compose_vec2.frag │ │ │ │ ├── compose_vec2.yaml │ │ │ │ ├── compose_vec3.frag │ │ │ │ ├── compose_vec3.yaml │ │ │ │ ├── compose_vec4.frag │ │ │ │ ├── compose_vec4.yaml │ │ │ │ ├── crop_vec2.frag │ │ │ │ ├── crop_vec2.yaml │ │ │ │ ├── decompose_vec2.frag │ │ │ │ ├── decompose_vec2.yaml │ │ │ │ ├── decompose_vec3.frag │ │ │ │ ├── decompose_vec3.yaml │ │ │ │ ├── decompose_vec4.frag │ │ │ │ ├── decompose_vec4.yaml │ │ │ │ ├── dot_max.frag │ │ │ │ ├── dot_max.yaml │ │ │ │ ├── envmap_col.frag │ │ │ │ ├── envmap_color_frag.yaml │ │ │ │ ├── envmap_vert.yaml │ │ │ │ ├── fragInfo.frag │ │ │ │ ├── fragInfo.yaml │ │ │ │ ├── fragOut.frag │ │ │ │ ├── fragOut.yaml │ │ │ │ ├── instanceIDARB.frag │ │ │ │ ├── instanceIDARB.yaml │ │ │ │ ├── int_to_float.frag │ │ │ │ ├── int_to_float.yaml │ │ │ │ ├── length_vec3.frag │ │ │ │ ├── length_vec3.yaml │ │ │ │ ├── math_float.frag │ │ │ │ ├── math_float.yaml │ │ │ │ ├── math_floor_div.frag │ │ │ │ ├── math_floor_div.yaml │ │ │ │ ├── math_mod.frag │ │ │ │ ├── math_mod.yaml │ │ │ │ ├── math_mult.frag │ │ │ │ ├── math_mult.yaml │ │ │ │ ├── math_pow.frag │ │ │ │ ├── math_pow.yaml │ │ │ │ ├── math_rotate3d.frag │ │ │ │ ├── math_rotate3d.yaml │ │ │ │ ├── math_sin.frag │ │ │ │ ├── math_sin.yaml │ │ │ │ ├── math_vec2.frag │ │ │ │ ├── math_vec2.yaml │ │ │ │ ├── math_vec3.frag │ │ │ │ ├── math_vec3.yaml │ │ │ │ ├── math_vec4.frag │ │ │ │ ├── math_vec4.yaml │ │ │ │ ├── mix_vec4.frag │ │ │ │ ├── mix_vec4.yaml │ │ │ │ ├── mix_vec4_weighted.frag │ │ │ │ ├── mix_vec4_weighted.yaml │ │ │ │ ├── mult_vec3_mat4.vert │ │ │ │ ├── mult_vec3_mat4.yaml │ │ │ │ ├── mult_vec4.frag │ │ │ │ ├── mult_vec4.yaml │ │ │ │ ├── mult_vec4_mat4.vert │ │ │ │ ├── mult_vec4_mat4.yaml │ │ │ │ ├── noise_frag.frag │ │ │ │ ├── noise_frag.yaml │ │ │ │ ├── normalize_vec3.frag │ │ │ │ ├── normalize_vec3.yaml │ │ │ │ ├── normalize_vec4.frag │ │ │ │ ├── normalize_vec4.yaml │ │ │ │ ├── normalmap_frag.yaml │ │ │ │ ├── normalmap_vert.yaml │ │ │ │ ├── phong.frag │ │ │ │ ├── phong.vert │ │ │ │ ├── phong_frag.yaml │ │ │ │ ├── phong_vert.yaml │ │ │ │ ├── pixel_noise.frag │ │ │ │ ├── pixel_noise.yaml │ │ │ │ ├── pixellight2_frag.yaml │ │ │ │ ├── pixellight2_vert.yaml │ │ │ │ ├── pixellight_frag.yaml │ │ │ │ ├── pixellight_full_frag.yaml │ │ │ │ ├── pixellight_vert.yaml │ │ │ │ ├── plight_frag.frag │ │ │ │ ├── plight_full_frag.frag │ │ │ │ ├── plight_vert.vert │ │ │ │ ├── ramp.frag │ │ │ │ ├── ramp.yaml │ │ │ │ ├── ramp_color.frag │ │ │ │ ├── ramp_color.yaml │ │ │ │ ├── ramp_varying.frag │ │ │ │ ├── ramp_varying.yaml │ │ │ │ ├── read_floats.vert │ │ │ │ ├── read_floats.yaml │ │ │ │ ├── read_matrix4x4.vert │ │ │ │ ├── read_matrix4x4.yaml │ │ │ │ ├── reflectNode.frag │ │ │ │ ├── reflectNode.yaml │ │ │ │ ├── rnd_from_input.frag │ │ │ │ ├── rnd_from_input.yaml │ │ │ │ ├── rnd_instance_offset.frag │ │ │ │ ├── rnd_instance_offset.yaml │ │ │ │ ├── rnd_instance_offset2.frag │ │ │ │ ├── rnd_instance_offset2.yaml │ │ │ │ ├── rnd_noise.frag │ │ │ │ ├── rnd_noise.yaml │ │ │ │ ├── sample2D.frag │ │ │ │ ├── sample2D.yaml │ │ │ │ ├── sample2DArray.frag │ │ │ │ ├── sample2DArray.yaml │ │ │ │ ├── sample2D_adv.frag │ │ │ │ ├── sample2D_adv.yaml │ │ │ │ ├── sampleCubeMap.frag │ │ │ │ ├── sampleCubeMap.yaml │ │ │ │ ├── shadow.yaml │ │ │ │ ├── shadow_none.yaml │ │ │ │ ├── shadow_none_vert.yaml │ │ │ │ ├── shadow_pssm.yaml │ │ │ │ ├── shadow_pssm_vert.yaml │ │ │ │ ├── shadow_sm.yaml │ │ │ │ ├── shadow_sm_vert.yaml │ │ │ │ ├── shadow_vert.yaml │ │ │ │ ├── specular_frag.frag │ │ │ │ ├── specular_frag.yaml │ │ │ │ ├── terrain_height.vert │ │ │ │ ├── terrain_height.yaml │ │ │ │ ├── terrain_map.vert │ │ │ │ ├── terrain_map.yaml │ │ │ │ ├── terrain_map_scaled.vert │ │ │ │ ├── terrain_map_scaled.yaml │ │ │ │ ├── vec4_mat4_math.frag │ │ │ │ ├── vec4_mat4_math.yaml │ │ │ │ ├── vec4_xy.frag │ │ │ │ ├── vec4_xy.yaml │ │ │ │ ├── vec4_xyz.frag │ │ │ │ ├── vec4_xyz.yaml │ │ │ │ ├── vertexInfo.vert │ │ │ │ ├── vertexInfo.yaml │ │ │ │ ├── vertexOut.vert │ │ │ │ ├── vertexOut.yaml │ │ │ │ ├── viewPos.vert │ │ │ │ ├── viewPos.yaml │ │ │ │ ├── wave2d.frag │ │ │ │ ├── wave2d.yaml │ │ │ │ ├── worldPos.vert │ │ │ │ └── worldPos.yaml │ │ │ └── shader │ │ │ │ ├── bumpmapping_frag.yaml │ │ │ │ ├── bumpmapping_vert.yaml │ │ │ │ ├── envMap_frag.yml │ │ │ │ ├── envMap_vert.yml │ │ │ │ ├── envmap.frag │ │ │ │ ├── envmap.vert │ │ │ │ ├── normalmap.frag │ │ │ │ ├── normalmap.vert │ │ │ │ ├── plight.frag │ │ │ │ ├── plight.vert │ │ │ │ ├── plight_frag.yaml │ │ │ │ ├── plight_vert.yaml │ │ │ │ ├── shadow_none.frag │ │ │ │ ├── shadow_none.vert │ │ │ │ ├── shadow_pssm.frag │ │ │ │ ├── shadow_pssm.vert │ │ │ │ ├── shadow_pssm.yaml │ │ │ │ ├── shadow_pssm_vert.yaml │ │ │ │ ├── shadow_sm.frag │ │ │ │ ├── shadow_sm.vert │ │ │ │ ├── shadow_sm.yaml │ │ │ │ ├── shadow_sm_vert.yaml │ │ │ │ ├── terrainMap.vert │ │ │ │ ├── terrainMap_vert.yml │ │ │ │ └── test.snippet │ │ └── src │ │ │ ├── MaterialNode.cpp │ │ │ ├── MaterialNode.h │ │ │ ├── OsgMaterial.cpp │ │ │ ├── OsgMaterial.h │ │ │ ├── OsgMaterialManager.cpp │ │ │ ├── OsgMaterialManager.h │ │ │ ├── shader │ │ │ ├── DRockGraphSP.cpp │ │ │ ├── DRockGraphSP.h │ │ │ ├── IShaderProvider.h │ │ │ ├── PhobosGraphSP.cpp │ │ │ ├── PhobosGraphSP.h │ │ │ ├── ShaderFactory.cpp │ │ │ ├── ShaderFactory.h │ │ │ ├── YamlSP.cpp │ │ │ ├── YamlSP.h │ │ │ ├── shader-function.cpp │ │ │ ├── shader-function.h │ │ │ ├── shader-types.cpp │ │ │ ├── shader-types.h │ │ │ ├── yaml-shader.cpp │ │ │ └── yaml-shader.h │ │ │ └── tsort │ │ │ ├── tsort.c │ │ │ └── tsort.h │ ├── osg_plot │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_plot.pc.in │ │ └── src │ │ │ ├── Curve.h │ │ │ ├── CurveP.cpp │ │ │ ├── CurveP.h │ │ │ ├── Plot.cpp │ │ │ └── Plot.h │ ├── osg_points │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_points.pc.in │ │ └── src │ │ │ ├── Points.hpp │ │ │ ├── PointsFactory.cpp │ │ │ ├── PointsFactory.hpp │ │ │ ├── PointsP.cpp │ │ │ └── PointsP.hpp │ ├── osg_terrain │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_terrain.pc.in │ │ └── src │ │ │ ├── MultiResHeightMapRenderer.cpp │ │ │ ├── MultiResHeightMapRenderer.h │ │ │ ├── ShaderTerrain.cpp │ │ │ ├── ShaderTerrain.hpp │ │ │ ├── Terrain.cpp │ │ │ ├── Terrain.h │ │ │ ├── VertexBufferTerrain.cpp │ │ │ └── VertexBufferTerrain.h │ ├── osg_text │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_text.pc.in │ │ └── src │ │ │ ├── Text.cpp │ │ │ ├── Text.h │ │ │ └── TextInterface.h │ └── osg_text_factory │ │ ├── CMakeLists.txt │ │ ├── manifest.xml │ │ ├── osg_text_factory.pc.in │ │ └── src │ │ ├── TextFactory.cpp │ │ ├── TextFactory.h │ │ └── TextFactoryInterface.h ├── gui │ ├── cfg_manager_gui │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── cfg_manager_gui.pc.in │ │ ├── manifest.xml │ │ ├── resources │ │ │ └── images │ │ │ │ └── preferences.png │ │ └── src │ │ │ ├── CfgWidget.cpp │ │ │ ├── CfgWidget.h │ │ │ ├── MainCfgGui.cpp │ │ │ └── MainCfgGui.h │ ├── config_map_gui │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── config_map_gui.pc.in │ │ ├── manifest.xml │ │ └── src │ │ │ ├── DataWidget.cpp │ │ │ └── DataWidget.h │ ├── data_broker_gui │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── data_broker_gui.pc.in │ │ ├── manifest.xml │ │ ├── resources │ │ │ └── images │ │ │ │ ├── data_broker_connection_symbol.png │ │ │ │ └── data_broker_symbol.png │ │ └── src │ │ │ ├── DataConnWidget.cpp │ │ │ ├── DataConnWidget.h │ │ │ ├── DataWidget.cpp │ │ │ ├── DataWidget.h │ │ │ ├── MainDataGui.cpp │ │ │ └── MainDataGui.h │ ├── data_broker_plotter │ │ ├── CMakeLists.txt │ │ ├── data_broker_plotter.pc.in │ │ ├── manifest.xml │ │ └── src │ │ │ ├── DataBrokerPlotter.cpp │ │ │ ├── DataBrokerPlotter.h │ │ │ ├── DataBrokerPlotterLib.cpp │ │ │ ├── DataBrokerPlotterLib.h │ │ │ └── qcustomplot │ │ │ ├── GPL.txt │ │ │ ├── changenotes.txt │ │ │ ├── qcustomplot.cpp │ │ │ └── qcustomplot.h │ ├── data_broker_plotter2 │ │ ├── CMakeLists.txt │ │ ├── data_broker_plotter2.pc.in │ │ ├── manifest.xml │ │ ├── resources │ │ │ ├── gui.py │ │ │ └── plot.py │ │ └── src │ │ │ ├── DataBrokerPlotter.cpp │ │ │ ├── DataBrokerPlotter.hpp │ │ │ ├── DataBrokerPlotterLib.cpp │ │ │ ├── DataBrokerPlotterLib.hpp │ │ │ └── qcustomplot │ │ │ ├── GPL.txt │ │ │ ├── changenotes.txt │ │ │ ├── qcustomplot.cpp │ │ │ └── qcustomplot.h │ ├── gui_app │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── gui_app.pc.in │ │ ├── manifest.xml │ │ └── src │ │ │ ├── GuiApp.cpp │ │ │ ├── GuiApp.hpp │ │ │ ├── MyApp.hpp │ │ │ └── main.cpp │ ├── lib_manager_gui │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── build.sh │ │ ├── lib_manager_gui.pc.in │ │ ├── manifest.xml │ │ └── src │ │ │ ├── LibManagerGui.cpp │ │ │ ├── LibManagerGui.h │ │ │ ├── LibManagerWidget.cpp │ │ │ └── LibManagerWidget.h │ ├── log_console │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── log_console.pc.in │ │ ├── manifest.xml │ │ ├── resources │ │ │ └── images │ │ │ │ └── terminal.png │ │ └── src │ │ │ ├── ConsoleGUI.cpp │ │ │ ├── ConsoleGUI.h │ │ │ ├── ConsoleInterface.h │ │ │ ├── MainConsole.cpp │ │ │ └── MainConsole.h │ └── main_gui │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── Doxyfile │ │ ├── main_gui.pc.in │ │ ├── manifest.xml │ │ └── src │ │ ├── BaseWidget.cpp │ │ ├── BaseWidget.h │ │ ├── MainGUI.cpp │ │ ├── MainGUI.h │ │ ├── MyQDockWidget.cpp │ │ ├── MyQDockWidget.h │ │ ├── MyQMainWindow.cpp │ │ ├── MyQMainWindow.h │ │ ├── MyQMdiArea.cpp │ │ ├── MyQMdiArea.h │ │ ├── PropertyCallback.h │ │ ├── PropertyDialog.cpp │ │ ├── PropertyDialog.h │ │ ├── interfaces │ │ ├── GuiInterface.h │ │ └── MenuInterface.h │ │ └── qtpropertybrowser │ │ ├── QtAbstractEditorFactoryBase │ │ ├── QtAbstractPropertyBrowser │ │ ├── QtAbstractPropertyManager │ │ ├── QtBoolPropertyManager │ │ ├── QtBrowserItem │ │ ├── QtButtonPropertyBrowser │ │ ├── QtCharEditorFactory │ │ ├── QtCharPropertyManager │ │ ├── QtCheckBoxFactory │ │ ├── QtColorEditorFactory │ │ ├── QtColorPropertyManager │ │ ├── QtCursorEditorFactory │ │ ├── QtCursorPropertyManager │ │ ├── QtDateEditFactory │ │ ├── QtDatePropertyManager │ │ ├── QtDateTimeEditFactory │ │ ├── QtDateTimePropertyManager │ │ ├── QtDoublePropertyManager │ │ ├── QtDoubleSpinBoxFactory │ │ ├── QtEnumEditorFactory │ │ ├── QtEnumPropertyManager │ │ ├── QtFlagPropertyManager │ │ ├── QtFontEditorFactory │ │ ├── QtFontPropertyManager │ │ ├── QtGroupBoxPropertyBrowser │ │ ├── QtGroupPropertyManager │ │ ├── QtIntPropertyManager │ │ ├── QtKeySequenceEditorFactory │ │ ├── QtKeySequencePropertyManager │ │ ├── QtLineEditFactory │ │ ├── QtLocalePropertyManager │ │ ├── QtPointFPropertyManager │ │ ├── QtPointPropertyManager │ │ ├── QtProperty │ │ ├── QtRectFPropertyManager │ │ ├── QtRectPropertyManager │ │ ├── QtScrollBarFactory │ │ ├── QtSizeFPropertyManager │ │ ├── QtSizePolicyPropertyManager │ │ ├── QtSizePropertyManager │ │ ├── QtSliderFactory │ │ ├── QtSpinBoxFactory │ │ ├── QtStringPropertyManager │ │ ├── QtTimeEditFactory │ │ ├── QtTimePropertyManager │ │ ├── QtTreePropertyBrowser │ │ ├── QtVariantEditorFactory │ │ ├── QtVariantProperty │ │ ├── QtVariantPropertyManager │ │ ├── extension │ │ ├── fileedit.cpp │ │ ├── fileedit.h │ │ ├── fileeditfactory.cpp │ │ ├── fileeditfactory.h │ │ ├── filepathmanager.cpp │ │ ├── filepathmanager.h │ │ ├── variantfactory.cpp │ │ ├── variantfactory.h │ │ ├── variantmanager.cpp │ │ └── variantmanager.h │ │ ├── qtbuttonpropertybrowser.cpp │ │ ├── qtbuttonpropertybrowser.h │ │ ├── qteditorfactory.cpp │ │ ├── qteditorfactory.h │ │ ├── qtgroupboxpropertybrowser.cpp │ │ ├── qtgroupboxpropertybrowser.h │ │ ├── qtpropertybrowser.cpp │ │ ├── qtpropertybrowser.h │ │ ├── qtpropertybrowser.pri │ │ ├── qtpropertybrowser.qrc │ │ ├── qtpropertybrowserutils.cpp │ │ ├── qtpropertybrowserutils_p.h │ │ ├── qtpropertymanager.cpp │ │ ├── qtpropertymanager.h │ │ ├── qttreepropertybrowser.cpp │ │ ├── qttreepropertybrowser.h │ │ ├── qtvariantproperty.cpp │ │ └── qtvariantproperty.h ├── logging │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── manifest.xml │ └── mars_logging.pc.in └── utils │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── doc │ └── utils.md │ ├── manifest.xml │ ├── mars_utils.pc.in │ └── src │ ├── Color.cpp │ ├── Color.h │ ├── Geometry.cpp │ ├── Geometry.hpp │ ├── Mutex.cpp │ ├── Mutex.h │ ├── MutexLocker.cpp │ ├── MutexLocker.h │ ├── Quaternion.h │ ├── ReadWriteLock.cpp │ ├── ReadWriteLock.h │ ├── ReadWriteLocker.cpp │ ├── ReadWriteLocker.h │ ├── Socket.cpp │ ├── Socket.h │ ├── Thread.cpp │ ├── Thread.h │ ├── Vector.h │ ├── WaitCondition.cpp │ ├── WaitCondition.h │ ├── mathUtils.cpp │ ├── mathUtils.h │ ├── misc.cpp │ └── misc.h ├── doc ├── Makefile ├── doxygen │ ├── DoxygenLayout.xml │ ├── Makefile │ ├── mars_doxyconf │ └── mars_doxyconf_no_graphs ├── header.html ├── rst2trac.py ├── scripts │ ├── create_subproject_doxygens.py │ ├── markdown2marshtml.py │ ├── markdown2rst.py │ ├── rst2marshtml.py │ └── update_docs.py └── src │ ├── 001_structural_overview.md │ ├── 002_documentation_structure.md │ ├── css │ ├── mars_default.css │ └── mars_doxygen.css │ ├── images │ ├── combinedlogo.png │ ├── logo_triple.png │ └── logo_v2_wob.png │ ├── index.md │ └── subproject_doxygen_template │ └── subproject_doxyconf ├── entity_generation ├── entity_factory │ ├── CMakeLists.txt │ ├── manifest.xml │ ├── mars_entity_factory.pc.in │ └── src │ │ ├── EntityFactoryInterface.h │ │ ├── EntityFactoryManager.cpp │ │ └── EntityFactoryManager.h ├── primitives │ ├── CMakeLists.txt │ ├── manifest.xml │ ├── mars_primitives.pc.in │ └── src │ │ ├── primitives.cpp │ │ └── primitives.h └── smurf │ ├── CMakeLists.txt │ ├── manifest.xml │ ├── mars_smurf.pc.in │ └── src │ ├── smurf.cpp │ └── smurf.h ├── graphics ├── CMakeLists.txt ├── COPYING ├── config.h.in ├── configuration │ ├── mars_Graphics.in │ └── mars_graphics.pc.in ├── doc │ └── Doxyfile ├── manifest.xml ├── resources │ ├── Fonts │ │ ├── arial.ttf │ │ └── times.ttf │ ├── Objects │ │ └── coords.3ds │ ├── Textures │ │ ├── colored_gravel_seamless.jpg │ │ ├── gras.jpg │ │ ├── grid.png │ │ ├── moon_surface_seamless.jpg │ │ ├── moon_surface_seamless_normal.png │ │ ├── osb_board_seamless.jpg │ │ ├── rocks_seamless.jpg │ │ ├── sand_seamless.jpg │ │ └── sources.md │ └── defaultMaterials.yml └── src │ ├── 2d_objects │ ├── HUDElement.h │ ├── HUDLabel.cpp │ ├── HUDLabel.h │ ├── HUDLines.cpp │ ├── HUDLines.h │ ├── HUDNode.cpp │ ├── HUDNode.h │ ├── HUDOSGNode.cpp │ ├── HUDOSGNode.h │ ├── HUDTerminal.cpp │ ├── HUDTerminal.h │ ├── HUDTexture.cpp │ └── HUDTexture.h │ ├── 3d_objects │ ├── AxisPrimitive.cpp │ ├── AxisPrimitive.h │ ├── CapsuleDrawObject.cpp │ ├── CapsuleDrawObject.h │ ├── CoordsPrimitive.cpp │ ├── CoordsPrimitive.h │ ├── CubeDrawObject.cpp │ ├── CubeDrawObject.h │ ├── CylinderDrawObject.cpp │ ├── CylinderDrawObject.h │ ├── DrawObject.cpp │ ├── DrawObject.h │ ├── EmptyDrawObject.h │ ├── GridPrimitive.cpp │ ├── GridPrimitive.h │ ├── LoadDrawObject.cpp │ ├── LoadDrawObject.h │ ├── MultiResHeightMapRenderer.cpp │ ├── MultiResHeightMapRenderer.h │ ├── OceanDrawObject.cpp │ ├── OceanDrawObject.h │ ├── PlaneDrawObject.cpp │ ├── PlaneDrawObject.h │ ├── SphereDrawObject.cpp │ ├── SphereDrawObject.h │ ├── TerrainDrawObject.cpp │ ├── TerrainDrawObject.h │ ├── VertexBufferTerrain.cpp │ └── VertexBufferTerrain.h │ ├── GraphicsCamera.cpp │ ├── GraphicsCamera.h │ ├── GraphicsManager.cpp │ ├── GraphicsManager.h │ ├── GraphicsViewer.cpp │ ├── GraphicsViewer.h │ ├── GraphicsWidget.cpp │ ├── GraphicsWidget.h │ ├── HUD.cpp │ ├── HUD.h │ ├── PostDrawCallback.cpp │ ├── PostDrawCallback.h │ ├── QtOsgMixGraphicsWidget.cpp │ ├── QtOsgMixGraphicsWidget.h │ ├── gui_helper_functions.cpp │ ├── gui_helper_functions.h │ ├── shadow │ ├── ParallelSplitShadowMap.cpp │ ├── ParallelSplitShadowMap.h │ ├── ShadowMap.cpp │ └── ShadowMap.h │ └── wrapper │ ├── OSGDrawItem.cpp │ ├── OSGDrawItem.h │ ├── OSGHudElementStruct.cpp │ ├── OSGHudElementStruct.h │ ├── OSGLightStruct.cpp │ ├── OSGLightStruct.h │ ├── OSGMaterialStruct.cpp │ ├── OSGMaterialStruct.h │ ├── OSGNodeStruct.cpp │ └── OSGNodeStruct.h ├── gui ├── CMakeLists.txt ├── COPYING ├── COPYING.LESSER ├── config.h.in ├── configuration │ ├── dialog_config.in │ ├── mars_Gui.in │ └── mars_gui.pc.in ├── doc │ └── Doxyfile ├── manifest.xml ├── resources │ ├── appicon.rc │ ├── blender │ │ └── export.blend │ ├── images │ │ ├── Ball-and-socket.jpg │ │ ├── Hinge.jpg │ │ ├── Hinge2.jpg │ │ ├── Slider.jpeg │ │ ├── Universal.jpg │ │ ├── background.png │ │ ├── blender.png │ │ ├── box.png │ │ ├── connexion.png │ │ ├── joint.png │ │ ├── lamp.png │ │ ├── mars_icon.ico │ │ ├── material.png │ │ ├── mesh.png │ │ ├── motor.png │ │ ├── new_scene.png │ │ ├── open_scene.png │ │ ├── pause_button.png │ │ ├── plane.png │ │ ├── play_button.png │ │ ├── preferences.png │ │ ├── reset.png │ │ ├── save_scene.png │ │ ├── sphere.png │ │ ├── step_button.png │ │ └── terminal.png │ ├── mars.qrc │ └── styles │ │ ├── branch-closed.png │ │ ├── branch-open.png │ │ ├── marsbackground.jpeg │ │ └── marsbutton.jpeg └── src │ ├── ControllerHandler.cpp │ ├── ControllerHandler.h │ ├── MainGUIDefs.h │ ├── MarsGui.cpp │ ├── MarsGui.h │ ├── MarsStyle.cpp │ ├── MarsStyle.h │ ├── NodeSelectionTree.cpp │ ├── NodeSelectionTree.h │ ├── SelectionDialog.cpp │ ├── SelectionDialog.h │ ├── dialogs │ ├── AboutDialog.cpp │ ├── AboutDialog.h │ ├── BlenderExportGUI.cpp │ ├── BlenderExportGUI.h │ ├── CameraConfig │ │ ├── CameraConfig.cpp │ │ ├── CameraConfig.h │ │ ├── CameraConfigurator.cpp │ │ ├── CameraConfigurator.h │ │ ├── CameraConfiguratorGUI.cpp │ │ └── CameraConfiguratorGUI.h │ ├── CaptureWindow │ │ ├── CaptureConfig.cpp │ │ ├── CaptureConfig.h │ │ ├── CaptureGUI.cpp │ │ ├── CaptureGUI.h │ │ ├── CaptureWindow.cpp │ │ ├── CaptureWindow.h │ │ ├── ImageProcess.cpp │ │ └── ImageProcess.h │ ├── ControllerConfigGUI.cpp │ ├── ControllerConfigGUI.h │ ├── DialogControllers.cpp │ ├── DialogControllers.h │ ├── DialogDistance.cpp │ ├── DialogDistance.h │ ├── Dialog_Add_Force.cpp │ ├── Dialog_Add_Force.h │ ├── Dialog_Add_Torque.cpp │ ├── Dialog_Add_Torque.h │ ├── Dialog_Motor_Control.cpp │ ├── Dialog_Motor_Control.h │ ├── Dialog_Rescale_Environment.cpp │ └── Dialog_Rescale_Environment.h │ └── menus │ ├── MenuAdd.cpp │ ├── MenuAdd.h │ ├── MenuFile.cpp │ ├── MenuFile.h │ ├── MenuHelp.cpp │ ├── MenuHelp.h │ ├── MenuSimulation.cpp │ ├── MenuSimulation.h │ ├── MenuWindow.cpp │ └── MenuWindow.h ├── interfaces ├── CMakeLists.txt ├── COPYING ├── COPYING.LESSER ├── doc │ └── Doxyfile ├── manifest.xml ├── mars_interfaces.pc.in └── src │ ├── ControllerData.cpp │ ├── ControllerData.h │ ├── GraphicData.cpp │ ├── GraphicData.h │ ├── JointData.cpp │ ├── JointData.h │ ├── LightData.cpp │ ├── LightData.h │ ├── Logging.hpp │ ├── MARSDefs.h │ ├── MaterialData.cpp │ ├── MaterialData.h │ ├── MotorData.cpp │ ├── MotorData.h │ ├── NodeData.cpp │ ├── NodeData.h │ ├── cameraStruct.h │ ├── camera_sensor_config.h │ ├── contact_params.h │ ├── core_objects_exchange.h │ ├── exceptions │ └── SceneParseException.h │ ├── graphics │ ├── DrawInterface.h │ ├── GraphicsCameraInterface.h │ ├── GraphicsEventClient.h │ ├── GraphicsEventInterface.h │ ├── GraphicsGuiInterface.h │ ├── GraphicsManagerInterface.h │ ├── GraphicsUpdateInterface.h │ ├── GraphicsWindowInterface.h │ ├── GuiEventInterface.h │ └── draw_structs.h │ ├── gui │ └── MarsGuiInterface.h │ ├── jointStruct.h │ ├── nodeState.h │ ├── sensor_bases.h │ ├── sim │ ├── ControlCenter.cpp │ ├── ControlCenter.h │ ├── ControllerInterface.h │ ├── ControllerManagerInterface.h │ ├── EntityManagerInterface.h │ ├── EntitySubscriberInterface.h │ ├── JointInterface.h │ ├── JointManagerInterface.h │ ├── LoadCenter.cpp │ ├── LoadCenter.h │ ├── LoadSceneInterface.h │ ├── MarsPluginTemplate.h │ ├── MarsPluginTemplateGUI.h │ ├── MotorManagerInterface.h │ ├── NodeInterface.h │ ├── NodeManagerInterface.h │ ├── PhysicsInterface.h │ ├── PluginInterface.h │ ├── SensorInterface.h │ ├── SensorManagerInterface.h │ └── SimulatorInterface.h │ ├── sim_common.h │ ├── snmesh.h │ ├── terrainStruct.h │ ├── utils.cpp │ └── utils.h ├── manifest.xml ├── plugins ├── AnimationPlugin │ ├── AnimationPlugin.pc.in │ ├── CMakeLists.txt │ ├── README.md │ ├── manifest.xml │ └── src │ │ ├── AnimationPlugin.cpp │ │ └── AnimationPlugin.hpp ├── CameraGUI │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── CameraGUI.pc.in │ ├── manifest.xml │ └── src │ │ ├── CameraGUI.cpp │ │ ├── CameraGUI.hpp │ │ ├── CameraWidget.cpp │ │ └── CameraWidget.hpp ├── Plot3D │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── Plot3D.pc.in │ ├── build.sh │ ├── manifest.xml │ └── src │ │ ├── GeneralPlot.cpp │ │ ├── GeneralPlot.h │ │ ├── MotorPlot.cpp │ │ ├── MotorPlot.h │ │ ├── MotorPlotConfig.cpp │ │ ├── MotorPlotConfig.h │ │ ├── Plot3D.cpp │ │ └── Plot3D.h ├── PythonMars │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── PythonMars.pc.in │ ├── cmake │ │ └── FindNumpy.cmake │ ├── manifest.xml │ ├── python │ │ ├── euclid.py │ │ └── mars_interface.py │ └── src │ │ ├── PythonInterpreter.cpp │ │ ├── PythonInterpreter.hpp │ │ ├── PythonMars.cpp │ │ └── PythonMars.h ├── SkyDomePlugin │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── SkyDomePlugin.pc.in │ ├── build.sh │ ├── manifest.xml │ ├── resources │ │ └── cubemap │ │ │ ├── down.png │ │ │ ├── east.png │ │ │ ├── north.png │ │ │ ├── south.png │ │ │ ├── up.png │ │ │ └── west.png │ └── src │ │ ├── SkyDome.cpp │ │ ├── SkyDome.h │ │ ├── SkyDomePlugin.cpp │ │ ├── SkyDomePlugin.h │ │ ├── SphereSegment.cpp │ │ └── SphereSegment.h ├── TerrainPlugin │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── TerrainPlugin.pc.in │ ├── manifest.xml │ └── src │ │ ├── TerrainPlugin.cpp │ │ └── TerrainPlugin.h ├── Text3D │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── Text3D.pc.in │ ├── build.sh │ ├── manifest.xml │ └── src │ │ ├── Text3D.cpp │ │ └── Text3D.h ├── VirtualJoystickPlugin │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── CrossWidget.cpp │ ├── CrossWidget.h │ ├── CrossWidget.qrc │ ├── CrossWidget.ui │ ├── JoystickInterface.h │ ├── JoystickWidget.cpp │ ├── JoystickWidget.h │ ├── JoystickWidget.ui │ ├── VirtualJoystickPlugin.cpp │ ├── VirtualJoystickPlugin.h │ ├── build_plugin.sh │ ├── images │ │ └── bgcross.png │ └── manifest.xml ├── connectors │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── README.md │ ├── build.sh │ ├── connectors.pc.in │ ├── manifest.xml │ └── src │ │ ├── Connectors.cpp │ │ └── Connectors.h ├── connexion_plugin │ ├── .gitignore │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── ConnexionHID.h │ ├── ConnexionPlugin.cpp │ ├── ConnexionPlugin.h │ ├── ConnexionWidget.cpp │ ├── ConnexionWidget.h │ ├── README.linux │ ├── linux │ │ └── ConnexionHID.cpp │ ├── manifest.xml │ ├── osx │ │ └── ConnexionHID.cpp │ ├── resources │ │ └── connexion.png │ └── win32 │ │ └── ConnexionHID.cpp ├── constraint_plugin │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── build.sh │ ├── constraints_plugin.pc.in │ ├── manifest.xml │ ├── resources │ │ └── constraints.yaml.example │ └── src │ │ ├── BaseConstraint.h │ │ ├── ConstraintsPlugin.cpp │ │ ├── ConstraintsPlugin.h │ │ ├── NodeConstraint.cpp │ │ └── NodeConstraint.h ├── entity_view │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── build.sh │ ├── entity_view.pc.in │ ├── manifest.xml │ ├── resources │ │ └── entity_view.png │ └── src │ │ ├── EntityView.cpp │ │ ├── EntityView.h │ │ ├── EntityViewMainWindow.cpp │ │ ├── EntityViewMainWindow.h │ │ ├── SelectionTree.cpp │ │ └── SelectionTree.h ├── gamepad_plugin │ ├── CMakeLists.txt │ ├── manifest.xml │ └── src │ │ ├── GamepadHID.hpp │ │ ├── GamepadPlugin.cpp │ │ ├── GamepadPlugin.hpp │ │ ├── linux │ │ └── GamepadHID.cpp │ │ └── osx │ │ └── GamepadHID.cpp ├── obstacle_generator │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── build.sh │ ├── doc │ │ └── img │ │ │ ├── og1.png │ │ │ ├── og2.png │ │ │ ├── og3.png │ │ │ ├── og4.png │ │ │ ├── og5.png │ │ │ ├── og6.png │ │ │ └── og7.png │ ├── manifest.xml │ ├── obstacle_generator.pc.in │ ├── src │ │ ├── ObstacleGenerator.cpp │ │ └── ObstacleGenerator.h │ └── textures │ │ ├── ground.jpg │ │ ├── ground2.jpg │ │ ├── readme.txt │ │ ├── rocks.jpg │ │ └── rocks2.jpg ├── plugin_template │ ├── __gui_project__ │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── __project__.pc.in │ │ ├── build.sh │ │ ├── manifest.xml │ │ └── src │ │ │ ├── __project__.cpp │ │ │ ├── __project__.h │ │ │ ├── __project___MainWin.cpp │ │ │ └── __project___MainWin.h │ ├── __project__ │ │ ├── CMakeLists.txt │ │ ├── COPYING │ │ ├── COPYING.LESSER │ │ ├── __project__.pc.in │ │ ├── build.sh │ │ ├── manifest.xml │ │ └── src │ │ │ ├── __project__.cpp │ │ │ └── __project__.h │ ├── cnp.sh │ └── create_new_project.sh └── viz_plugin │ ├── CMakeLists.txt │ ├── COPYING │ ├── COPYING.LESSER │ ├── easy.scn │ ├── manifest.xml │ └── src │ ├── VizPlugin.cpp │ └── VizPlugin.h ├── scene_loader ├── CMakeLists.txt ├── COPYING ├── COPYING.LESSER ├── manifest.xml ├── mars_scene_loader.pc.in └── src │ ├── Load.cpp │ ├── Load.h │ ├── Save.cpp │ ├── Save.h │ ├── SaveLoadStructs.h │ ├── SceneLoader.cpp │ ├── SceneLoader.h │ ├── zipit.cpp │ └── zipit.h ├── scripts ├── .gitignore ├── blender │ ├── convert_stl_to_obj.py │ ├── create_mars_props.py │ ├── export_bobj.py │ ├── import_mars_scene.py │ ├── motion_viz.py │ ├── relative_mars_export.py │ └── sync_objects.py ├── cmake │ ├── CMakeLists.txt │ ├── manifest.xml │ ├── mars-config.cmake.in │ └── mars.cmake ├── makeDepGraphs.py └── sysinfo.py ├── sim ├── CMakeLists.txt ├── COPYING ├── COPYING.LESSER ├── config.h.in ├── configuration │ ├── mars_Preferences.in │ └── mars_sim.pc.in ├── doc │ └── Doxyfile.in ├── manifest.xml └── src │ ├── core │ ├── Controller.cpp │ ├── Controller.h │ ├── ControllerManager.cpp │ ├── ControllerManager.h │ ├── EntityManager.cpp │ ├── EntityManager.h │ ├── JointManager.cpp │ ├── JointManager.h │ ├── MotorManager.cpp │ ├── MotorManager.h │ ├── NodeManager.cpp │ ├── NodeManager.h │ ├── PhysicsMapper.cpp │ ├── PhysicsMapper.h │ ├── SensorManager.cpp │ ├── SensorManager.h │ ├── SimEntity.cpp │ ├── SimEntity.h │ ├── SimJoint.cpp │ ├── SimJoint.h │ ├── SimMotor.cpp │ ├── SimMotor.h │ ├── SimNode.cpp │ ├── SimNode.h │ ├── Simulator.cpp │ └── Simulator.h │ ├── interfaces │ └── sensors │ │ └── GridSensorInterface.h │ ├── physics │ ├── ContactsPhysics.hpp │ ├── JointPhysics.cpp │ ├── JointPhysics.h │ ├── NodePhysics.cpp │ ├── NodePhysics.h │ ├── WorldPhysics.cpp │ └── WorldPhysics.h │ └── sensors │ ├── CameraSensor.cpp │ ├── CameraSensor.h │ ├── HapticFieldSensor.cpp │ ├── HapticFieldSensor.h │ ├── IDListConfig.h │ ├── Joint6DOFSensor.cpp │ ├── Joint6DOFSensor.h │ ├── JointAVGTorqueSensor.cpp │ ├── JointAVGTorqueSensor.h │ ├── JointArraySensor.cpp │ ├── JointArraySensor.h │ ├── JointLoadSensor.cpp │ ├── JointLoadSensor.h │ ├── JointPositionSensor.cpp │ ├── JointPositionSensor.h │ ├── JointTorqueSensor.cpp │ ├── JointTorqueSensor.h │ ├── JointVelocitySensor.cpp │ ├── JointVelocitySensor.h │ ├── MotorCurrentSensor.cpp │ ├── MotorCurrentSensor.h │ ├── MotorPositionSensor.cpp │ ├── MotorPositionSensor.h │ ├── MultiLevelLaserRangeFinder.cpp │ ├── MultiLevelLaserRangeFinder.h │ ├── NodeAngularVelocitySensor.cpp │ ├── NodeAngularVelocitySensor.h │ ├── NodeArraySensor.cpp │ ├── NodeArraySensor.h │ ├── NodeCOMSensor.cpp │ ├── NodeCOMSensor.h │ ├── NodeContactForceSensor.cpp │ ├── NodeContactForceSensor.h │ ├── NodeContactSensor.cpp │ ├── NodeContactSensor.h │ ├── NodeIMUSensor.cpp │ ├── NodeIMUSensor.h │ ├── NodePositionSensor.cpp │ ├── NodePositionSensor.h │ ├── NodeRotationSensor.cpp │ ├── NodeRotationSensor.h │ ├── NodeVelocitySensor.cpp │ ├── NodeVelocitySensor.h │ ├── RayGridSensor.cpp │ ├── RayGridSensor.h │ ├── RaySensor.cpp │ ├── RaySensor.h │ ├── RotatingRaySensor.cpp │ ├── RotatingRaySensor.h │ ├── ScanningSonar.cpp │ └── ScanningSonar.h ├── smurf_loader ├── CMakeLists.txt ├── COPYING ├── COPYING.LESSER ├── build.sh ├── manifest.xml ├── mars_smurf_loader.pc.in └── src │ ├── SMURFLoader.cpp │ ├── SMURFLoader.h │ ├── zipit.cpp │ └── zipit.h └── viz ├── CMakeLists.txt ├── COPYING ├── COPYING.LESSER ├── manifest.xml ├── mars_viz.pc.in ├── resources ├── appicon.rc └── images │ └── mars_icon.ico └── src ├── GraphicsTimer.cpp ├── GraphicsTimer.h ├── MyApp.h ├── Viz.cpp ├── Viz.h └── main.cpp /.gitignore: -------------------------------------------------------------------------------- 1 | build/ 2 | **/doc/doxygen/html/ 3 | *~ 4 | **/*/.idea 5 | .idea 6 | -------------------------------------------------------------------------------- /ACKS: -------------------------------------------------------------------------------- 1 | MARS was mainly developed by the German Research Center for Artificial 2 | Intelligence (DFKI) but over time several people have contributed to its 3 | development. This file serves as a place to acknowledge the 4 | contributions of those people. 5 | The order of the list is arbitrary and does not reflect the importance 6 | or value of people's contributions in any way. 7 | If you feel you deserve to be on this list and are not, feel free 8 | to contact us at ric-mars@dfki.de . 9 | 10 | 11 | Thanks for contributing to MARS go out to: 12 | 13 | Robert Borchers 14 | Armin Burchardt 15 | Matthias Goldhorn 16 | Lorenz Quack 17 | Malte Roemmermann 18 | Michael Rohn 19 | 20 | -------------------------------------------------------------------------------- /app/configuration/core_libs-nogui.in: -------------------------------------------------------------------------------- 1 | data_broker 2 | cfg_manager 3 | mars_sim 4 | mars_scene_loader 5 | mars_entity_factory 6 | mars_smurf 7 | mars_smurf_loader 8 | -------------------------------------------------------------------------------- /app/configuration/core_libs.in: -------------------------------------------------------------------------------- 1 | data_broker 2 | main_gui 3 | mars_graphics 4 | mars_sim 5 | mars_scene_loader 6 | mars_gui 7 | mars_entity_factory 8 | mars_smurf 9 | mars_smurf_loader 10 | entity_view -------------------------------------------------------------------------------- /app/configuration/envire_core_libs-nogui.in: -------------------------------------------------------------------------------- 1 | data_broker 2 | mars_sim 3 | mars_entity_factory 4 | mars_scene_loader 5 | envire_managers 6 | envire_smurf_loader -------------------------------------------------------------------------------- /app/configuration/envire_core_libs.in: -------------------------------------------------------------------------------- 1 | data_broker 2 | mars_sim 3 | mars_entity_factory 4 | mars_scene_loader 5 | main_gui 6 | mars_gui 7 | osgviz_mars_graphics 8 | envire_managers 9 | envire_smurf_loader 10 | envire_graphics 11 | envire_mls 12 | envire_graph_loader -------------------------------------------------------------------------------- /app/configuration/envire_other_libs.in: -------------------------------------------------------------------------------- 1 | # additional list of libraries to be loaded after the core libraries have been loaded 2 | @ADDITIONAL_LIBS@ 3 | envire_visual_debug -------------------------------------------------------------------------------- /app/configuration/mars_default.in: -------------------------------------------------------------------------------- 1 | #This is the main config file for MARS written in YAML 2 | --- 3 | MainGUI: 4 | 5 | - name: windowTop 6 | type: int 7 | value: 40 8 | saveOnClose: true 9 | 10 | - name: windowLeft 11 | type: int 12 | value: 40 13 | saveOnClose: true 14 | 15 | - name: windowWidth 16 | type: int 17 | value: 640 18 | saveOnClose: true 19 | 20 | - name: windowHeight 21 | type: int 22 | value: 480 23 | saveOnClose: true 24 | 25 | Graphics: 26 | 27 | - name: window1Top 28 | type: int 29 | value: 40 30 | saveOnClose: true 31 | 32 | - name: window1Left 33 | type: int 34 | value: 700 35 | saveOnClose: true 36 | 37 | - name: window1Width 38 | type: int 39 | value: 720 40 | saveOnClose: true 41 | 42 | - name: window1Height 43 | type: int 44 | value: 405 45 | saveOnClose: true 46 | 47 | Config: 48 | 49 | - name: loadLastSave 50 | type: bool 51 | value: true 52 | 53 | Preferences: 54 | 55 | - name: config_path 56 | type: string 57 | value: @CMAKE_INSTALL_PREFIX@/configuration/mars-default 58 | 59 | - name: resources_path 60 | type: string 61 | value: @CMAKE_INSTALL_PREFIX@/share 62 | -------------------------------------------------------------------------------- /app/configuration/other_libs.in: -------------------------------------------------------------------------------- 1 | # additional list of libraries to be loaded after the core libraries have been loaded 2 | @ADDITIONAL_LIBS@ 3 | -------------------------------------------------------------------------------- /app/configuration/pypath.yml: -------------------------------------------------------------------------------- 1 | pypath: python 2 | -------------------------------------------------------------------------------- /app/doc/tutorial/Diagram1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/app/doc/tutorial/Diagram1.png -------------------------------------------------------------------------------- /app/mars_app.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include/ 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: The DFKI Robot Simulator Application 8 | Requires.private: lib_manager @main_gui_required@ mars_interfaces 9 | Requires: @PUBLIC_DEPENDENCIES@ 10 | Version: @PROJECT_VERSION@ 11 | Libs: -L${libdir} -lmars 12 | 13 | Cflags: -I${includedir} 14 | 15 | -------------------------------------------------------------------------------- /app/resources/appicon.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "images/mars_icon.ico" -------------------------------------------------------------------------------- /app/resources/images/mars_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/app/resources/images/mars_icon.ico -------------------------------------------------------------------------------- /common/cfg_manager/.gitignore: -------------------------------------------------------------------------------- 1 | build -------------------------------------------------------------------------------- /common/cfg_manager/cfg_manager.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: lib_manager yaml-cpp 10 | Libs: -L${libdir} -l@PROJECT_NAME@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /common/cfg_manager/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A small library to read, write, and share software parameter using yaml configuration files. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | needs_opt 10 | 11 | -------------------------------------------------------------------------------- /common/data_broker/data_broker.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} @DATA_BROKER_EIGEN_DEFINITIONS@ 11 | Requires.private: mars_utils lib_manager 12 | -------------------------------------------------------------------------------- /common/data_broker/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A small library to manage data communication within a software framework. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | needs_opt 9 | 10 | -------------------------------------------------------------------------------- /common/graphics/osg_animations/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Implementation to visualize 3D animation 4 | 5 | Malte Langosz/malte.langosz@dfki.de 6 | 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | -------------------------------------------------------------------------------- /common/graphics/osg_animations/osg_animation.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/graphics/osg_animations/src/AnimationFactory.cpp: -------------------------------------------------------------------------------- 1 | /** 2 | * \file AnimationFactory.cpp 3 | * \author Malte (malte.langosz@dfki.de) 4 | * \brief A 5 | * 6 | * Version 0.1 7 | */ 8 | 9 | #include "AnimationFactory.hpp" 10 | #include "AnimationP.hpp" 11 | 12 | namespace osg_animation { 13 | 14 | AnimationFactory::AnimationFactory() { 15 | 16 | // load animation resource 17 | // std::stringstream ss; 18 | // ss << SHARE_DIR; 19 | // ss << "/resources/animation.obj"; 20 | // fprintf(stderr, "osg_animation: load %s\n", ss.str().c_str()); 21 | // AnimationP::animationNode = osgDB::readNodeFile(ss.str()); 22 | } 23 | 24 | AnimationFactory::~AnimationFactory(void) { 25 | } 26 | 27 | Animation* AnimationFactory::createAnimation(void) { 28 | AnimationP *animation = new AnimationP(); 29 | return animation; 30 | } 31 | 32 | } // end of namespace: osg_animation 33 | -------------------------------------------------------------------------------- /common/graphics/osg_animations/src/AnimationFactory.hpp: -------------------------------------------------------------------------------- 1 | /** 2 | * \file FramesFactory.hpp 3 | * \author Malte Langosz 4 | * \brief 5 | **/ 6 | 7 | #ifndef OSG_ANIMATION_FACTORY_HPP 8 | #define OSG_ANIMATION_FACTORY_HPP 9 | 10 | #ifdef _PRINT_HEADER_ 11 | #warning "AnimationFactory.hpp" 12 | #endif 13 | 14 | #include "Animation.hpp" 15 | 16 | namespace osg_animation { 17 | 18 | class AnimationP; 19 | 20 | class AnimationFactory { 21 | 22 | public: 23 | AnimationFactory(); 24 | ~AnimationFactory(); 25 | 26 | Animation* createAnimation(void); 27 | }; 28 | 29 | } // end of namespace: osg_animation 30 | 31 | #endif // OSG_ANIMATION_FACTORY_H 32 | -------------------------------------------------------------------------------- /common/graphics/osg_frames/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Implements 3D frames visualization in osg 4 | 5 | Malte Langosz/malte.langosz@dfki.de 6 | 7 | needs_opt 8 | 9 | -------------------------------------------------------------------------------- /common/graphics/osg_frames/osg_frames.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/graphics/osg_frames/resources/frame.mtl: -------------------------------------------------------------------------------- 1 | # Blender MTL File: 'None' 2 | # Material Count: 3 3 | 4 | newmtl coord_blue 5 | Ns 0.000000 6 | Ka 0.034 0.065 0.400000 7 | Kd 0.034 0.065 0.400000 8 | Ks 0.000000 0.000000 0.000000 9 | Ke 0.000000 0.000000 0.000000 10 | Ni 1.450000 11 | d 1.000000 12 | illum 1 13 | 14 | newmtl coord_green 15 | Ns 0.000000 16 | Ka 0.0155 0.4 0.0125 17 | Kd 0.0155 0.4 0.0125 18 | Ks 0.000000 0.000000 0.000000 19 | Ke 0.000000 0.000000 0.000000 20 | Ni 1.450000 21 | d 1.000000 22 | illum 1 23 | 24 | newmtl coord_red 25 | Ns 0.000000 26 | Ka 0.400000 0.025 0.0253 27 | Kd 0.400000 0.025 0.0253 28 | Ks 0.000000 0.000000 0.000000 29 | Ke 0.000000 0.000000 0.000000 30 | Ni 1.450000 31 | d 1.000000 32 | illum 1 33 | -------------------------------------------------------------------------------- /common/graphics/osg_lines/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | handles lines and path implementation in osg 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | needs_opt 8 | 9 | -------------------------------------------------------------------------------- /common/graphics/osg_lines/osg_lines.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/graphics/osg_lines/src/LinesFactory.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014, DFKI GmbH Robotics Innovation Center 3 | * 4 | * This file is part of the MARS simulation framework. 5 | * 6 | * MARS is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License 8 | * as published by the Free Software Foundation, either version 3 9 | * of the License, or (at your option) any later version. 10 | * 11 | * MARS is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with MARS. If not, see . 18 | * 19 | */ 20 | 21 | /** 22 | * \file LinesFactory.cpp 23 | * \author Malte (malte.langosz@dfki.de) 24 | * \brief A 25 | * 26 | * Version 0.1 27 | */ 28 | 29 | #include "LinesFactory.h" 30 | #include "LinesP.h" 31 | 32 | namespace osg_lines { 33 | 34 | LinesFactory::LinesFactory() { 35 | } 36 | 37 | LinesFactory::~LinesFactory(void) { 38 | } 39 | 40 | Lines* LinesFactory::createLines(void) { 41 | LinesP *lines = new LinesP(); 42 | return lines; 43 | } 44 | 45 | } // end of namespace: osg_lines 46 | -------------------------------------------------------------------------------- /common/graphics/osg_lines/src/LinesFactory.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2014, DFKI GmbH Robotics Innovation Center 3 | * 4 | * This file is part of the MARS simulation framework. 5 | * 6 | * MARS is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License 8 | * as published by the Free Software Foundation, either version 3 9 | * of the License, or (at your option) any later version. 10 | * 11 | * MARS is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with MARS. If not, see . 18 | * 19 | */ 20 | 21 | /** 22 | * \file LinesFactory.h 23 | * \author Malte Langosz 24 | * \brief 25 | **/ 26 | 27 | #ifndef OSG_LINES_FACTORY_H 28 | #define OSG_LINES_FACTORY_H 29 | 30 | #ifdef _PRINT_HEADER_ 31 | #warning "LinesFactory.h" 32 | #endif 33 | 34 | #include "Lines.h" 35 | 36 | namespace osg_lines { 37 | 38 | class LinesP; 39 | 40 | class LinesFactory { 41 | 42 | public: 43 | LinesFactory(); 44 | ~LinesFactory(); 45 | 46 | Lines* createLines(void); 47 | 48 | }; 49 | 50 | } // end of namespace: osg_lines 51 | 52 | #endif // OSG_LINES_FACTORY_H 53 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Malte Langosz/malte.langosz@dfki.de 5 | 6 | 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/osg_material_manager.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | sharedir=${prefix}/share/mars/@PROJECT_NAME@ 6 | 7 | Name: @PROJECT_NAME@ 8 | Description: @PROJECT_DESCRIPTION@ 9 | Version: @PROJECT_VERSION@ 10 | Requires: lib_manager cfg_manager mars_interfaces 11 | Libs: -L${libdir} -l@PROJECT_NAME@ 12 | Cflags: -I${includedir} 13 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/backfaceNormal.frag: -------------------------------------------------------------------------------- 1 | void backfaceNormal(in vec3 n_in, out vec3 n_out) { 2 | n_out = normalize( gl_FrontFacing ? n_in : -n_in ); 3 | } 4 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/backfaceNormal.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | n: {index: 0, type: vec3} 4 | out: 5 | n: {index: 1, type: vec3} 6 | source: /graph_shader/backfaceNormal.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/compose_vec2.frag: -------------------------------------------------------------------------------- 1 | void compose_vec2(in float x, in float y, out vec2 vector) { 2 | vector = vec2(x, y); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/compose_vec2.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | x: {index: 0, type: float} 4 | y: {index: 1, type: float} 5 | out: 6 | vector: {index: 2, type: vec2} 7 | source: /graph_shader/compose_vec2.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/compose_vec3.frag: -------------------------------------------------------------------------------- 1 | void compose_vec3(in float x, in float y, in float z, out vec3 vector) { 2 | vector = vec3(x, y, z); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/compose_vec3.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | x: {index: 0, type: float} 4 | y: {index: 1, type: float} 5 | z: {index: 2, type: float} 6 | out: 7 | vector: {index: 3, type: vec3} 8 | source: /graph_shader/compose_vec3.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/compose_vec4.frag: -------------------------------------------------------------------------------- 1 | void compose_vec4(in float x, in float y, in float z, in float w, out vec4 vector) { 2 | vector = vec4(x, y, z, w); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/compose_vec4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | x: {index: 0, type: float} 4 | y: {index: 1, type: float} 5 | z: {index: 2, type: float} 6 | w: {index: 3, type: float} 7 | out: 8 | vector: {index: 4, type: vec4} 9 | source: /graph_shader/compose_vec4.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/crop_vec2.frag: -------------------------------------------------------------------------------- 1 | void crop_vec2(in vec2 vec_a, out float f) { 2 | f = 0; 3 | f = vec_a.x < 0?1:f; 4 | f = vec_a.x > 1?1:f; 5 | f = vec_a.y < 0?1:f; 6 | f = vec_a.y > 1?1:f; 7 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/crop_vec2.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec2} 4 | out: 5 | f: {index: 1, type: float} 6 | source: /graph_shader/crop_vec2.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/decompose_vec2.frag: -------------------------------------------------------------------------------- 1 | void decompose_vec2(in vec2 vector, out float x, out float y) { 2 | x = vector.x; 3 | y = vector.y; 4 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/decompose_vec2.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector: {index: 0, type: vec2} 4 | out: 5 | x: {index: 1, type: float} 6 | y: {index: 2, type: float} 7 | source: /graph_shader/decompose_vec2.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/decompose_vec3.frag: -------------------------------------------------------------------------------- 1 | void decompose_vec3(in vec3 vector, out float x, out float y, out float z) { 2 | x = vector.x; 3 | y = vector.y; 4 | z = vector.z; 5 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/decompose_vec3.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector: {index: 0, type: vec3} 4 | out: 5 | x: {index: 1, type: float} 6 | y: {index: 2, type: float} 7 | z: {index: 3, type: float} 8 | source: /graph_shader/decompose_vec3.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/decompose_vec4.frag: -------------------------------------------------------------------------------- 1 | void decompose_vec4(in vec4 vector, out float x, out float y, out float z, out float w) { 2 | x = vector.x; 3 | y = vector.y; 4 | z = vector.z; 5 | w = vector.w; 6 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/decompose_vec4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector: {index: 0, type: vec4} 4 | out: 5 | x: {index: 1, type: float} 6 | y: {index: 2, type: float} 7 | z: {index: 3, type: float} 8 | w: {index: 4, type: float} 9 | source: /graph_shader/decompose_vec4.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/dot_max.frag: -------------------------------------------------------------------------------- 1 | void dot_max(in vec3 vector_a, in vec3 vector_b, in float m, out float value) { 2 | value = max(dot( vector_a, vector_b ), m); 3 | } 4 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/dot_max.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec3} 4 | vector_b: {index: 1, type: vec3} 5 | m: {index: 1, type: float} 6 | out: 7 | value: {index: 3, type: float} 8 | source: /graph_shader/dot_max.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/envmap_col.frag: -------------------------------------------------------------------------------- 1 | void envmap_color_frag(in vec2 texCoord, in sampler2D envMapCol, in sampler2D RCol, in sampler2D GCol, in sampler2D BCol, in sampler2D ACol, out vec4 color) { 2 | vec4 rcol; 3 | vec4 gcol; 4 | vec4 bcol; 5 | vec4 acol; 6 | vec4 scale; 7 | rcol = texture2D(RCol, texCoord*envMapScale.r); 8 | bcol = texture2D(GCol, texCoord*envMapScale.g); 9 | gcol = texture2D(BCol, texCoord*envMapScale.b); 10 | acol = texture2D(ACol, texCoord*envMapScale.a); 11 | scale = texture2D(envMapCol, texCoord); 12 | color = scale.a * (rcol*scale.r+bcol*scale.b+gcol*scale.g)+acol*(1-scale.a); 13 | } 14 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/envmap_color_frag.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | texCoord: {index: 0, type: vec2} 4 | envMapCol: {index: 1, type: sampler2D} 5 | RCol: {index: 2, type: sampler2D} 6 | GCol: {index: 3, type: sampler2D} 7 | BCol: {index: 4, type: sampler2D} 8 | ACol: {index: 5, type: sampler2D} 9 | out: 10 | color: {index: 6, type: vec4} 11 | source: /graph_shader/envmap_col.frag 12 | uniforms: 13 | vec4: 14 | - {name: envMapScale} -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/envmap_vert.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | specularCol: {index: 0, type: vec4} 4 | source: /shader/envmap.vert 5 | uniforms: 6 | float: 7 | - {name: texScale} 8 | vec4: 9 | - {name: envMapSpecular} 10 | sampler2D: 11 | - {name: environmentMap} -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/fragInfo.frag: -------------------------------------------------------------------------------- 1 | void fragInfo(out vec4 ambient, out vec4 diffuse, out vec4 specular, out vec4 emission, out vec2 texCoord) { 2 | texCoord = gl_TexCoord[0].xy*texScale; 3 | ambient = gl_FrontMaterial.ambient; 4 | diffuse = gl_FrontMaterial.diffuse; 5 | specular = gl_FrontMaterial.specular; 6 | emission = gl_FrontMaterial.emission; 7 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/fragInfo.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | ambient: {index: 0, type: vec4} 4 | diffuse: {index: 1, type: vec4} 5 | specular: {index: 2, type: vec4} 6 | emission: {index: 3, type: vec4} 7 | texCoord: {index: 4, type: vec2} 8 | uniforms: 9 | float: 10 | - {name: texScale} 11 | source: /graph_shader/fragInfo.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/fragOut.frag: -------------------------------------------------------------------------------- 1 | void fragOut(in vec4 col) { 2 | gl_FragColor = col; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/fragOut.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | col: {index: 0, type: vec4} 4 | source: /graph_shader/fragOut.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/instanceIDARB.frag: -------------------------------------------------------------------------------- 1 | void instanceIDARB(out float id) { 2 | id = gl_InstanceIDARB; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/instanceIDARB.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | id: {index: 0, type: float} 4 | extensions: 5 | enabled: 6 | - GL_ARB_draw_instanced 7 | source: /graph_shader/instanceIDARB.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/int_to_float.frag: -------------------------------------------------------------------------------- 1 | void int_to_float(in int int_value, out float value) { 2 | value = float(int_value); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/int_to_float.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | int_value: {index: 0, type: int} 4 | out: 5 | value: {index: 1, type: float} 6 | source: /graph_shader/int_to_float.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/length_vec3.frag: -------------------------------------------------------------------------------- 1 | void length_vec3(in vec3 vec_a, out float out1) { 2 | out1 = length(vec_a); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/length_vec3.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec3} 4 | out: 5 | out1: {index: 1, type: float} 6 | source: /graph_shader/length_vec3.frag 7 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_float.frag: -------------------------------------------------------------------------------- 1 | void math_float(in float value_a, in float value_b, in float skalar, out float value) { 2 | value = (value_a + value_b)*skalar; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_float.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | value_a: {index: 0, type: float} 4 | value_b: {index: 1, type: float} 5 | skalar: {index: 2, type: float} 6 | out: 7 | value: {index: 3, type: float} 8 | source: /graph_shader/math_float.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_floor_div.frag: -------------------------------------------------------------------------------- 1 | void math_floor_div(in float value_a, in float value_b, out float value) { 2 | value = floor(value_a / value_b); 3 | } 4 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_floor_div.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | value_a: {index: 0, type: float} 4 | value_b: {index: 1, type: float} 5 | out: 6 | value: {index: 2, type: float} 7 | source: /graph_shader/math_floor_div.frag 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_mod.frag: -------------------------------------------------------------------------------- 1 | void math_mod(in float value_a, in float value_b, out float value) { 2 | value = mod(value_a , value_b); 3 | } 4 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_mod.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | value_a: {index: 0, type: float} 4 | value_b: {index: 1, type: float} 5 | out: 6 | value: {index: 2, type: float} 7 | source: /graph_shader/math_mod.frag 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_mult.frag: -------------------------------------------------------------------------------- 1 | void math_mult(in float value_a, in float value_b, in float skalar, out float value) { 2 | value = (value_a * value_b)*skalar; 3 | } 4 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_mult.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | value_a: {index: 0, type: float} 4 | value_b: {index: 1, type: float} 5 | skalar: {index: 2, type: float} 6 | out: 7 | value: {index: 3, type: float} 8 | source: /graph_shader/math_mult.frag 9 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_pow.frag: -------------------------------------------------------------------------------- 1 | void math_float(in float value_a, in float value_b, in float offset, in float scale, out float value) { 2 | value = offset + scale * pow(value_a, value_b); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_pow.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | value_a: {index: 0, type: float} 4 | value_b: {index: 1, type: float} 5 | offset: {index: 2, type: float} 6 | scale: {index: 3, type: float} 7 | out: 8 | value: {index: 4, type: float} 9 | source: /graph_shader/math_pow.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_rotate3d.frag: -------------------------------------------------------------------------------- 1 | void math_rotate3d(in vec4 v, in float alpha, in float beta, in float gamma, out vec4 o) { 2 | mat3 matrix; 3 | float sa = sin(-alpha); 4 | float sb = sin(-beta); 5 | float sg = sin(-gamma); 6 | float ca = cos(-alpha); 7 | float cb = cos(-beta); 8 | float cg = cos(-gamma); 9 | 10 | matrix[0][0] = cb*cg; 11 | matrix[0][1] = -cb*sg; 12 | matrix[0][2] = sb; 13 | //matrix[0][3] = 0; 14 | matrix[1][0] = sa*sb*cg+ca*sg; 15 | matrix[1][1] = -sa*sb*sg+ca*cg; 16 | matrix[1][2] = -sa*cb; 17 | //matrix[1][3] = 0; 18 | matrix[2][0] = -ca*sb*cg+sa*sg; 19 | matrix[2][1] = ca*sb*sg+sa*cg; 20 | matrix[2][2] = ca*cb; 21 | //matrix[2][3] = 0; 22 | //matrix[3][3] = 0; 23 | //matrix[3][3] = 0; 24 | //matrix[3][3] = 0; 25 | //matrix[3][3] = 1; 26 | 27 | o = vec4(matrix * v.xyz, v.w); 28 | } 29 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_rotate3d.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | v: {index: 0, type: vec4} 4 | alpha: {index: 1, type: float} 5 | beta: {index: 2, type: float} 6 | gamma: {index: 3, type: float} 7 | out: 8 | o: {index: 4, type: vec4} 9 | source: /graph_shader/math_rotate3d.frag 10 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_sin.frag: -------------------------------------------------------------------------------- 1 | void math_sin(in float value_a, out float output_) { 2 | output_ = sin(value_a); 3 | } 4 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_sin.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | value_a: {index: 0, type: float} 4 | out: 5 | output: {index: 1, type: float} 6 | source: /graph_shader/math_sin.frag 7 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_vec2.frag: -------------------------------------------------------------------------------- 1 | void math_vec2(in vec2 vec_a, in vec2 vec_b, in float skalar, out vec2 vector) { 2 | vector = (vec_a + vec_b)*skalar; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_vec2.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec2} 4 | vector_b: {index: 1, type: vec2} 5 | skalar: {index: 2, type: float} 6 | out: 7 | vector: {index: 3, type: vec2} 8 | source: /graph_shader/math_vec2.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_vec3.frag: -------------------------------------------------------------------------------- 1 | void math_vec3(in vec3 vec_a, in vec3 vec_b, in float skalar, out vec3 vector) { 2 | vector = (vec_a + vec_b)*skalar; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_vec3.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec3} 4 | vector_b: {index: 1, type: vec3} 5 | skalar: {index: 2, type: float} 6 | out: 7 | vector: {index: 3, type: vec3} 8 | source: /graph_shader/math_vec3.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_vec4.frag: -------------------------------------------------------------------------------- 1 | void math_vec4(in vec4 vec_a, in vec4 vec_b, in float skalar, out vec4 vector) { 2 | vector = (vec_a + vec_b)*skalar; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/math_vec4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec4} 4 | vector_b: {index: 1, type: vec4} 5 | skalar: {index: 2, type: float} 6 | out: 7 | vector: {index: 3, type: vec4} 8 | source: /graph_shader/math_vec4.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mix_vec4.frag: -------------------------------------------------------------------------------- 1 | void mix_vec4(in vec4 vec_a, in vec4 vec_b, in float fac, out vec4 vector) { 2 | fac = max(0.0, min(fac, 1.0)); 3 | vector = (1-fac)*vec_a + fac*vec_b; 4 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mix_vec4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec4} 4 | vector_b: {index: 1, type: vec4} 5 | fac: {index: 2, type: float} 6 | out: 7 | vector: {index: 3, type: vec4} 8 | source: /graph_shader/mix_vec4.frag 9 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mix_vec4_weighted.frag: -------------------------------------------------------------------------------- 1 | void mix_vec4_weighted(in vec4 vector_a, in vec4 vector_b, in float fac_a, in float fac_b, out vec4 vector) { 2 | 3 | vector = fac_a*vector_a + fac_b*vector_b; 4 | } 5 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mix_vec4_weighted.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec4} 4 | vector_b: {index: 1, type: vec4} 5 | fac_a: {index: 2, type: float} 6 | fac_b: {index: 3, type: float} 7 | out: 8 | vector: {index: 4, type: vec4} 9 | source: /graph_shader/mix_vec4_weighted.frag 10 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mult_vec3_mat4.vert: -------------------------------------------------------------------------------- 1 | void mult_vec3_mat4(in vec3 vector, in mat4 matrix, out vec3 result) { 2 | 3 | vec4 temp_vec = vec4(vector, 1.0); 4 | temp_vec = matrix*temp_vec; 5 | result = temp_vec.xy; 6 | 7 | } 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mult_vec3_mat4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector: {index: 0, type: vec3} 4 | matrix: {index: 1, type: mat4} 5 | out: 6 | vector: {index: 2, type: vec3} 7 | source: /graph_shader/mult_vec3_mat4.vert 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mult_vec4.frag: -------------------------------------------------------------------------------- 1 | void mult_vec4(in vec4 vector_a, in vec4 vector_b, in float fac_a, in float fac_b, out vec4 vector) { 2 | 3 | vec4 temp_vec_1; 4 | vec4 temp_vec_2; 5 | temp_vec_1 = (fac_a * vector_a); 6 | temp_vec_1[3] = vector_a[3]; 7 | temp_vec_2 = (fac_b * vector_b); 8 | temp_vec_2[3] = vector_b[3]; 9 | vector = temp_vec_1 * temp_vec_2; 10 | 11 | } 12 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mult_vec4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec4} 4 | vector_b: {index: 1, type: vec4} 5 | fac_a: {index: 2, type: float} 6 | fac_b: {index: 3, type: float} 7 | out: 8 | vector: {index: 4, type: vec4} 9 | source: /graph_shader/mult_vec4.frag 10 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mult_vec4_mat4.vert: -------------------------------------------------------------------------------- 1 | void mult_vec4_mat4(in vec4 vector, in mat4 matrix, out vec4 result) { 2 | mat4 m = matrix; 3 | /* for(int i=0; i<4; ++i) { */ 4 | /* for(int l=0; l<4; ++l) { */ 5 | /* if(m[i][l] < 0.0001) m[i][l] = 0; */ 6 | /* if(m[i][l] > 1.0001) m[i][l] = 1.0; */ 7 | /* } */ 8 | /* } */ 9 | result = m*vector; 10 | } 11 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/mult_vec4_mat4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector: {index: 0, type: vec4} 4 | matrix: {index: 1, type: mat4} 5 | out: 6 | vector: {index: 2, type: vec4} 7 | source: /graph_shader/mult_vec4_mat4.vert 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/noise_frag.frag: -------------------------------------------------------------------------------- 1 | void noise_frag(vec4 base, float scale, float intensity, out vec4 outcol) { 2 | outcol = base; 3 | if(useNoise == 1) { 4 | vec4 screenPos = (gl_ModelViewProjectionMatrix * modelVertex); 5 | screenPos /= screenPos.w; 6 | outcol.rg += intensity*(texture2D( NoiseMap, scale*screenPos.xy).zw-0.5); 7 | outcol.b += intensity*(texture2D( NoiseMap, scale*(screenPos.xy+vec2(0.5, 0.5))).z-0.5); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/noise_frag.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | base: {index: 0, type: vec4} 4 | scale: {index: 1, type: float} 5 | intensity: {index: 2, type: float} 6 | out: 7 | outcol: {index: 3, type: vec4} 8 | source: /graph_shader/noise_frag.frag 9 | minVersion: 120 10 | varyings: 11 | vec4: 12 | - {name: modelVertex} 13 | uniforms: 14 | int: 15 | - {name: useNoise} 16 | sampler2D: 17 | - {name: NoiseMap} 18 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/normalize_vec3.frag: -------------------------------------------------------------------------------- 1 | void normalize_vec3(in vec3 vec_a, out vec3 vector) { 2 | vector = normalize(vec_a); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/normalize_vec3.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec3} 4 | out: 5 | vector: {index: 1, type: vec3} 6 | source: /graph_shader/normalize_vec3.frag 7 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/normalize_vec4.frag: -------------------------------------------------------------------------------- 1 | void normalize_vec4(in vec4 vec_a, out vec4 vector) { 2 | vector = normalize(vec_a); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/normalize_vec4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vector_a: {index: 0, type: vec4} 4 | out: 5 | vector: {index: 1, type: vec4} 6 | source: /graph_shader/normalize_vec4.frag 7 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/normalmap_frag.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | nt: {index: 0, type: vec4} 4 | n: {index: 1 , type: vec3} 5 | out: 6 | n: {index: 2, type: vec3} 7 | source: /shader/normalmap.frag 8 | varyings: 9 | mat3: 10 | - {name: ttw} 11 | uniforms: 12 | float: 13 | - {name: bumpNorFac} 14 | sampler2D: 15 | - {name: normalMap} -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/normalmap_vert.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | n: {index: 0, type: vec3} 4 | source: /shader/normalmap.vert 5 | minVersion: 120 6 | varyings: 7 | mat3: 8 | - {name: ttw} 9 | attributes: 10 | vec4: 11 | - {name: vertexTangent} -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/phong.vert: -------------------------------------------------------------------------------- 1 | void phong_vert(in vec4 worldPos) { 2 | eyeVec = osg_ViewMatrixInverse[3].xyz-worldPos.xyz; 3 | for (int i=0; i p2) && (in1 < p3)) { 19 | 20 | x1 = max(in1, p2); 21 | x1 = min(x1, p3); 22 | fac = (x1-p2)/(p3-p2); 23 | out1 = (1-fac)*color_2 + fac*color_3; 24 | } 25 | 26 | if (in1 > p3) { 27 | 28 | x1 = max(in1, p3); 29 | x1 = min(x1, p4); 30 | fac = (x1-p3)/(p4-p3); 31 | out1 = (1-fac)*color_3 + fac*color_4; 32 | } 33 | 34 | } 35 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/ramp_color.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | in1: {index: 0, type: float} 4 | start: {index: 1, type: float} 5 | end: {index: 2, type: float} 6 | color_1: {index: 3, type: vec4} 7 | color_2: {index: 4, type: vec4} 8 | color_3: {index: 5, type: vec4} 9 | color_4: {index: 6, type: vec4} 10 | out: 11 | out1: {index: 7, type: vec4} 12 | source: /graph_shader/ramp_color.frag 13 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/ramp_varying.frag: -------------------------------------------------------------------------------- 1 | void ramp_varying(in float in1, in float point1, in float point2, in float point3, in vec4 color_1, in vec4 color_2, in vec4 color_3, out vec4 out1) { 2 | 3 | float x1; 4 | float fac; 5 | 6 | if (in1 < point2) { 7 | 8 | x1 = max(in1, point1); 9 | x1 = min(x1, point2); 10 | fac = (x1-point1)/(point2-point1); 11 | out1 = (1-fac)*color_1 + fac*color_2; 12 | } 13 | 14 | if (in1 > point2) { 15 | 16 | x1 = max(in1, point2); 17 | x1 = min(x1, point3); 18 | fac = (x1-point2)/(point3-point2); 19 | out1 = (1-fac)*color_2 + fac*color_3; 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/ramp_varying.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | in1: {index: 0, type: float} 4 | point1: {index: 1, type: float} 5 | point2: {index: 2, type: float} 6 | point3: {index: 3, type: float} 7 | color_1: {index: 4, type: vec4} 8 | color_2: {index: 5, type: vec4} 9 | color_3: {index: 6, type: vec4} 10 | out: 11 | out1: {index: 7, type: vec4} 12 | source: /graph_shader/ramp_varying.frag 13 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/read_floats.vert: -------------------------------------------------------------------------------- 1 | void read_floats(sampler2D texture, float index, 2 | vec2 resolution, float skip, 3 | float offset, out vec2 values) { 4 | float p = floor(index+0.5)*skip+offset; 5 | vec2 tex = vec2(floor(mod(p, resolution.x)), floor(p/resolution.x)); 6 | float sx = 1./resolution.x; 7 | float sy = 1./resolution.y; 8 | tex.x *= sx; 9 | tex.y *= sy; 10 | tex += vec2(0.5*sx, 0.5*sy); 11 | vec4 color = texture2D(texture, tex); 12 | float gScale = 0.003891045; 13 | float rScale = 1-gScale; 14 | values = vec2(color.r*rScale+color.g*gScale, color.b*rScale+color.a*gScale); 15 | } 16 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/read_floats.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | texture: {index: 0, type: sampler2D} 4 | index: {index: 1, type: float} 5 | resolution: {index: 2, type: vec2} 6 | skip: {index: 3, type: float} 7 | offset: {index: 4, type: float} 8 | out: 9 | values: {index: 5, type: vec2} 10 | source: /graph_shader/read_floats.vert 11 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/read_matrix4x4.vert: -------------------------------------------------------------------------------- 1 | void read_matrix4x4_get_coords(float index, vec2 r, float sx, float sy, out vec2 tex) { 2 | tex = vec2(floor(mod(floor(index+0.5), r.x)), floor(floor(index+0.5)/r.x)); 3 | tex.x *= sx; 4 | tex.y *= sy; 5 | tex += vec2(0.5*sx, 0.5*sy); 6 | } 7 | 8 | void read_matrix4x4(sampler2D texture, float index, 9 | vec2 resolution, float skip, 10 | float offset, out mat4 matrix) { 11 | float sx = 1./resolution.x; 12 | float sy = 1./resolution.y; 13 | float p; 14 | vec4 color; 15 | float gScale = 0.003891045; 16 | float rScale = 1-gScale; 17 | vec2 v, tex; 18 | int c, r; 19 | if(index < 0.0) index = 0.0; 20 | for(c=0; c<4; ++c) { 21 | for(r=0; r<2; ++r) { 22 | p = floor(index+0.5)*skip+offset+(c*2+r); 23 | read_matrix4x4_get_coords(p, resolution, sx, sy, tex); 24 | color = texture2D(texture, tex); 25 | v = vec2(color.r*rScale+color.g*gScale, color.b*rScale+color.a*gScale); 26 | v -= vec2(0.5); 27 | v *= 4; 28 | matrix[c][r*2] = v.x; 29 | matrix[c][r*2+1] = v.y; 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/read_matrix4x4.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | texture: {index: 0, type: sampler2D} 4 | index: {index: 1, type: float} 5 | resolution: {index: 2, type: vec2} 6 | skip: {index: 3, type: float} 7 | offset: {index: 4, type: float} 8 | out: 9 | matrix: {index: 5, type: mat4} 10 | source: /graph_shader/read_matrix4x4.vert 11 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/reflectNode.frag: -------------------------------------------------------------------------------- 1 | void reflectNode(in vec3 vec_a, in vec3 normal, out vec3 vec_out) { 2 | vec_out = reflect(vec_a, normal); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/reflectNode.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | vec_a: {index: 0, type: vec3} 4 | normal: {index: 1, type: vec3} 5 | out: 6 | vec_out: {index: 2, type: vec3} 7 | source: /graph_shader/reflectNode.frag 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/rnd_from_input.frag: -------------------------------------------------------------------------------- 1 | float rnd_from_input_(float x, float y) { 2 | return fract((1+sin(dot(vec2(x,y) ,vec2(12.9898,78.233)))) * 43758.5453); 3 | } 4 | 5 | void rnd_from_input(float r, out vec4 v_rnd) { 6 | v_rnd = vec4(rnd_from_input_(r*10.0, r*8), 7 | rnd_from_input_(r*8, r*16), 8 | rnd_from_input_(r*4, r*4), 9 | rnd_from_input_(r*23, r*71))*2.0-1.0; //Priority: -1 10 | } 11 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/rnd_from_input.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | r : {index: 0, type: float} 4 | out: 5 | v_rnd: {index: 1, type: vec4} 6 | source: /graph_shader/rnd_from_input.frag 7 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/rnd_instance_offset.frag: -------------------------------------------------------------------------------- 1 | float rnd_instance(float x, float y) { 2 | return fract(sin(dot(vec2(x,y) ,vec2(12.9898,78.233))) * 43758.5453); 3 | } 4 | 5 | void rnd_instance_offset(out vec4 offset) { 6 | offset = vec4(rnd(float(gl_InstanceIDARB)*0.1, float(gl_InstanceIDARB) *0.2), rnd(float(gl_InstanceIDARB)*0.2, float(gl_InstanceIDARB)*0.3), rnd(float(gl_InstanceIDARB)*0.1, float(gl_InstanceIDARB)*0.9), rnd(float(gl_InstanceIDARB)*0.7, float(gl_InstanceIDARB)*0.7)); //Priority: -1 7 | } 8 | 9 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/rnd_instance_offset.yaml: -------------------------------------------------------------------------------- 1 | extensions: 2 | enabled: [GL_ARB_draw_instanced] 3 | params: 4 | out: 5 | offset: {index: 0, type: vec4} 6 | source: /graph_shader/rnd_instance_offset.frag 7 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/rnd_instance_offset2.frag: -------------------------------------------------------------------------------- 1 | float rnd_instance2(float x, float y) { 2 | return fract(sin(dot(vec2(x,y) ,vec2(12.9898,78.233))) * 43758.5453); 3 | } 4 | 5 | void rnd_instance_offset2(vec4 p, out vec4 v_rnd) { 6 | v_rnd = vec4(normalize(vec2(p.x*0.1+0.5*rnd(float(gl_InstanceIDARB)*0.16, float(gl_InstanceIDARB)*0.8), p*0.1+0.5*rnd(float(gl_InstanceIDARB)*0.8, float(gl_InstanceIDARB)*0.16))), rnd(float(gl_InstanceIDARB)*0.4, float(gl_InstanceIDARB)*0.4), rnd(float(gl_InstanceIDARB)*0.23, float(gl_InstanceIDARB)*0.71))-0.5; //Priority: -1 7 | } 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/rnd_instance_offset2.yaml: -------------------------------------------------------------------------------- 1 | extensions: 2 | enabled: [GL_ARB_draw_instanced] 3 | params: 4 | in: 5 | p : {index: 0, type: vec4} 6 | out: 7 | v_rnd: {index: 1, type: vec4} 8 | source: /graph_shader/rnd_instance_offset2.frag 9 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/rnd_noise.frag: -------------------------------------------------------------------------------- 1 | #ifdef GL_ES 2 | precision mediump float; 3 | #endif 4 | 5 | uniform vec2 u_resolution; 6 | uniform vec2 u_mouse; 7 | uniform float u_time; 8 | 9 | float random (vec2 st, float rnd_num) { 10 | return fract(sin(dot(st.xy, 11 | vec2(12.9898,78.233)))* 12 | rnd_num); 13 | } 14 | 15 | void main() { 16 | vec2 st = gl_FragCoord.xy/u_resolution.xy; 17 | 18 | float rnd = random( st ); 19 | 20 | gl_FragColor = vec4(vec3(rnd),1.0); 21 | } 22 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/rnd_noise.yaml: -------------------------------------------------------------------------------- 1 | extensions: 2 | enabled: [GL_ARB_draw_instanced] 3 | params: 4 | in: 5 | rnd_num : {index: 0, type: float} 6 | out: 7 | v_rnd: {index: 1, type: vec4} 8 | source: /graph_shader/rnd_instance_offset2.frag 9 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/sample2D.frag: -------------------------------------------------------------------------------- 1 | void sample2D(in vec2 texCoord, in sampler2D texture, out vec4 color) { 2 | color = texture2D(texture, texCoord); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/sample2D.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | texCoord: {index: 0, type: vec2} 4 | texture: {index: 1, type: sampler2D} 5 | out: 6 | color: {index: 2, type: vec4} 7 | source: /graph_shader/sample2D.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/sample2DArray.frag: -------------------------------------------------------------------------------- 1 | void sample2DArray(in vec2 texCoord, in sampler2D texture, in float layer, out vec4 color) { 2 | color = texture2DArray(texture, vec3(texCoord, layer)); 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/sample2DArray.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | texCoord: {index: 0, type: vec2} 4 | texture: {index: 1, type: sampler2D} 5 | layer: {index: 2, type: float} 6 | out: 7 | color: {index: 3, type: vec4} 8 | source: /graph_shader/sample2DArray.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/sample2D_adv.frag: -------------------------------------------------------------------------------- 1 | void sample2D_adv(in vec2 texCoord, in sampler2D texture, in float tex_id, out vec4 color) { 2 | 3 | texCoord.x = 0.01+(mod(texCoord.x , 1.0) * 0.48); 4 | texCoord.y = 0.01+(mod(texCoord.y , 1.0) * 0.48); 5 | if (tex_id == 2) { 6 | texCoord.x = texCoord.x + 0.5; 7 | } 8 | if (tex_id == 3) { 9 | texCoord.y = texCoord.y + 0.5; 10 | } 11 | if (tex_id == 4) { 12 | texCoord.x = texCoord.x + 0.5; 13 | texCoord.y = texCoord.y + 0.5; 14 | } 15 | 16 | color = texture2D(texture, texCoord); 17 | 18 | } 19 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/sample2D_adv.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | texCoord: {index: 0, type: vec2} 4 | texture: {index: 1, type: sampler2D} 5 | tex_id: {index: 2, type: float} 6 | out: 7 | color: {index: 3, type: vec4} 8 | source: /graph_shader/sample2D_adv.frag 9 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/sampleCubeMap.frag: -------------------------------------------------------------------------------- 1 | void sampleCubeMap(in vec3 texDir, in samplerCube texture, out vec4 color) { 2 | vec3 tex = normalize(vec3(texDir.x, -texDir.z, texDir.y)); 3 | color = textureCube(texture, tex); 4 | } 5 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/sampleCubeMap.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | texDir: {index: 0, type: vec3} 4 | texture: {index: 1, type: samplerCube} 5 | out: 6 | color: {index: 2, type: vec4} 7 | source: /graph_shader/sampleCubeMap.frag 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/shadow.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | shadow: {index: 0, type: float} 4 | source: abstract 5 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/shadow_none.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | shadow: {index: 0, type: float} 4 | source: /shader/shadow_none.frag 5 | minVersion: 120 6 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/shadow_none_vert.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | viewPos: {index: 0, type: vec4} 4 | source: /shader/shadow_none.vert 5 | minVersion: 120 6 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/shadow_pssm.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | shadow: {index: 0, type: float} 4 | source: /shader/shadow_pssm.frag 5 | minVersion: 120 6 | uniforms: 7 | vec2: 8 | - {name: osgShadow_ambientBias} 9 | int: 10 | - {name: useShadow} 11 | - {name: shadowSamples} 12 | float: 13 | - {name: invShadowSamples} 14 | - {name: invShadowTextureSize} 15 | - {name: zShadow0} 16 | - {name: zShadow1} 17 | - {name: zShadow2} 18 | sampler2D: 19 | - {name: NoiseMap} 20 | sampler2DShadow: 21 | # - {name: osgShadow_shadowTexture} 22 | - {name: shadowTexture0} 23 | - {name: shadowTexture1} 24 | - {name: shadowTexture2} 25 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/shadow_pssm_vert.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | viewPos: {index: 0, type: vec4} 4 | source: /shader/shadow_pssm.vert 5 | minVersion: 120 6 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/shadow_sm.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | shadow: {index: 0, type: float} 4 | source: /shader/shadow_sm.frag 5 | minVersion: 120 6 | uniforms: 7 | vec2: 8 | - {name: osgShadow_ambientBias} 9 | int: 10 | - {name: useShadow} 11 | - {name: shadowSamples} 12 | float: 13 | - {name: invShadowSamples} 14 | - {name: invShadowTextureSize} 15 | sampler2D: 16 | - {name: NoiseMap} 17 | sampler2DShadow: 18 | - {name: osgShadow_shadowTexture} 19 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/shadow_sm_vert.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | viewPos: {index: 0, type: vec4} 4 | source: /shader/shadow_sm.vert 5 | minVersion: 120 6 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/shadow_vert.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | viewPos: {index: 0, type: vec4} 4 | source: abstract 5 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/specular_frag.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | base: {index: 0, type: vec4} 4 | normal: {index: 1, type: vec3} 5 | out: 6 | outcol: {index: 2, type: vec4} 7 | source: /graph_shader/specular_frag.frag 8 | minVersion: 120 9 | varyings: 10 | vec3: 11 | - {name: eyeVec} 12 | vec3[]: 13 | - {name: lightVec, arraySize: numLights} 14 | - {name: spotDir, arraySize: numLights} 15 | vec4[]: 16 | - {name: specular, arraySize: numLights} 17 | uniforms: 18 | int: 19 | - {name: numLights} 20 | int[]: 21 | - {name: lightIsSpot, arraySize: numLights} 22 | - {name: lightIsSet, arraySize: numLights} 23 | - {name: lightIsDirectional, arraySize: numLights} 24 | float: 25 | - {name: brightness} 26 | float[]: 27 | - {name: lightCosCutoff, arraySize: numLights} 28 | - {name: lightSpotExponent, arraySize: numLights} 29 | - {name: lightConstantAtt, arraySize: numLights} 30 | - {name: lightLinearAtt, arraySize: numLights} 31 | - {name: lightQuadraticAtt, arraySize: numLights} 32 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/terrain_height.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | xy: {index: 0, type: vec2} 4 | out: 5 | height: {index: 1, type: float} 6 | uniforms: 7 | float: 8 | - {name: texScale} 9 | - {name: terrainScaleZ} 10 | int: 11 | - {name: terrainDim} 12 | sampler2D: 13 | - {name: terrainMap} 14 | source: /graph_shader/terrain_height.vert 15 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/terrain_map.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | vModelPos: {index: 0, type: vec4} 4 | uniforms: 5 | float: 6 | - {name: texScale} 7 | - {name: terrainScaleZ} 8 | int: 9 | - {name: terrainDim} 10 | sampler2D: 11 | - {name: terrainMap} 12 | source: /graph_shader/terrain_map.vert 13 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/terrain_map_scaled.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | vModelPos: {index: 0, type: vec4} 4 | vModelPosScaled: {index: 1, type: vec4} 5 | uniforms: 6 | float: 7 | - {name: texScale} 8 | - {name: terrainScaleZ} 9 | int: 10 | - {name: terrainDim} 11 | sampler2D: 12 | - {name: terrainMap} 13 | source: /graph_shader/terrain_map_scaled.vert 14 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vec4_mat4_math.frag: -------------------------------------------------------------------------------- 1 | void vec4_mat4_math(in mat4 matrix, in vec4 vec, in float skalar, out vec4 vector) { 2 | vector = (matrix * vec)*skalar; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vec4_mat4_math.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | matrix: {index: 0, type: mat4} 4 | vector: {index: 1, type: vec4} 5 | skalar: {index: 2, type: float} 6 | out: 7 | vector: {index: 3, type: vec4} 8 | source: /graph_shader/vec4_mat4_math.frag -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vec4_xy.frag: -------------------------------------------------------------------------------- 1 | void vec4_xy(in vec4 v_in, out vec2 v_out) { 2 | v_out = v_in.xy; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vec4_xy.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | v_in: {index: 0, type: vec4} 4 | out: 5 | v_out: {index: 1, type: vec2} 6 | 7 | source: /graph_shader/vec4_xy.frag 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vec4_xyz.frag: -------------------------------------------------------------------------------- 1 | void vec4_xyz(in vec4 v_in, out vec3 v_out) { 2 | v_out = v_in.xyz; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vec4_xyz.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | v_in: {index: 0, type: vec4} 4 | out: 5 | v_out: {index: 1, type: vec3} 6 | 7 | source: /graph_shader/vec4_xyz.frag 8 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vertexInfo.vert: -------------------------------------------------------------------------------- 1 | void vertexInfo(out vec3 normal) { 2 | normal = normalize(osg_ViewMatrixInverse * vec4(gl_NormalMatrix * gl_Normal, 0.0)).xyz; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vertexInfo.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | out: 3 | normal: {index: 0, type: vec3} 4 | source: /graph_shader/vertexInfo.vert -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vertexOut.vert: -------------------------------------------------------------------------------- 1 | void vertexOut(in vec4 viewPos, in vec4 modelPos, in vec3 normalV) { 2 | gl_Position = gl_ModelViewProjectionMatrix * modelPos; 3 | gl_ClipVertex = viewPos; 4 | gl_TexCoord[0].xy = gl_MultiTexCoord0.xy; 5 | normalVarying = normalV; 6 | modelVertex = modelPos; 7 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/vertexOut.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | viewPos: {index: 0, type: vec4} 4 | modelPos: {index: 1, type: vec4} 5 | normalVarying: {index: 2, type: vec3} 6 | source: /graph_shader/vertexOut.vert 7 | varyings: 8 | vec3: 9 | - {name: normalVarying} 10 | vec4: 11 | - {name: modelVertex} -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/viewPos.vert: -------------------------------------------------------------------------------- 1 | void viewPos(in vec4 modelPos, out vec4 viewPos) { 2 | viewPos = gl_ModelViewMatrix * modelPos; 3 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/viewPos.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | modelPos: {index: 0, type: vec4} 4 | out: 5 | viewPos: {index: 1, type: vec4} 6 | source: /graph_shader/viewPos.vert -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/wave2d.frag: -------------------------------------------------------------------------------- 1 | void wave2d(float sin_, float cos_, vec4 s, out vec4 v) { 2 | v = vec4(s.z*(sin_*s.x + cos_*s.y), s.z*(sin_*s.y + cos_*s.x), 0, 0); 3 | } 4 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/wave2d.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | sin: {index: 0, type: float} 4 | cos: {index: 1, type: float} 5 | s: {index: 2, type: vec4} 6 | out: 7 | v: {index: 3, type: vec4} 8 | uniforms: 9 | float: 10 | - {name: sinUniform} 11 | - {name: cosUniform} 12 | source: /graph_shader/wave2d.frag 13 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/worldPos.vert: -------------------------------------------------------------------------------- 1 | void worldPos(in vec4 viewPos, out vec4 worldPos) { 2 | worldPos = osg_ViewMatrixInverse * viewPos; 3 | positionVarying = worldPos; 4 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/graph_shader/worldPos.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | in: 3 | viewPos: {index: 0, type: vec4} 4 | out: 5 | worldPos: {index: 1, type: vec4} 6 | source: /graph_shader/worldPos.vert 7 | varyings: 8 | vec4: 9 | - {name: positionVarying} -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/bumpmapping_frag.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | - nt 3 | - n 4 | - n 5 | varyings: 6 | mat3: 7 | - {name: ttw} 8 | uniforms: 9 | float: 10 | - {name: bumpNorFac} 11 | sampler2D: 12 | - {name: normalMap} 13 | mainVarDecs: 14 | vec4: 15 | - {name: nt} 16 | mainVars: 17 | vec4: 18 | - name: nt 19 | value: "texture2D( normalMap, texCoord )" 20 | priority: 0 21 | source: /shader/normalmap.frag 22 | name: normalmap_frag 23 | priority: 6 24 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/bumpmapping_vert.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | - n.xyz 3 | varyings: 4 | mat3: 5 | - {name: ttw} 6 | attributes: 7 | vec4: 8 | - {name: vertexTangent} 9 | source: /shader/normalmap.vert 10 | name: normalmap_vert 11 | priority: 2 12 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/envMap_frag.yml: -------------------------------------------------------------------------------- 1 | params: 2 | - col 3 | - nt 4 | uniforms: 5 | float: 6 | - {name: bumpNorFac} 7 | vec3: 8 | - {name: envMapScale} 9 | sampler2D: 10 | - {name: envMapD} 11 | - {name: envMapR} 12 | - {name: envMapG} 13 | - {name: envMapB} 14 | - {name: normalMapR} 15 | - {name: normalMapG} 16 | - {name: normalMapB} 17 | - {name: environmentMap} 18 | mainVarDecs: 19 | vec4: 20 | - name: nt 21 | source: /shader/envmap.frag 22 | name: envmap_frag 23 | priority: 2 24 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/envMap_vert.yml: -------------------------------------------------------------------------------- 1 | params: 2 | - specularCol 3 | uniforms: 4 | float: 5 | - {name: texScale} 6 | vec3: 7 | - {name: envMapSpecular} 8 | sampler2D: 9 | - {name: environmentMap} 10 | source: /shader/envmap.vert 11 | name: envmap_vert 12 | priority: 1 13 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/envmap.frag: -------------------------------------------------------------------------------- 1 | void envmap_frag(out vec4 col, out vec4 nt) { 2 | vec2 texCoord; 3 | vec4 rcol; 4 | vec4 gcol; 5 | vec4 bcol; 6 | vec4 acol; 7 | vec4 rnt; 8 | vec4 gnt; 9 | vec4 bnt; 10 | vec4 ant; 11 | vec4 globalDiffuse; 12 | vec4 scale; 13 | 14 | texCoord = positionVarying.xy*texScale+vec2(0.5, 0.5); 15 | globalDiffuse = texture2D(envMapD, texCoord); 16 | bcol = texture2D(envMapB, texCoord.xy*envMapScale.b); 17 | rcol = texture2D(envMapR, texCoord.xy*envMapScale.r); 18 | gcol = texture2D(envMapG, texCoord.xy*envMapScale.g); 19 | acol = texture2D(envMapA, texCoord.xy*envMapScale.a); 20 | bnt = texture2D(normalMapB, texCoord.xy*envMapScale.b); 21 | rnt = texture2D(normalMapR, texCoord.xy*envMapScale.r); 22 | gnt = texture2D(normalMapG, texCoord.xy*envMapScale.g); 23 | ant = texture2D(normalMapA, texCoord.xy*envMapScale.a); 24 | scale = texture2D(environmentMap, texCoord); 25 | 26 | col = vec4(0.7*(scale.r*rcol.rgb+scale.g*gcol.rgb+scale.b*bcol.rgb+scale.a*acol.rgb) 27 | +0.3*globalDiffuse.rgb, 1.0); 28 | nt = vec4(scale.r*rnt.rgb+scale.g*gnt.rgb+scale.b*bnt.rgb+scale.a*ant.rgb, 1.0); 29 | } -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/envmap.vert: -------------------------------------------------------------------------------- 1 | void envmap_vert(out vec4 specularCol) { 2 | vec2 texCoord = gl_MultiTexCoord0.xy*texScale; 3 | vec4 scale = texture2D(environmentMap, texCoord); 4 | float rcol = scale.r*envMapSpecular.r; 5 | float gcol = scale.g*envMapSpecular.g; 6 | float bcol = scale.b*envMapSpecular.b; 7 | float acol = scale.a*envMapSpecular.a; 8 | 9 | specularCol = vec4(gl_FrontMaterial.specular.rgb*rcol+gl_FrontMaterial.specular.rgb*gcol+gl_FrontMaterial.specular.rgb*bcol+gl_FrontMaterial.specular.rgb*acol, 1); 10 | } 11 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/normalmap.frag: -------------------------------------------------------------------------------- 1 | /** 2 | * this method returns a per fragment normal from a normal map. 3 | * the normal exists in tangent space. 4 | **/ 5 | 6 | void normalmap_frag(vec4 texel, vec3 n, out vec3 normal) { 7 | normal = n + (normalize(ttw*(texel.xyz * 2.0 - 1.0)) - n)*bumpNorFac; 8 | normal = normalize(normal); 9 | } 10 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/normalmap.vert: -------------------------------------------------------------------------------- 1 | /** 2 | * This method calculates a matrix to transfrom the tangentspace to worldspace. 3 | * 4 | * the normal map must contain tangents in tangent space, this value is used 5 | * directly in the fragment shader. the varyings are transformed because 6 | * the vectors must be in the same space for the light calculation to work. 7 | * the normal in the fragment sahder can also be transformed to eyespace instead of this, 8 | * but this would need more calculations, then doing it in the vertex shader. 9 | * @param n: the normal attribute at the processed vertex in eye space. 10 | **/ 11 | 12 | void normalmap_vert(vec3 n) { 13 | // get the tangent in world space (multiplication by gl_NormalMatrix 14 | // transforms to eye space) 15 | // the tangent should point in positive u direction on the uv plane in the tangent space. 16 | vec3 t = normalize( (osg_ViewMatrixInverse*vec4(gl_NormalMatrix * vertexTangent.xyz, 0.0)).xyz ); 17 | // calculate the binormal, cross makes sure tbn matrix is orthogonal 18 | // multiplicated by handeness. 19 | vec3 b = cross(n, t); 20 | ttw = mat3(t, b, n); 21 | } 22 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/plight.vert: -------------------------------------------------------------------------------- 1 | float rnd(float x, float y) { 2 | return fract(sin(dot(vec2(x,y) ,vec2(12.9898,78.233))) * 43758.5453); 3 | } 4 | 5 | void pixellight_vert(vec4 v, vec4 eye, vec4 scol) { 6 | // save the vertex to eye vector in world space 7 | eyeVec = osg_ViewMatrixInverse[3].xyz-v.xyz; 8 | for(int i=0; i 0.5) shadow = 1.0; 30 | //shadow *= shadow*shadow* osgShadow_ambientBias.y; 31 | //shadow *= osgShadow_ambientBias.y; 32 | //shadow += osgShadow_ambientBias.x; 33 | // } else { 34 | // shadow = 1.0f; 35 | // } 36 | } 37 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/shadow_sm.vert: -------------------------------------------------------------------------------- 1 | void shadow_sm_vert(vec4 eye) { 2 | // generate coords for shadow mapping 3 | 4 | gl_TexCoord[2].s = dot( eye, gl_EyePlaneS[2] ); 5 | gl_TexCoord[2].t = dot( eye, gl_EyePlaneT[2] ); 6 | gl_TexCoord[2].p = dot( eye, gl_EyePlaneR[2] ); 7 | gl_TexCoord[2].q = dot( eye, gl_EyePlaneQ[2] ); 8 | } 9 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/shadow_sm.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | - shadow 3 | uniforms: 4 | vec2: 5 | - {name: osgShadow_ambientBias} 6 | int: 7 | - {name: useShadow} 8 | - {name: shadowSamples} 9 | float: 10 | - {name: shadowScale} 11 | - {name: invShadowSamples} 12 | - {name: invShadowTextureSize} 13 | sampler2D: 14 | - {name: NoiseMap} 15 | sampler2DShadow: 16 | - {name: osgShadow_shadowTexture} 17 | mainVarDecs: 18 | vec4: 19 | - {name: shadow} 20 | snippets: 21 | - source: /shader/test.snippet 22 | priority: -1 23 | source: /shader/shadow_sm.frag 24 | priority: 10 25 | name: shadow_sm 26 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/shadow_sm_vert.yaml: -------------------------------------------------------------------------------- 1 | params: 2 | - vViewPos 3 | source: /shader/shadow_sm.vert 4 | priority: 10 5 | name: shadow_sm_vert 6 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/terrainMap_vert.yml: -------------------------------------------------------------------------------- 1 | params: 2 | - nt 3 | - vModelPos 4 | 5 | varyings: 6 | mat3: 7 | - {name: ttw} 8 | 9 | uniforms: 10 | float: 11 | - {name: texScale} 12 | - {name: terrainScaleZ} 13 | int: 14 | - {name: terrainDim} 15 | sampler2D: 16 | - {name: terrainMap} 17 | - {name: normalMap} 18 | 19 | mainVars: 20 | vec3: 21 | - name: nt 22 | value: vec3(0) 23 | vec4: 24 | - name: n 25 | value: vec4(nt, 0) 26 | priority: 2 27 | 28 | source: /shader/terrainMap.vert 29 | name: terrain_map 30 | priority: -119 31 | -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/resources/shader/test.snippet: -------------------------------------------------------------------------------- 1 | /* 2 | * This is a multiline test snippet to insert into the plight vert.yaml 3 | * Please remove this before deploying to production env! 4 | */ -------------------------------------------------------------------------------- /common/graphics/osg_material_manager/src/tsort/tsort.h: -------------------------------------------------------------------------------- 1 | /* tsort - topological sort. 2 | Copyright (C) 1998-2013 Free Software Foundation, Inc. 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU General Public License as published by 6 | the Free Software Foundation, either version 3 of the License, or 7 | (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU General Public License for more details. 13 | 14 | You should have received a copy of the GNU General Public License 15 | along with this program. If not, see . */ 16 | 17 | /* Written by Mark Kettenis . */ 18 | 19 | /* The topological sort is done according to Algorithm T (Topological 20 | sort) in Donald E. Knuth, The Art of Computer Programming, Volume 21 | 1/Fundamental Algorithms, page 262. */ 22 | 23 | void add_relation(unsigned long id1, unsigned long id2); 24 | int tsort (void); 25 | unsigned long* get_sorted_ids(void); 26 | -------------------------------------------------------------------------------- /common/graphics/osg_plot/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Plot implementation to create 2d opengl (OSG) plots. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | needs_opt 9 | 10 | -------------------------------------------------------------------------------- /common/graphics/osg_plot/osg_plot.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/graphics/osg_points/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Malte Langosz/malte.langosz@dfki.de 6 | 7 | needs_opt 8 | 9 | -------------------------------------------------------------------------------- /common/graphics/osg_points/osg_points.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/graphics/osg_points/src/PointsFactory.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016, DFKI GmbH Robotics Innovation Center 3 | * 4 | * This file is part of the MARS simulation framework. 5 | * 6 | * MARS is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License 8 | * as published by the Free Software Foundation, either version 3 9 | * of the License, or (at your option) any later version. 10 | * 11 | * MARS is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with MARS. If not, see . 18 | * 19 | */ 20 | 21 | /** 22 | * \file PointsFactory.cpp 23 | * \author Malte (malte.langosz@dfki.de) 24 | * \brief A 25 | * 26 | * Version 0.1 27 | */ 28 | 29 | #include "PointsFactory.hpp" 30 | #include "PointsP.hpp" 31 | 32 | namespace osg_points { 33 | 34 | PointsFactory::PointsFactory() { 35 | } 36 | 37 | PointsFactory::~PointsFactory(void) { 38 | } 39 | 40 | Points* PointsFactory::createPoints(void) { 41 | PointsP *points = new PointsP(); 42 | return points; 43 | } 44 | 45 | } // end of namespace: osg_points 46 | -------------------------------------------------------------------------------- /common/graphics/osg_points/src/PointsFactory.hpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2016, DFKI GmbH Robotics Innovation Center 3 | * 4 | * This file is part of the MARS simulation framework. 5 | * 6 | * MARS is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License 8 | * as published by the Free Software Foundation, either version 3 9 | * of the License, or (at your option) any later version. 10 | * 11 | * MARS is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with MARS. If not, see . 18 | * 19 | */ 20 | 21 | /** 22 | * \file PointsFactory.h 23 | * \author Malte Langosz 24 | * \brief 25 | **/ 26 | 27 | #ifndef OSG_POINTS_FACTORY_H 28 | #define OSG_POINTS_FACTORY_H 29 | 30 | #include "Points.hpp" 31 | 32 | namespace osg_points { 33 | 34 | class PointsP; 35 | 36 | class PointsFactory { 37 | 38 | public: 39 | PointsFactory(); 40 | ~PointsFactory(); 41 | 42 | Points* createPoints(void); 43 | 44 | }; 45 | 46 | } // end of namespace: osg_points 47 | 48 | #endif // OSG_POINTS_FACTORY_H 49 | -------------------------------------------------------------------------------- /common/graphics/osg_terrain/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Malte Langosz/malte.langosz@dfki.de 5 | 6 | 7 | 8 | 9 | 10 | needs_opt 11 | 12 | -------------------------------------------------------------------------------- /common/graphics/osg_terrain/osg_terrain.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/graphics/osg_text/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Text implementation to create 2d opengl (OSG) text with border and background. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | needs_opt 8 | 9 | -------------------------------------------------------------------------------- /common/graphics/osg_text/osg_text.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/graphics/osg_text_factory/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | This lib wraps osg_text to create 3D text without osg dependency in MARS. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | needs_opt 9 | 10 | -------------------------------------------------------------------------------- /common/graphics/osg_text_factory/osg_text_factory.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/gui/cfg_manager_gui/cfg_manager_gui.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: lib_manager cfg_manager main_gui 10 | Libs: -L${libdir} -l@PROJECT_NAME@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /common/gui/cfg_manager_gui/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The library provides a propertybrowser widget to set all registered parameter of the cfg_manager lib. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | needs_opt 11 | 12 | -------------------------------------------------------------------------------- /common/gui/cfg_manager_gui/resources/images/preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/cfg_manager_gui/resources/images/preferences.png -------------------------------------------------------------------------------- /common/gui/cfg_manager_gui/src/CfgWidget.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/cfg_manager_gui/src/CfgWidget.h -------------------------------------------------------------------------------- /common/gui/cfg_manager_gui/src/MainCfgGui.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/cfg_manager_gui/src/MainCfgGui.cpp -------------------------------------------------------------------------------- /common/gui/cfg_manager_gui/src/MainCfgGui.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/cfg_manager_gui/src/MainCfgGui.h -------------------------------------------------------------------------------- /common/gui/config_map_gui/config_map_gui.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: lib_manager cfg_manager main_gui 10 | Libs: -L${libdir} -l@PROJECT_NAME@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /common/gui/config_map_gui/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The library provides a propertybrowser widget to set all registered data broker elements. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | needs_opt 13 | 14 | -------------------------------------------------------------------------------- /common/gui/data_broker_gui/data_broker_gui.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: lib_manager cfg_manager main_gui data_broker 10 | Libs: -L${libdir} -l@PROJECT_NAME@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /common/gui/data_broker_gui/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The library provides a propertybrowser widget to set all registered data broker elements. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | needs_opt 11 | 12 | -------------------------------------------------------------------------------- /common/gui/data_broker_gui/resources/images/data_broker_connection_symbol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/data_broker_gui/resources/images/data_broker_connection_symbol.png -------------------------------------------------------------------------------- /common/gui/data_broker_gui/resources/images/data_broker_symbol.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/data_broker_gui/resources/images/data_broker_symbol.png -------------------------------------------------------------------------------- /common/gui/data_broker_gui/src/DataConnWidget.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/data_broker_gui/src/DataConnWidget.h -------------------------------------------------------------------------------- /common/gui/data_broker_plotter/data_broker_plotter.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/gui/data_broker_plotter/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Plotting implementation for the data broker 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | needs_opt 13 | 14 | -------------------------------------------------------------------------------- /common/gui/data_broker_plotter/src/DataBrokerPlotterLib.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/data_broker_plotter/src/DataBrokerPlotterLib.cpp -------------------------------------------------------------------------------- /common/gui/data_broker_plotter/src/DataBrokerPlotterLib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/data_broker_plotter/src/DataBrokerPlotterLib.h -------------------------------------------------------------------------------- /common/gui/data_broker_plotter2/data_broker_plotter2.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/gui/data_broker_plotter2/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Plotting implementation for the data broker 4 | 5 | Malte Langosz/malte.langosz@me.com 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | needs_opt 16 | 17 | -------------------------------------------------------------------------------- /common/gui/gui_app/gui_app.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include/ 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: The DFKI Robot Simulator Application 8 | Requires.private: lib_manager main_gui 9 | Requires: @PUBLIC_DEPENDENCIES@ 10 | Version: @PROJECT_VERSION@ 11 | Libs: -L${libdir} -lgui_app_lib 12 | 13 | Cflags: -I${includedir} 14 | 15 | -------------------------------------------------------------------------------- /common/gui/gui_app/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | foo 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | needs_opt 14 | 15 | -------------------------------------------------------------------------------- /common/gui/lib_manager_gui/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /common/gui/lib_manager_gui/lib_manager_gui.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /common/gui/lib_manager_gui/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | GUI for the LibManager 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | needs_opt 11 | 12 | -------------------------------------------------------------------------------- /common/gui/log_console/log_console.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: lib_manager cfg_manager main_gui data_broker 10 | Libs: -L${libdir} -l@PROJECT_NAME@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /common/gui/log_console/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | An small error (message) console based on the lib_manager and the main_gui libraray. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | -------------------------------------------------------------------------------- /common/gui/log_console/resources/images/terminal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/log_console/resources/images/terminal.png -------------------------------------------------------------------------------- /common/gui/main_gui/main_gui.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: lib_manager cfg_manager 10 | Libs: -L${libdir} -l@PROJECT_NAME@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /common/gui/main_gui/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | The library provides a small core for a modular gui implementation. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | needs_opt 10 | 11 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/BaseWidget.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/main_gui/src/BaseWidget.cpp -------------------------------------------------------------------------------- /common/gui/main_gui/src/BaseWidget.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/main_gui/src/BaseWidget.h -------------------------------------------------------------------------------- /common/gui/main_gui/src/MyQMdiArea.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/main_gui/src/MyQMdiArea.h -------------------------------------------------------------------------------- /common/gui/main_gui/src/PropertyCallback.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/main_gui/src/PropertyCallback.h -------------------------------------------------------------------------------- /common/gui/main_gui/src/interfaces/MenuInterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/common/gui/main_gui/src/interfaces/MenuInterface.h -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtAbstractEditorFactoryBase: -------------------------------------------------------------------------------- 1 | #include "qtpropertybrowser.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtAbstractPropertyBrowser: -------------------------------------------------------------------------------- 1 | #include "qtpropertybrowser.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtAbstractPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertybrowser.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtBoolPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtBrowserItem: -------------------------------------------------------------------------------- 1 | #include "qtpropertybrowser.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtButtonPropertyBrowser: -------------------------------------------------------------------------------- 1 | #include "qtbuttonpropertybrowser.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtCharEditorFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtCharPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtCheckBoxFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtColorEditorFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtColorPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtCursorEditorFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtCursorPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtDateEditFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtDatePropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtDateTimeEditFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtDateTimePropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtDoublePropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtDoubleSpinBoxFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtEnumEditorFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtEnumPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtFlagPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtFontEditorFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtFontPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtGroupBoxPropertyBrowser: -------------------------------------------------------------------------------- 1 | #include "qtgroupboxpropertybrowser.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtGroupPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtIntPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtKeySequenceEditorFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtKeySequencePropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtLineEditFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtLocalePropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtPointFPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtPointPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtProperty: -------------------------------------------------------------------------------- 1 | #include "qtpropertybrowser.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtRectFPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtRectPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtScrollBarFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtSizeFPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtSizePolicyPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtSizePropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtSliderFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtSpinBoxFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtStringPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtTimeEditFactory: -------------------------------------------------------------------------------- 1 | #include "qteditorfactory.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtTimePropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtpropertymanager.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtTreePropertyBrowser: -------------------------------------------------------------------------------- 1 | #include "qttreepropertybrowser.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtVariantEditorFactory: -------------------------------------------------------------------------------- 1 | #include "qtvariantproperty.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtVariantProperty: -------------------------------------------------------------------------------- 1 | #include "qtvariantproperty.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/QtVariantPropertyManager: -------------------------------------------------------------------------------- 1 | #include "qtvariantproperty.h" 2 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/qtpropertybrowser.pri: -------------------------------------------------------------------------------- 1 | include(../common.pri) 2 | greaterThan(QT_MAJOR_VERSION, 4): QT *= widgets 3 | INCLUDEPATH += $$PWD 4 | DEPENDPATH += $$PWD 5 | 6 | qtpropertybrowser-uselib:!qtpropertybrowser-buildlib { 7 | LIBS += -L$$QTPROPERTYBROWSER_LIBDIR -l$$QTPROPERTYBROWSER_LIBNAME 8 | } else { 9 | DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 10 | SOURCES += $$PWD/qtpropertybrowser.cpp \ 11 | $$PWD/qtpropertymanager.cpp \ 12 | $$PWD/qteditorfactory.cpp \ 13 | $$PWD/qtvariantproperty.cpp \ 14 | $$PWD/qttreepropertybrowser.cpp \ 15 | $$PWD/qtbuttonpropertybrowser.cpp \ 16 | $$PWD/qtgroupboxpropertybrowser.cpp \ 17 | $$PWD/qtpropertybrowserutils.cpp 18 | HEADERS += $$PWD/qtpropertybrowser.h \ 19 | $$PWD/qtpropertymanager.h \ 20 | $$PWD/qteditorfactory.h \ 21 | $$PWD/qtvariantproperty.h \ 22 | $$PWD/qttreepropertybrowser.h \ 23 | $$PWD/qtbuttonpropertybrowser.h \ 24 | $$PWD/qtgroupboxpropertybrowser.h \ 25 | $$PWD/qtpropertybrowserutils_p.h 26 | RESOURCES += $$PWD/qtpropertybrowser.qrc 27 | } 28 | 29 | win32 { 30 | contains(TEMPLATE, lib):contains(CONFIG, shared):DEFINES += QT_QTPROPERTYBROWSER_EXPORT 31 | else:qtpropertybrowser-uselib:DEFINES += QT_QTPROPERTYBROWSER_IMPORT 32 | } 33 | -------------------------------------------------------------------------------- /common/gui/main_gui/src/qtpropertybrowser/qtpropertybrowser.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/cursor-arrow.png 4 | images/cursor-busy.png 5 | images/cursor-closedhand.png 6 | images/cursor-cross.png 7 | images/cursor-forbidden.png 8 | images/cursor-hand.png 9 | images/cursor-hsplit.png 10 | images/cursor-ibeam.png 11 | images/cursor-openhand.png 12 | images/cursor-sizeall.png 13 | images/cursor-sizeb.png 14 | images/cursor-sizef.png 15 | images/cursor-sizeh.png 16 | images/cursor-sizev.png 17 | images/cursor-uparrow.png 18 | images/cursor-vsplit.png 19 | images/cursor-wait.png 20 | images/cursor-whatsthis.png 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /common/logging/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 2.6) 2 | 3 | project(mars_logging) 4 | set(PROJECT_VERSION 1.0) 5 | 6 | include(FindPkgConfig) 7 | include(${CMAKE_INSTALL_PREFIX}/cmake/mars.cmake) 8 | 9 | define_module_info() 10 | 11 | if(WIN32) 12 | else() 13 | set(LIB_DEPS "base-lib") 14 | endif() 15 | 16 | 17 | set(HEADERS 18 | src/Logging.hpp 19 | ) 20 | 21 | # Install headers into mars include directory 22 | install(FILES ${HEADERS} DESTINATION include/mars/logging) 23 | 24 | configure_file(${PROJECT_NAME}.pc.in ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc @ONLY) 25 | install(FILES ${CMAKE_BINARY_DIR}/${PROJECT_NAME}.pc DESTINATION lib/pkgconfig) 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /common/logging/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | This library provides the logging functionality for mars. Either the mars logging (standalone) or the rock logging is used. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | needs_opt 8 | 9 | -------------------------------------------------------------------------------- /common/logging/mars_logging.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} 10 | Requires: @LIB_DEPS@ 11 | 12 | Cflags: -I${includedir} @MARS_CORE_EIGEN_DEFINITIONS@ 13 | -------------------------------------------------------------------------------- /common/utils/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | This Library contains several useful utilities like a Mutex and Thread class. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | needs_opt 10 | 11 | -------------------------------------------------------------------------------- /common/utils/mars_utils.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Requires: eigen3 11 | Requires.private: yaml-cpp 12 | 13 | Cflags: -I${includedir} @MARS_CORE_EIGEN_DEFINITIONS@ 14 | -------------------------------------------------------------------------------- /doc/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | mkdir build 3 | $(MAKE) -C doxygen 4 | 5 | no-graphs: 6 | mkdir build 7 | $(MAKE) -C doxygen no-graphs 8 | 9 | doc: all 10 | 11 | clean: 12 | rm -r build 13 | 14 | -------------------------------------------------------------------------------- /doc/doxygen/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | doxygen mars_doxyconf 3 | 4 | no-graphs: 5 | doxygen mars_doxyconf_no_graphs 6 | 7 | -------------------------------------------------------------------------------- /doc/scripts/markdown2rst.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | Created on Tue Oct 22 10:44:01 2013 4 | 5 | @author: Kai von Szadkowski 6 | """ 7 | 8 | # This script detects all *.md files in MARS' doc folders and converts them 9 | # to *.rst files using pandoc (http://johnmacfarlane.net/pandoc/) 10 | # Note that pandoc >1.11 is needed for conversion to work correctly, e.g. for tables 11 | # TODO: 12 | # There are still some mistakes when processing the .rst files to html, which can be 13 | # avoided by introducing changes directly here: 14 | # - insert { style="width: 80%;" } to image tags to avoid oversized images 15 | # - getting rid of doxygen-specific links 16 | 17 | from subprocess import call 18 | import os 19 | 20 | print "Converting markdown files to rst format..." 21 | for root, dirs, files in os.walk("../../"): 22 | for d in dirs: 23 | for f in os.listdir(os.path.join(root, d)): 24 | if f.endswith(".md") and f != "index.md": #don't create index.rst overwriting index.html! 25 | print " Converting", f, "in", os.path.join(root, d) 26 | #print "pandoc", "-i", os.path.join(root, d, f), "-o", os.path.join(root, d, f[0:-3] + ".rst") 27 | call(["pandoc", "-i", os.path.join(root, d, f), "-o", os.path.join(root, d, f[0:-3] + ".rst")]) -------------------------------------------------------------------------------- /doc/scripts/update_docs.py: -------------------------------------------------------------------------------- 1 | # -*- coding: utf-8 -*- 2 | """ 3 | Created on Tue Oct 22 10:44:33 2013 4 | 5 | @author: Kai von Szadkowski 6 | """ 7 | 8 | # This script executes three other python scripts and runs doxygen. 9 | 10 | from subprocess import call 11 | import os 12 | 13 | # pandoc now directly converts from md to html 14 | # call(["python", "markdown2rst.py"]) 15 | # call(["python", "rst2marshtml.py"]) 16 | 17 | call(["python", "markdown2marshtml.py"]) 18 | call(["python", "create_subproject_doxygens.py"]) 19 | resp = raw_input("\nRun Doxygen on main folder? (Y/N) ") 20 | if resp == "y" or resp == "Y": 21 | # copying the images manually is necessary due to a bug in Doxygen: 22 | # http://doxygen.10944.n7.nabble.com/Images-not-copied-when-using-markdown-caption-image-foo-syntax-td509.html 23 | print ("Copying images to Doxygen folder...") 24 | os.chdir("../") 25 | #if not os.path.exists("build"): 26 | # os.makedirs("build") 27 | #call(["cp", "-r", "src/images", "doxygen_build/images"]) 28 | #os.chdir("doxygen") 29 | #call(["doxygen", "mars_doxyconf"]) 30 | #call(["ln", "-s", "doxygen_build/html/index.html", "../mars_doxygen_index.html"]) 31 | call(["make", "clean"]) 32 | call(["make"]) 33 | print "\n Mars documentation up to date." 34 | -------------------------------------------------------------------------------- /doc/src/images/combinedlogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/doc/src/images/combinedlogo.png -------------------------------------------------------------------------------- /doc/src/images/logo_triple.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/doc/src/images/logo_triple.png -------------------------------------------------------------------------------- /doc/src/images/logo_v2_wob.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/doc/src/images/logo_v2_wob.png -------------------------------------------------------------------------------- /entity_generation/entity_factory/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | a 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | needs_opt 13 | 14 | -------------------------------------------------------------------------------- /entity_generation/entity_factory/mars_entity_factory.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /entity_generation/primitives/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Kai von Szadkowski/kai.von-szadkowski@uni-bremen.de 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | needs_opt 14 | 15 | -------------------------------------------------------------------------------- /entity_generation/primitives/mars_primitives.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | Requires.private: mars_utils mars_interfaces lib_manager cfg_manager 12 | -------------------------------------------------------------------------------- /entity_generation/smurf/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | needs_opt 16 | 17 | -------------------------------------------------------------------------------- /entity_generation/smurf/mars_smurf.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | Requires.private: mars_utils mars_interfaces lib_manager cfg_manager urdfdom 12 | -------------------------------------------------------------------------------- /graphics/config.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is used to export cmake variables into c/c++. 3 | */ 4 | 5 | #ifndef MARS_GRAPHICS_CONFIG_H 6 | #define MARS_GRAPHICS_CONFIG_H 7 | 8 | #define MARS_GRAPHICS_DEFAULT_RESOURCES_PATH "@CMAKE_INSTALL_PREFIX@/share/mars/graphics/resources" 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /graphics/configuration/mars_Graphics.in: -------------------------------------------------------------------------------- 1 | --- 2 | Graphics: 3 | - 4 | name: brightness 5 | type: double 6 | value: 1 7 | - 8 | name: draw normals 9 | type: bool 10 | value: false 11 | - 12 | name: marsShader 13 | type: bool 14 | value: true 15 | - 16 | name: make movie 17 | type: bool 18 | value: false 19 | - 20 | name: num multisamples 21 | type: int 22 | saveOnClose: true 23 | value: 0 24 | - 25 | name: window1Height 26 | type: int 27 | saveOnClose: true 28 | value: 568 29 | - 30 | name: window1Left 31 | type: int 32 | saveOnClose: true 33 | value: 101 34 | - 35 | name: window1Top 36 | type: int 37 | saveOnClose: true 38 | value: 135 39 | - 40 | name: window1Width 41 | type: int 42 | saveOnClose: true 43 | value: 920 44 | 45 | - name: resources_path 46 | type: string 47 | value: @CMAKE_INSTALL_PREFIX@/share/mars/graphics/resources 48 | -------------------------------------------------------------------------------- /graphics/configuration/mars_graphics.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include/ 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: The DFKI Robot Simulator 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: mars_interfaces @OPENCV_DEP@ lib_manager cfg_manager 10 | Libs: -L${libdir} -l@PROJECT_NAME@ 11 | 12 | Cflags: -I${includedir} 13 | -------------------------------------------------------------------------------- /graphics/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | This library provides a 3d visualization through simple interfaces. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | needs_opt 20 | 21 | -------------------------------------------------------------------------------- /graphics/resources/Fonts/arial.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Fonts/arial.ttf -------------------------------------------------------------------------------- /graphics/resources/Fonts/times.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Fonts/times.ttf -------------------------------------------------------------------------------- /graphics/resources/Objects/coords.3ds: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Objects/coords.3ds -------------------------------------------------------------------------------- /graphics/resources/Textures/colored_gravel_seamless.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Textures/colored_gravel_seamless.jpg -------------------------------------------------------------------------------- /graphics/resources/Textures/gras.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Textures/gras.jpg -------------------------------------------------------------------------------- /graphics/resources/Textures/grid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Textures/grid.png -------------------------------------------------------------------------------- /graphics/resources/Textures/moon_surface_seamless.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Textures/moon_surface_seamless.jpg -------------------------------------------------------------------------------- /graphics/resources/Textures/moon_surface_seamless_normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Textures/moon_surface_seamless_normal.png -------------------------------------------------------------------------------- /graphics/resources/Textures/osb_board_seamless.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Textures/osb_board_seamless.jpg -------------------------------------------------------------------------------- /graphics/resources/Textures/rocks_seamless.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Textures/rocks_seamless.jpg -------------------------------------------------------------------------------- /graphics/resources/Textures/sand_seamless.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/graphics/resources/Textures/sand_seamless.jpg -------------------------------------------------------------------------------- /graphics/resources/Textures/sources.md: -------------------------------------------------------------------------------- 1 | # Sources for Textures 2 | 3 | - osb_board_seamless.jpg: [ThiagoVidal](http://thiagovidal.deviantart.com/art/OSB-board-texture-381059918) 4 | - grid: Kai von Szadkowski 5 | -------------------------------------------------------------------------------- /gui/config.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is used to export cmake variables into c/c++. 3 | */ 4 | 5 | #ifndef MARS_GUI_CONFIG_H 6 | #define MARS_GUI_CONFIG_H 7 | 8 | #define MARS_GUI_DEFAULT_RESOURCES_PATH "@CMAKE_INSTALL_PREFIX@/share/mars/gui/resources" 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /gui/configuration/dialog_config.in: -------------------------------------------------------------------------------- 1 | @CMAKE_INSTALL_PREFIX@/@LIBPATH@/@PRELIB@AddPrimitive@POSTLIB@ 2 | @CMAKE_INSTALL_PREFIX@/@LIBPATH@/@PRELIB@EditNode@POSTLIB@ 3 | @CMAKE_INSTALL_PREFIX@/@LIBPATH@/@PRELIB@TreeView@POSTLIB@ 4 | @CMAKE_INSTALL_PREFIX@/@LIBPATH@/@PRELIB@BlenderExport@POSTLIB@ 5 | @CMAKE_INSTALL_PREFIX@/@LIBPATH@/@PRELIB@CameraConfigurator@POSTLIB@ 6 | @CMAKE_INSTALL_PREFIX@/@LIBPATH@/@PRELIB@ControllerConfig@POSTLIB@ 7 | @CMAKE_INSTALL_PREFIX@/@LIBPATH@/@PRELIB@CaptureWindow@POSTLIB@ 8 | -------------------------------------------------------------------------------- /gui/configuration/mars_Gui.in: -------------------------------------------------------------------------------- 1 | --- 2 | MarsGui: 3 | - name: resources_path 4 | type: string 5 | value: @CMAKE_INSTALL_PREFIX@/share/mars/gui/resources 6 | 7 | - name: Main Window/Window Top 8 | type: int 9 | value: 40 10 | saveOnClose: true 11 | 12 | - name: Main Window/Window Left 13 | type: int 14 | value: 40 15 | saveOnClose: true 16 | 17 | - name: Main Window/Window Width 18 | type: int 19 | value: 640 20 | saveOnClose: true 21 | 22 | - name: Main Window/Window Height 23 | type: int 24 | value: 80 25 | saveOnClose: true 26 | 27 | - 28 | name: Main Window/docking 29 | type: bool 30 | value: false 31 | - 32 | name: Mars Style 33 | type: bool 34 | value: true 35 | -------------------------------------------------------------------------------- /gui/configuration/mars_gui.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include/ 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: The DFKI Robot Simulator GUI 8 | Version: @PROJECT_VERSION@ 9 | Requires.private: mars_interfaces lib_manager data_broker main_gui cfg_manager mars_graphics mars_sim @OPENCV_DEP@ 10 | Requires: @PUBLIC_DEPENDENCIES@ 11 | Libs: -L${libdir} -l@PROJECT_NAME@ 12 | 13 | Cflags: -I${includedir} 14 | 15 | -------------------------------------------------------------------------------- /gui/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | DFKI Robot simulator GUI 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | needs_opt 18 | 19 | -------------------------------------------------------------------------------- /gui/resources/appicon.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "images/mars_icon.ico" 2 | -------------------------------------------------------------------------------- /gui/resources/blender/export.blend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/blender/export.blend -------------------------------------------------------------------------------- /gui/resources/images/Ball-and-socket.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/Ball-and-socket.jpg -------------------------------------------------------------------------------- /gui/resources/images/Hinge.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/Hinge.jpg -------------------------------------------------------------------------------- /gui/resources/images/Hinge2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/Hinge2.jpg -------------------------------------------------------------------------------- /gui/resources/images/Slider.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/Slider.jpeg -------------------------------------------------------------------------------- /gui/resources/images/Universal.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/Universal.jpg -------------------------------------------------------------------------------- /gui/resources/images/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/background.png -------------------------------------------------------------------------------- /gui/resources/images/blender.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/blender.png -------------------------------------------------------------------------------- /gui/resources/images/box.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/box.png -------------------------------------------------------------------------------- /gui/resources/images/connexion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/connexion.png -------------------------------------------------------------------------------- /gui/resources/images/joint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/joint.png -------------------------------------------------------------------------------- /gui/resources/images/lamp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/lamp.png -------------------------------------------------------------------------------- /gui/resources/images/mars_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/mars_icon.ico -------------------------------------------------------------------------------- /gui/resources/images/material.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/material.png -------------------------------------------------------------------------------- /gui/resources/images/mesh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/mesh.png -------------------------------------------------------------------------------- /gui/resources/images/motor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/motor.png -------------------------------------------------------------------------------- /gui/resources/images/new_scene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/new_scene.png -------------------------------------------------------------------------------- /gui/resources/images/open_scene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/open_scene.png -------------------------------------------------------------------------------- /gui/resources/images/pause_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/pause_button.png -------------------------------------------------------------------------------- /gui/resources/images/plane.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/plane.png -------------------------------------------------------------------------------- /gui/resources/images/play_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/play_button.png -------------------------------------------------------------------------------- /gui/resources/images/preferences.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/preferences.png -------------------------------------------------------------------------------- /gui/resources/images/reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/reset.png -------------------------------------------------------------------------------- /gui/resources/images/save_scene.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/save_scene.png -------------------------------------------------------------------------------- /gui/resources/images/sphere.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/sphere.png -------------------------------------------------------------------------------- /gui/resources/images/step_button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/step_button.png -------------------------------------------------------------------------------- /gui/resources/images/terminal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/images/terminal.png -------------------------------------------------------------------------------- /gui/resources/mars.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | ./images/background.png 4 | ./images/Ball-and-socket.jpg 5 | ./images/blender.png 6 | ./images/connexion.png 7 | ./images/Hinge.jpg 8 | ./images/Hinge2.jpg 9 | ./images/mars_icon.ico 10 | ./images/new_scene.png 11 | ./images/open_scene.png 12 | ./images/pause_button.png 13 | ./images/play_button.png 14 | ./images/preferences.png 15 | ./images/reset.png 16 | ./images/save_scene.png 17 | ./images/Slider.jpeg 18 | ./images/step_button.png 19 | ./images/terminal.png 20 | ./images/Universal.jpg 21 | ./styles/branch-closed.png 22 | ./styles/branch-open.png 23 | ./styles/marsbackground.jpeg 24 | ./styles/marsbutton.jpeg 25 | 26 | 27 | -------------------------------------------------------------------------------- /gui/resources/styles/branch-closed.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/styles/branch-closed.png -------------------------------------------------------------------------------- /gui/resources/styles/branch-open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/styles/branch-open.png -------------------------------------------------------------------------------- /gui/resources/styles/marsbackground.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/styles/marsbackground.jpeg -------------------------------------------------------------------------------- /gui/resources/styles/marsbutton.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/resources/styles/marsbutton.jpeg -------------------------------------------------------------------------------- /gui/src/dialogs/AboutDialog.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center 3 | * 4 | * This file is part of the MARS simulation framework. 5 | * 6 | * MARS is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License 8 | * as published by the Free Software Foundation, either version 3 9 | * of the License, or (at your option) any later version. 10 | * 11 | * MARS is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with MARS. If not, see . 18 | * 19 | */ 20 | 21 | #include "AboutDialog.h" 22 | 23 | namespace mars { 24 | namespace gui { 25 | 26 | AboutDialog::AboutDialog(QWidget *parent) 27 | : QDialog(parent) { 28 | 29 | } 30 | 31 | AboutDialog::~AboutDialog() { 32 | 33 | } 34 | 35 | } // end of namespace gui 36 | } // end of namespace mars 37 | -------------------------------------------------------------------------------- /gui/src/dialogs/AboutDialog.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011, 2012, DFKI GmbH Robotics Innovation Center 3 | * 4 | * This file is part of the MARS simulation framework. 5 | * 6 | * MARS is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License 8 | * as published by the Free Software Foundation, either version 3 9 | * of the License, or (at your option) any later version. 10 | * 11 | * MARS is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with MARS. If not, see . 18 | * 19 | */ 20 | 21 | /** 22 | * \file "AboutDialog.h" 23 | * not imeplemented yet 24 | */ 25 | 26 | #ifndef ABOUTDIALOG_H 27 | #define ABOUTDIALOG_H 28 | 29 | #include 30 | 31 | namespace mars { 32 | namespace gui { 33 | 34 | class AboutDialog : public QDialog 35 | { 36 | Q_OBJECT 37 | 38 | public: 39 | AboutDialog(QWidget *parent = 0); 40 | ~AboutDialog(); 41 | 42 | 43 | }; 44 | 45 | } // end of namespace gui 46 | } // end of namespace mars 47 | 48 | #endif // ABOUTDIALOG_H 49 | -------------------------------------------------------------------------------- /gui/src/dialogs/CameraConfig/CameraConfigurator.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/CameraConfig/CameraConfigurator.cpp -------------------------------------------------------------------------------- /gui/src/dialogs/CameraConfig/CameraConfigurator.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/CameraConfig/CameraConfigurator.h -------------------------------------------------------------------------------- /gui/src/dialogs/CaptureWindow/CaptureConfig.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/CaptureWindow/CaptureConfig.cpp -------------------------------------------------------------------------------- /gui/src/dialogs/CaptureWindow/CaptureConfig.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/CaptureWindow/CaptureConfig.h -------------------------------------------------------------------------------- /gui/src/dialogs/CaptureWindow/CaptureGUI.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/CaptureWindow/CaptureGUI.h -------------------------------------------------------------------------------- /gui/src/dialogs/CaptureWindow/CaptureWindow.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/CaptureWindow/CaptureWindow.cpp -------------------------------------------------------------------------------- /gui/src/dialogs/CaptureWindow/CaptureWindow.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/CaptureWindow/CaptureWindow.h -------------------------------------------------------------------------------- /gui/src/dialogs/ControllerConfigGUI.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/ControllerConfigGUI.cpp -------------------------------------------------------------------------------- /gui/src/dialogs/ControllerConfigGUI.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/gui/src/dialogs/ControllerConfigGUI.h -------------------------------------------------------------------------------- /interfaces/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | This library is the base library for the MARS prject and includes the general defines, structs and classes. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | -------------------------------------------------------------------------------- /interfaces/mars_interfaces.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: The DFKI Robot Simulator 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Requires: @LIB_DEPS@ 11 | 12 | Cflags: -I${includedir} @MARS_CORE_EIGEN_DEFINITIONS@ 13 | 14 | -------------------------------------------------------------------------------- /interfaces/src/sim/ControlCenter.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2012, DFKI GmbH Robotics Innovation Center 3 | * 4 | * This file is part of the MARS simulation framework. 5 | * 6 | * MARS is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License 8 | * as published by the Free Software Foundation, either version 3 9 | * of the License, or (at your option) any later version. 10 | * 11 | * MARS is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with MARS. If not, see . 18 | * 19 | */ 20 | 21 | /* 22 | * ControlCenter.cpp 23 | * Simulator 24 | * 25 | * Created by Malte Roemmermann 26 | * 27 | */ 28 | 29 | #define FORWARD_DECL_ONLY 30 | //#define ROCK 31 | #include "ControlCenter.h" 32 | 33 | namespace mars { 34 | 35 | namespace data_broker { 36 | class DataBrokerInterface; 37 | } 38 | 39 | namespace interfaces { 40 | data_broker::DataBrokerInterface *ControlCenter::theDataBroker = NULL; 41 | SimulatorInterface *ControlCenter::activeSim = NULL; 42 | } 43 | 44 | } // end of namespace mars 45 | -------------------------------------------------------------------------------- /interfaces/src/sim_common.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2011, 2012 DFKI GmbH Robotics Innovation Center 3 | * 4 | * This file is part of the MARS simulation framework. 5 | * 6 | * MARS is free software: you can redistribute it and/or modify 7 | * it under the terms of the GNU Lesser General Public License 8 | * as published by the Free Software Foundation, either version 3 9 | * of the License, or (at your option) any later version. 10 | * 11 | * MARS is distributed in the hope that it will be useful, 12 | * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 | * GNU Lesser General Public License for more details. 15 | * 16 | * You should have received a copy of the GNU Lesser General Public License 17 | * along with MARS. If not, see . 18 | * 19 | */ 20 | 21 | /** 22 | * some defines and structures that are used in the whole simulation 23 | */ 24 | 25 | #ifndef MARS_INTERFACES_COMMON_H 26 | #define MARS_INTERFACES_COMMON_H 27 | 28 | //#define DEBUG_TIME 29 | #ifdef _PRINT_HEADER_ 30 | #warning "sim_common.h" 31 | #endif 32 | 33 | #include "MARSDefs.h" 34 | #include 35 | #include 36 | #include 37 | #include "nodeState.h" 38 | #include "contact_params.h" 39 | #include "snmesh.h" 40 | 41 | 42 | #endif // MARS_INTERFACES_COMMON_H 43 | -------------------------------------------------------------------------------- /plugins/AnimationPlugin/AnimationPlugin.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /plugins/AnimationPlugin/README.md: -------------------------------------------------------------------------------- 1 | todo 2 | -------------------------------------------------------------------------------- /plugins/AnimationPlugin/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Animation support 4 | 5 | Malte/malte.langosz@dfki.de 6 | Malte/malte.langosz@dfki.de 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | needs_opt 15 | 16 | -------------------------------------------------------------------------------- /plugins/CameraGUI/CameraGUI.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /plugins/CameraGUI/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A plugin to visualize and save camera data from MARS. 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | -------------------------------------------------------------------------------- /plugins/Plot3D/Plot3D.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /plugins/Plot3D/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/Plot3D/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | needs_opt 11 | 12 | -------------------------------------------------------------------------------- /plugins/PythonMars/PythonMars.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ -l${@QT_CORE_LIBRARY@} -l${@QT_GUI_LIBRARY@} 10 | Cflags: -I${includedir} -------------------------------------------------------------------------------- /plugins/PythonMars/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Allows scripting MARS with python 4 | 5 | Malte/malte.langosz@dfki.de 6 | Malte/malte.langosz@dfki.de 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | needs_opt 20 | 21 | -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/SkyDomePlugin.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | SkyDome 4 | 5 | Malte/malte.langosz@dfki.de 6 | Malte/malte.langosz@dfki.de 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | needs_opt 15 | 16 | -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/resources/cubemap/down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/SkyDomePlugin/resources/cubemap/down.png -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/resources/cubemap/east.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/SkyDomePlugin/resources/cubemap/east.png -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/resources/cubemap/north.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/SkyDomePlugin/resources/cubemap/north.png -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/resources/cubemap/south.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/SkyDomePlugin/resources/cubemap/south.png -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/resources/cubemap/up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/SkyDomePlugin/resources/cubemap/up.png -------------------------------------------------------------------------------- /plugins/SkyDomePlugin/resources/cubemap/west.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/SkyDomePlugin/resources/cubemap/west.png -------------------------------------------------------------------------------- /plugins/TerrainPlugin/TerrainPlugin.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /plugins/TerrainPlugin/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Terrain 4 | 5 | Malte/malte.langosz@dfki.de 6 | Malte/malte.langosz@dfki.de 7 | 8 | 9 | 10 | 11 | 12 | needs_opt 13 | 14 | -------------------------------------------------------------------------------- /plugins/Text3D/Text3D.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /plugins/Text3D/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/Text3D/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | This plugin loads text elements for the hud from a config file. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /plugins/VirtualJoystickPlugin/CrossWidget.qrc: -------------------------------------------------------------------------------- 1 | 2 | 3 | images/bgcross.png 4 | 5 | 6 | -------------------------------------------------------------------------------- /plugins/VirtualJoystickPlugin/build_plugin.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | mkdir build 4 | cd build 5 | cmake_debug 6 | make install 7 | cd .. -------------------------------------------------------------------------------- /plugins/VirtualJoystickPlugin/images/bgcross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/VirtualJoystickPlugin/images/bgcross.png -------------------------------------------------------------------------------- /plugins/VirtualJoystickPlugin/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Generates a widget where the x and y axes of a virtual joystick can be defined. 4 | 5 | Malte/malte.langosz@dfki.de 6 | Malte/malte.langosz@dfki.de 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | -------------------------------------------------------------------------------- /plugins/connectors/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/connectors/connectors.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /plugins/connectors/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Allows 4 | 5 | Kai/kai.von-szadkowski@uni-bremen.de 6 | Kai/kai.von-szadkowski@uni-bremen.de 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | needs_opt 15 | 16 | -------------------------------------------------------------------------------- /plugins/connexion_plugin/.gitignore: -------------------------------------------------------------------------------- 1 | .project 2 | build -------------------------------------------------------------------------------- /plugins/connexion_plugin/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ConnexionPlugin for MARS 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /plugins/connexion_plugin/resources/connexion.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/connexion_plugin/resources/connexion.png -------------------------------------------------------------------------------- /plugins/constraint_plugin/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/constraint_plugin/constraints_plugin.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | Requires.private: mars_utils mars_interfaces lib_manager data_broker cfg_manager 12 | -------------------------------------------------------------------------------- /plugins/constraint_plugin/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | constraint_plugin 3 | 4 | Plugin to create constraints between Nodes. 5 | 6 | Matthias Goldhoorn/matthias@goldhoorn.eu 7 | 8 | 9 | 10 | 11 | 12 | 13 | needs_opt 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /plugins/constraint_plugin/resources/constraints.yaml.example: -------------------------------------------------------------------------------- 1 | # A constraints file must start with a root element ConstraintDefs 2 | # It should contain a list with a mapping element containing three elements: 3 | # 1) name: The Name of the constraint 4 | # 2) type: should always be string 5 | # 3) value: The constraint itself encoded as a string 6 | 7 | ConstraintDefs: 8 | - name: length 9 | type: string 10 | value: "NODE#NewNode0.sizeX#NewNode1.posX#1#NewNode0.posX#.5" 11 | -------------------------------------------------------------------------------- /plugins/entity_view/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/entity_view/entity_view.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Requires: @PUBLIC_DEPENDENCIES@ 10 | Libs: -L${libdir} -l@PROJECT_NAME@ 11 | Cflags: -I${includedir} 12 | -------------------------------------------------------------------------------- /plugins/entity_view/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | 5 | Malte/malte.langosz@dfki.de 6 | Malte/malte.langosz@dfki.de 7 | 8 | 9 | 10 | 11 | 12 | needs_opt 13 | 14 | -------------------------------------------------------------------------------- /plugins/entity_view/resources/entity_view.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/entity_view/resources/entity_view.png -------------------------------------------------------------------------------- /plugins/gamepad_plugin/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | ConnexionPlugin for MARS 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /plugins/gamepad_plugin/src/GamepadHID.hpp: -------------------------------------------------------------------------------- 1 | #ifndef MARS_PLUGINS_GAMEPAD_HPP 2 | #define MARS_PLUGINS_GAMEPAD_HPP 3 | 4 | #include 5 | 6 | 7 | #define LOGITECH_VENDOR_ID 0x046d 8 | #define LOGITECH_F510_ID 0xc21e 9 | #define LOGITECH_SPACE_TRAVELLER_DEVICE_ID 0xc623 10 | #define LOGITECH_SPACE_PILOT_DEVICE_ID 0xc625 11 | #define LOGITECH_SPACE_NAVIGATOR_DEVICE_ID 0xc626 12 | #define LOGITECH_SPACE_EXPLORER_DEVICE_ID 0xc627 13 | #define CLS_VENDOR_ID 0x0e8f 14 | #define CLS_GAMEPAD_ID 0x0003 15 | 16 | namespace mars { 17 | namespace plugins { 18 | namespace gamepad_plugin { 19 | 20 | struct gamepadValues { 21 | gamepadValues(): 22 | a1x(0), 23 | a1y(0), 24 | a2x(0), 25 | a2y(0), 26 | button1(0), 27 | button2(0) 28 | 29 | { 30 | } 31 | double a1x; 32 | double a1y; 33 | double a2x; 34 | double a2y; 35 | double button1; 36 | double button2; 37 | }; 38 | 39 | int initGamepadHID(void *windowID); 40 | void getValue(struct gamepadValues *rawValues); 41 | void closeGamepadHID(); 42 | 43 | } // end of namespace gamepad_plugin 44 | } // end of namespace plugins 45 | } // end of namespace mars 46 | 47 | #endif /* MARS_PLUGINS_GAMEPAD_HPP */ 48 | -------------------------------------------------------------------------------- /plugins/obstacle_generator/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/obstacle_generator/doc/img/og1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/doc/img/og1.png -------------------------------------------------------------------------------- /plugins/obstacle_generator/doc/img/og2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/doc/img/og2.png -------------------------------------------------------------------------------- /plugins/obstacle_generator/doc/img/og3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/doc/img/og3.png -------------------------------------------------------------------------------- /plugins/obstacle_generator/doc/img/og4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/doc/img/og4.png -------------------------------------------------------------------------------- /plugins/obstacle_generator/doc/img/og5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/doc/img/og5.png -------------------------------------------------------------------------------- /plugins/obstacle_generator/doc/img/og6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/doc/img/og6.png -------------------------------------------------------------------------------- /plugins/obstacle_generator/doc/img/og7.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/doc/img/og7.png -------------------------------------------------------------------------------- /plugins/obstacle_generator/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | needs_opt 10 | 11 | -------------------------------------------------------------------------------- /plugins/obstacle_generator/obstacle_generator.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | Requires.private: mars_utils mars_interfaces lib_manager data_broker cfg_manager 12 | -------------------------------------------------------------------------------- /plugins/obstacle_generator/textures/ground.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/textures/ground.jpg -------------------------------------------------------------------------------- /plugins/obstacle_generator/textures/ground2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/textures/ground2.jpg -------------------------------------------------------------------------------- /plugins/obstacle_generator/textures/readme.txt: -------------------------------------------------------------------------------- 1 | The textures used for this plugin were most gladly obtained for free from http://www.texturemate.com 2 | -------------------------------------------------------------------------------- /plugins/obstacle_generator/textures/rocks.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/textures/rocks.jpg -------------------------------------------------------------------------------- /plugins/obstacle_generator/textures/rocks2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/obstacle_generator/textures/rocks2.jpg -------------------------------------------------------------------------------- /plugins/plugin_template/__gui_project__/__project__.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ -l${@QT_CORE_LIBRARY@} -l${@QT_GUI_LIBRARY@} 10 | Cflags: -I${includedir} -------------------------------------------------------------------------------- /plugins/plugin_template/__gui_project__/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/plugin_template/__gui_project__/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | __description__ 4 | 5 | __author__/__email__ 6 | __author__/__email__ 7 | 8 | 9 | 10 | 11 | needs_opt 12 | 13 | -------------------------------------------------------------------------------- /plugins/plugin_template/__project__/__project__.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: @PROJECT_DESCRIPTION@ 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Cflags: -I${includedir} 11 | -------------------------------------------------------------------------------- /plugins/plugin_template/__project__/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /plugins/plugin_template/__project__/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | __description__ 4 | 5 | __author__/__email__ 6 | __author__/__email__ 7 | 8 | 9 | 10 | needs_opt 11 | 12 | -------------------------------------------------------------------------------- /plugins/plugin_template/cnp.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** create new MARS plugin **********" 5 | echo -e "\033[0m" 6 | echo -n "insert project name: " 7 | read name 8 | 9 | # sed only supports the \u operator since version 4.x and MSYS ships 3.y 10 | if [[ `sed --version | grep -i "version" | sed -e 's/.*[vV]ersion \([0-9]\).*/\1/g'` == "4" ]]; then 11 | classname=`sed -e 's/_\([a-z]\)/\u\1/g' -e 's/^\([a-z]\)/\u\1/g' <<< $name`; 12 | elif [[ -x `which perl` ]]; then 13 | classname=`perl -pe 's/_([a-z])/\u\1/g;' -pe 's/^([a-z])/\u\1/;' <<< $name`; 14 | else 15 | echo -n "insert class name: " 16 | read classname 17 | fi 18 | 19 | echo -n "insert description: " 20 | read description 21 | 22 | echo -n "does it have a GUI? (y/n): " 23 | read gui 24 | 25 | #echo -n "insert header define: " 26 | #read header_def 27 | header_def="MARS_PLUGINS_" 28 | header_def=${header_def}"`echo $name | tr '[a-z]' '[A-Z]'`" 29 | header_def=${header_def}"_H" 30 | 31 | #echo -n "insert namespace: " 32 | #read namespace 33 | namespace=$name 34 | 35 | 36 | echo -n "insert author name: " 37 | read author 38 | 39 | echo -n "insert author's email: " 40 | read email 41 | 42 | if [ $gui = "y" ]; then 43 | ./create_new_project.sh "$name" "$description" "$header_def" "$namespace" "$author" "$email" "$classname" y 44 | else 45 | ./create_new_project.sh "$name" "$description" "$header_def" "$namespace" "$author" "$email" "$classname" 46 | fi -------------------------------------------------------------------------------- /plugins/viz_plugin/easy.scn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/plugins/viz_plugin/easy.scn -------------------------------------------------------------------------------- /plugins/viz_plugin/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Example to use only visualization part of MARS 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | needs_opt 13 | 14 | 15 | 16 | -------------------------------------------------------------------------------- /scene_loader/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Plugin to load and save MARS scene files. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | needs_opt 16 | 17 | -------------------------------------------------------------------------------- /scene_loader/mars_scene_loader.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include/ 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: The DFKI Robot Simulator 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Requires.private: mars_utils lib_manager mars_interfaces minizip 11 | 12 | Cflags: -I${includedir} @ADD_INCLUDES@ 13 | 14 | -------------------------------------------------------------------------------- /scripts/.gitignore: -------------------------------------------------------------------------------- 1 | 2 | /bootstrap/packageList.txt 3 | /bootstrap/config.txt -------------------------------------------------------------------------------- /scripts/blender/convert_stl_to_obj.py: -------------------------------------------------------------------------------- 1 | import os 2 | import bpy 3 | import mathutils 4 | 5 | def convertStlToObj(path) : 6 | # change the current working directory 7 | os.chdir(path) 8 | # get a list of all files within this directory 9 | files = os.listdir('.') 10 | # check each entry if it is a file or a directory 11 | for file in files: 12 | # handle a file 13 | if file.endswith('.stl') or file.endswith('.STL'): 14 | # clear the current scene 15 | bpy.ops.scene.new() 16 | # import the stl mesh 17 | bpy.ops.import_mesh.stl(filepath=file) 18 | #export it as an obj scene 19 | bpy.ops.export_scene.obj(filepath=file.replace('.stl','.obj').replace('.STL','.obj')) 20 | # clean up the newly cerated scene 21 | bpy.ops.scene.delete() 22 | # handle a directory 23 | if os.path.isdir(file) : 24 | # recursively convert the files 25 | convertStlToObj(path + os.sep + file) 26 | # reset the current directory 27 | os.chdir(path) 28 | 29 | convertStlToObj("...") -------------------------------------------------------------------------------- /scripts/cmake/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | project(mars-cmake) 2 | set(PROJECT_VERSION 1.0) 3 | set(PROJECT_DESCRIPTION "This will install cmake extensions for mars") 4 | cmake_minimum_required(VERSION 2.6) 5 | 6 | configure_file(mars-config.cmake.in ${CMAKE_BINARY_DIR}/mars-config.cmake @ONLY) 7 | install(FILES ${CMAKE_BINARY_DIR}/mars-config.cmake DESTINATION share/mars/cmake) 8 | install(FILES mars.cmake DESTINATION share/mars/cmake) 9 | -------------------------------------------------------------------------------- /scripts/cmake/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | CMake helper tools for building mars 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | stable 9 | 10 | -------------------------------------------------------------------------------- /scripts/cmake/mars-config.cmake.in: -------------------------------------------------------------------------------- 1 | list(APPEND CMAKE_MODULE_PATH ${CMAKE_INSTALL_PREFIX}/share/mars/cmake) 2 | include(mars) 3 | -------------------------------------------------------------------------------- /sim/config.h.in: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is used to export cmake variables into c/c++. 3 | */ 4 | 5 | #ifndef MARS_PREFERENCES_CONFIG_H 6 | #define MARS_PREFERENCES_CONFIG_H 7 | 8 | #define MARS_PREFERENCES_DEFAULT_RESOURCES_PATH "@CMAKE_INSTALL_PREFIX@/share" 9 | 10 | #endif 11 | -------------------------------------------------------------------------------- /sim/configuration/mars_Preferences.in: -------------------------------------------------------------------------------- 1 | --- 2 | Preferences: 3 | - name: resources_path 4 | type: string 5 | value: @CMAKE_INSTALL_PREFIX@/share 6 | -------------------------------------------------------------------------------- /sim/configuration/mars_sim.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: The DFKI Robot Simulator 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Requires.private: mars_utils mars_interfaces lib_manager data_broker cfg_manager ode 11 | 12 | Cflags: -I${includedir} -I${includedir}/mars/sim @ADD_INCLUDES@ 13 | 14 | -------------------------------------------------------------------------------- /sim/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | DFKI Robot simulator 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | needs_opt 15 | 16 | -------------------------------------------------------------------------------- /sim/src/interfaces/sensors/GridSensorInterface.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/sim/src/interfaces/sensors/GridSensorInterface.h -------------------------------------------------------------------------------- /sim/src/sensors/JointAVGTorqueSensor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/sim/src/sensors/JointAVGTorqueSensor.cpp -------------------------------------------------------------------------------- /sim/src/sensors/JointArraySensor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/sim/src/sensors/JointArraySensor.cpp -------------------------------------------------------------------------------- /sim/src/sensors/JointPositionSensor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/sim/src/sensors/JointPositionSensor.cpp -------------------------------------------------------------------------------- /sim/src/sensors/NodeArraySensor.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/sim/src/sensors/NodeArraySensor.cpp -------------------------------------------------------------------------------- /smurf_loader/build.sh: -------------------------------------------------------------------------------- 1 | #! /bin/bash 2 | 3 | echo -e "\033[32;1m" 4 | echo "********** build MARS plugin **********" 5 | echo -e "\033[0m" 6 | 7 | rm -rf build 8 | mkdir build 9 | cd build 10 | cmake_debug 11 | make -j4 12 | cd .. 13 | 14 | echo -e "\033[32;1m" 15 | echo "********** done building MARS plugin **********" 16 | echo -e "\033[0m" 17 | -------------------------------------------------------------------------------- /smurf_loader/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | Plugin to load SMURF and URDF files. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | needs_opt 26 | 27 | -------------------------------------------------------------------------------- /smurf_loader/mars_smurf_loader.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include/ 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: The DFKI Robot Simulator 8 | Version: @PROJECT_VERSION@ 9 | Libs: -L${libdir} -l@PROJECT_NAME@ 10 | Requires.private: mars_utils lib_manager mars_interfaces minizip mars_entity_factory 11 | 12 | Cflags: -I${includedir} @ADD_INCLUDES@ 13 | 14 | -------------------------------------------------------------------------------- /viz/manifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | A library that allows to use MARS scenes for a pure visualization. 4 | 5 | Matthias Goldhoorn/matthias@goldhoorn.eu 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | needs_opt 18 | 19 | -------------------------------------------------------------------------------- /viz/mars_viz.pc.in: -------------------------------------------------------------------------------- 1 | prefix=@CMAKE_INSTALL_PREFIX@ 2 | exec_prefix=@CMAKE_INSTALL_PREFIX@ 3 | libdir=${prefix}/lib 4 | includedir=${prefix}/include/ 5 | 6 | Name: @PROJECT_NAME@ 7 | Description: A library that allows to use MARS scenes for a pure visualization. 8 | Requires.private: lib_manager mars_interfaces 9 | Version: @PROJECT_VERSION@ 10 | Libs: -L${libdir} -lmars_viz 11 | 12 | Cflags: -I${includedir} 13 | 14 | -------------------------------------------------------------------------------- /viz/resources/appicon.rc: -------------------------------------------------------------------------------- 1 | IDI_ICON1 ICON DISCARDABLE "images/mars_icon.ico" -------------------------------------------------------------------------------- /viz/resources/images/mars_icon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/rock-simulation/mars/b7f50a4063db6840c57771cd65fc6f50e9c32825/viz/resources/images/mars_icon.ico --------------------------------------------------------------------------------