Skip to content

Commit 53de4e9

Browse files
committed
first pass at 2D height map generation. there is a clipping issue that needs to be investigated
1 parent 1e8823a commit 53de4e9

Some content is hidden

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

44 files changed

+4645
-57
lines changed

‎CMakeCache.txt‎

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# This is the CMakeCache file.
2+
# For build in directory: /home/mac/Developer/ros-examples
3+
# It was generated by CMake: /usr/bin/cmake
4+
# You can edit this file to change values found and used by cmake.
5+
# If you do not want to change any of the values, simply exit the editor.
6+
# If you do want to change a value, simply edit, save, and exit the editor.
7+
# The syntax for the file is as follows:
8+
# KEY:TYPE=VALUE
9+
# KEY is the name of a variable in the cache.
10+
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
11+
# VALUE is the current value for the KEY.
12+
13+
########################
14+
# EXTERNAL cache entries
15+
########################
16+
17+
18+
########################
19+
# INTERNAL cache entries
20+
########################
21+
22+
//This is the directory where this CMakeCache.txt was created
23+
CMAKE_CACHEFILE_DIR:INTERNAL=/home/mac/Developer/ros-examples
24+
//Major version of cmake used to create the current loaded cache
25+
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
26+
//Minor version of cmake used to create the current loaded cache
27+
CMAKE_CACHE_MINOR_VERSION:INTERNAL=2
28+
//Patch version of cmake used to create the current loaded cache
29+
CMAKE_CACHE_PATCH_VERSION:INTERNAL=2
30+
//Path to CMake executable.
31+
CMAKE_COMMAND:INTERNAL=/usr/bin/cmake
32+
//Path to cpack program executable.
33+
CMAKE_CPACK_COMMAND:INTERNAL=/usr/bin/cpack
34+
//Path to ctest program executable.
35+
CMAKE_CTEST_COMMAND:INTERNAL=/usr/bin/ctest
36+
//Path to CMake installation.
37+
CMAKE_ROOT:INTERNAL=/usr/share/cmake-3.2
38+

‎CMakeFiles/cmake.check_cache‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# This file is generated by cmake for dependency checking of the CMakeCache.txt file

‎devel/_setup_util.py‎

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -72,42 +72,42 @@ def rollback_env_variables(environ, env_var_subfolders):
7272
subfolders = env_var_subfolders[key]
7373
if not isinstance(subfolders, list):
7474
subfolders = [subfolders]
75-
for subfolder in subfolders:
76-
value = _rollback_env_variable(unmodified_environ, key, subfolder)
77-
if value is not None:
78-
environ[key] = value
79-
lines.append(assignment(key, value))
75+
value = _rollback_env_variable(unmodified_environ, key, subfolders)
76+
if value is not None:
77+
environ[key] = value
78+
lines.append(assignment(key, value))
8079
if lines:
8180
lines.insert(0, comment('reset environment variables by unrolling modifications based on all workspaces in CMAKE_PREFIX_PATH'))
8281
return lines
8382

8483

85-
def _rollback_env_variable(environ, name, subfolder):
84+
def _rollback_env_variable(environ, name, subfolders):
8685
'''
8786
For each catkin workspace in CMAKE_PREFIX_PATH remove the first entry from env[NAME] matching workspace + subfolder.
8887
89-
:param subfolder: str '' or subfoldername that may start with '/'
88+
:param subfolders: list of str '' or subfoldername that may start with '/'
9089
:returns: the updated value of the environment variable.
9190
'''
9291
value = environ[name] if name in environ else ''
9392
env_paths = [path for path in value.split(os.pathsep) if path]
9493
value_modified = False
95-
if subfolder:
96-
if subfolder.startswith(os.path.sep) or (os.path.altsep and subfolder.startswith(os.path.altsep)):
97-
subfolder = subfolder[1:]
98-
if subfolder.endswith(os.path.sep) or (os.path.altsep and subfolder.endswith(os.path.altsep)):
99-
subfolder = subfolder[:-1]
100-
for ws_path in _get_workspaces(environ, include_fuerte=True, include_non_existing=True):
101-
path_to_find = os.path.join(ws_path, subfolder) if subfolder else ws_path
102-
path_to_remove = None
103-
for env_path in env_paths:
104-
env_path_clean = env_path[:-1] if env_path and env_path[-1] in [os.path.sep, os.path.altsep] else env_path
105-
if env_path_clean == path_to_find:
106-
path_to_remove = env_path
107-
break
108-
if path_to_remove:
109-
env_paths.remove(path_to_remove)
110-
value_modified = True
94+
for subfolder in subfolders:
95+
if subfolder:
96+
if subfolder.startswith(os.path.sep) or (os.path.altsep and subfolder.startswith(os.path.altsep)):
97+
subfolder = subfolder[1:]
98+
if subfolder.endswith(os.path.sep) or (os.path.altsep and subfolder.endswith(os.path.altsep)):
99+
subfolder = subfolder[:-1]
100+
for ws_path in _get_workspaces(environ, include_fuerte=True, include_non_existing=True):
101+
path_to_find = os.path.join(ws_path, subfolder) if subfolder else ws_path
102+
path_to_remove = None
103+
for env_path in env_paths:
104+
env_path_clean = env_path[:-1] if env_path and env_path[-1] in [os.path.sep, os.path.altsep] else env_path
105+
if env_path_clean == path_to_find:
106+
path_to_remove = env_path
107+
break
108+
if path_to_remove:
109+
env_paths.remove(path_to_remove)
110+
value_modified = True
111111
new_value = os.pathsep.join(env_paths)
112112
return new_value if value_modified else None
113113

@@ -263,7 +263,7 @@ def _parse_arguments(args=None):
263263
sys.exit(1)
264264

265265
# environment at generation time
266-
CMAKE_PREFIX_PATH = '/home/mac/Developer/ros-examples/devel;/opt/ros/indigo'.split(';')
266+
CMAKE_PREFIX_PATH = '/opt/ros/indigo'.split(';')
267267
# prepend current workspace if not already part of CPP
268268
base_path = os.path.dirname(__file__)
269269
if base_path not in CMAKE_PREFIX_PATH:

‎devel/share/fusion/cmake/fusionConfig.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ foreach(library ${libraries})
122122
set(lib_path "")
123123
set(lib "${library}-NOTFOUND")
124124
# since the path where the library is found is returned we have to iterate over the paths manually
125-
foreach(path /home/mac/Developer/ros-examples/devel/lib;/home/mac/Developer/ros-examples/devel/lib;/opt/ros/indigo/lib)
125+
foreach(path /home/mac/Developer/ros-examples/devel/lib;/opt/ros/indigo/lib)
126126
find_library(lib ${library}
127127
PATHS ${path}
128128
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)

‎devel/share/lidar/cmake/lidarConfig.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ foreach(library ${libraries})
122122
set(lib_path "")
123123
set(lib "${library}-NOTFOUND")
124124
# since the path where the library is found is returned we have to iterate over the paths manually
125-
foreach(path /home/mac/Developer/ros-examples/devel/lib;/home/mac/Developer/ros-examples/devel/lib;/opt/ros/indigo/lib)
125+
foreach(path /home/mac/Developer/ros-examples/devel/lib;/opt/ros/indigo/lib)
126126
find_library(lib ${library}
127127
PATHS ${path}
128128
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)

‎devel/share/radar/cmake/radarConfig.cmake‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ foreach(library ${libraries})
122122
set(lib_path "")
123123
set(lib "${library}-NOTFOUND")
124124
# since the path where the library is found is returned we have to iterate over the paths manually
125-
foreach(path /home/mac/Developer/ros-examples/devel/lib;/home/mac/Developer/ros-examples/devel/lib;/opt/ros/indigo/lib)
125+
foreach(path /home/mac/Developer/ros-examples/devel/lib;/opt/ros/indigo/lib)
126126
find_library(lib ${library}
127127
PATHS ${path}
128128
NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH)

0 commit comments

Comments
 (0)