Skip to content

Commit

Permalink
Missing files
Browse files Browse the repository at this point in the history
Signed-off-by: Nate Koenig <natekoenig@gmail.com>
  • Loading branch information
nkoenig committed Jun 21, 2023
1 parent 7099edc commit e79972b
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 0 deletions.
44 changes: 44 additions & 0 deletions include/gz/sim/config.hh.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/*
* Copyright (C) 2022 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/

/* Config.hh. Generated by CMake for @PROJECT_NAME_NO_VERSION@. */

#ifndef GZ_SIM__CONFIG_HH_
#define GZ_SIM__CONFIG_HH_

/* Version number */
#define GZ_SIM_MAJOR_VERSION ${PROJECT_VERSION_MAJOR}
#define GZ_SIM_MINOR_VERSION ${PROJECT_VERSION_MINOR}
#define GZ_SIM_PATCH_VERSION ${PROJECT_VERSION_PATCH}

#define GZ_SIM_VERSION "${PROJECT_VERSION}"
#define GZ_SIM_VERSION_FULL "${PROJECT_VERSION_FULL}"
#define GZ_SIM_MAJOR_VERSION_STR "${PROJECT_VERSION_MAJOR}"

#define GZ_SIM_VERSION_NAMESPACE v${PROJECT_VERSION_MAJOR}

#define GZ_SIM_VERSION_HEADER "Gazebo Sim, version ${PROJECT_VERSION_FULL}\nCopyright (C) 2018 Open Source Robotics Foundation.\nReleased under the Apache 2.0 License.\n\n"

#define GZ_SIM_GUI_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/${GZ_DATA_INSTALL_DIR}/gui"
#define GZ_SIM_SYSTEM_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/${GZ_DATA_INSTALL_DIR}/systems"
#define GZ_SIM_SERVER_CONFIG_PATH "${CMAKE_INSTALL_PREFIX}/${GZ_DATA_INSTALL_DIR}"
#define GZ_SIM_PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${GZ_LIB_INSTALL_DIR}/gz-${GZ_DESIGNATION}-${PROJECT_VERSION_MAJOR}/plugins"
#define GZ_SIM_GUI_PLUGIN_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${GZ_LIB_INSTALL_DIR}/gz-${GZ_DESIGNATION}-${PROJECT_VERSION_MAJOR}/plugins/gui"
#define GZ_SIM_WORLD_INSTALL_DIR "${CMAKE_INSTALL_PREFIX}/${GZ_DATA_INSTALL_DIR}/worlds"
#define GZ_DISTRIBUTION "${GZ_DISTRIBUTION}"

#endif
14 changes: 14 additions & 0 deletions include/gz/sim/playback_server.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<server_config>
<plugins>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-user-commands-system"
name="gz::sim::systems::UserCommands">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-scene-broadcaster-system"
name="gz::sim::systems::SceneBroadcaster">
</plugin>
</plugins>
</server_config>
19 changes: 19 additions & 0 deletions include/gz/sim/server.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<server_config>
<plugins>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-physics-system"
name="gz::sim::systems::Physics">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-user-commands-system"
name="gz::sim::systems::UserCommands">
</plugin>
<plugin entity_name="*"
entity_type="world"
filename="gz-sim-scene-broadcaster-system"
name="gz::sim::systems::SceneBroadcaster">
</plugin>
</plugins>
</server_config>
44 changes: 44 additions & 0 deletions test/worlds/joints_in_world.sdf
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?xml version="1.0" ?>
<sdf version="1.10">
<world name="joints_in_world">
<joint name="fix_to_world" type="fixed">
<parent>world</parent>
<child>m1</child>
</joint>

<model name="m1">
<link name="link1">
<visual name="visual">
<geometry>
<sphere>
<radius>0.5</radius>
</sphere>
</geometry>
</visual>
</link>
</model>

<joint name="j1" type="revolute">
<pose relative_to="m1"/>
<parent>m1</parent>
<child>m2</child>
<axis>
<xyz>0 1 0</xyz>
</axis>
</joint>

<model name="m2">
<pose>2 0 0 0 0 0</pose>
<link name="link2">
<visual name="visual">
<geometry>
<sphere>
<radius>0.5</radius>
</sphere>
</geometry>
</visual>
</link>
</model>

</world>
</sdf>

0 comments on commit e79972b

Please sign in to comment.