Skip to content

Commit 653c8b1

Browse files
committed
update Gazebo Material
1 parent 611cd0c commit 653c8b1

File tree

1,633 files changed

+289456
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,633 files changed

+289456
-0
lines changed

gazebo_models/.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
build
2+
build_*
3+
Ogre.log
4+
model.tar.gz
5+
*.swp
6+
.DS_Store

gazebo_models/CMakeLists.txt

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
2+
3+
if(COMMAND CMAKE_POLICY)
4+
CMAKE_POLICY(SET CMP0003 NEW)
5+
CMAKE_POLICY(SET CMP0004 NEW)
6+
endif(COMMAND CMAKE_POLICY)
7+
8+
set (CMAKE_INSTALL_PREFIX /usr/share CACHE STRING "Install path prefix")
9+
10+
project (gazebo_models)
11+
string (TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)
12+
13+
exec_program(date ARGS -u +%Y-%m-%-dT%H:%M:%S OUTPUT_VARIABLE CURRENT_DATE)
14+
15+
set (MODEL_URI_LIST "" CACHE INTERNAL "Model URI List" FORCE)
16+
17+
# Convert install prefix to an absolute path, to support the common case of
18+
# doing this (which otherwise will fail during the install):`
19+
# cmake -DCMAKE_INSTALL_PREFIX=~/.gazebo ..
20+
get_filename_component(CMAKE_INSTALL_PREFIX_ABSOLUTE ${CMAKE_INSTALL_PREFIX}
21+
ABSOLUTE)
22+
23+
file(GLOB_RECURSE MODEL_CFGS "model.config")
24+
foreach (MODEL_CFG ${MODEL_CFGS})
25+
get_filename_component(dir ${MODEL_CFG} DIRECTORY) # get dir of model.config
26+
get_filename_component(dir ${dir} NAME) # get dirname only, not full path
27+
add_custom_target(${dir} ALL COMMAND mkdir -p ${PROJECT_BINARY_DIR}/${dir}
28+
COMMAND tar czvf ${PROJECT_BINARY_DIR}/${dir}/model.tar.gz ../${dir})
29+
30+
install (DIRECTORY ${dir} DESTINATION ${CMAKE_INSTALL_PREFIX_ABSOLUTE}/models)
31+
install (FILES ${PROJECT_BINARY_DIR}/${dir}/model.tar.gz DESTINATION
32+
${CMAKE_INSTALL_PREFIX_ABSOLUTE}/models/${dir})
33+
set(MODEL_URI_LIST "${MODEL_URI_LIST}<uri>file://${dir}</uri>\n")
34+
endforeach ()
35+
36+
configure_file("${CMAKE_SOURCE_DIR}/manifest.xml.in"
37+
"${PROJECT_BINARY_DIR}/manifest.xml")
38+
39+
install (FILES "${PROJECT_BINARY_DIR}/manifest.xml" DESTINATION
40+
${CMAKE_INSTALL_PREFIX_ABSOLUTE}/models/)
41+
42+
configure_file("${CMAKE_SOURCE_DIR}/database.config.in"
43+
"${PROJECT_BINARY_DIR}/database.config")
44+
45+
install (FILES "${PROJECT_BINARY_DIR}/database.config" DESTINATION
46+
${CMAKE_INSTALL_PREFIX_ABSOLUTE}/models/)
47+
48+
message (STATUS "Install path: ${CMAKE_INSTALL_PREFIX_ABSOLUTE}/models")
49+
50+
# This must always be last!
51+
include(CPack)

gazebo_models/LICENSE

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
Software License Agreement (Creative Commons Attribution 3.0 Unported)
2+
3+
Copyright 2012 Nathan Koenig
4+
5+
Licensed under the Creative Commons Attribution 3.0 Unported License
6+
(the "License"); you may not use this file except in compliance with the
7+
License. You may obtain a copy of the License at
8+
9+
http://creativecommons.org/licenses/by/3.0/
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.

gazebo_models/README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
This repository holds the [Gazebo](http://gazebosim.org) model database.
2+
3+
Learn more about the database [here](http://gazebosim.org/tutorials?tut=model_structure&cat=build_robot).
4+
5+
Learn how to contribute models [here](http://gazebosim.org/tutorials?tut=model_contrib&cat=build_robot).
Loading
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
2+
# File Created: 27.10.2016 19:35:26
3+
4+
newmtl Ambulance
5+
Ns 10.0000
6+
Ni 1.5000
7+
d 1.0000
8+
Tr 0.0000
9+
Tf 1.0000 1.0000 1.0000
10+
illum 2
11+
Ka 0.5882 0.5882 0.5882
12+
Kd 0.5882 0.5882 0.5882
13+
Ks 0.0000 0.0000 0.0000
14+
Ke 0.0000 0.0000 0.0000
15+
map_Ka ambulance.png
16+
map_Kd ambulance.png
17+
18+
newmtl Firetruck_Wheels
19+
Ns 10.0000
20+
Ni 1.5000
21+
d 1.0000
22+
Tr 0.0000
23+
Tf 1.0000 1.0000 1.0000
24+
illum 2
25+
Ka 0.5882 0.5882 0.5882
26+
Kd 0.5882 0.5882 0.5882
27+
Ks 0.0000 0.0000 0.0000
28+
Ke 0.0000 0.0000 0.0000
29+
map_Ka model://suv/materials/textures/wheels_01.png
30+
map_Kd model://suv/materials/textures/wheels_01.png

0 commit comments

Comments
 (0)