-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
014238f
commit ae3c180
Showing
11 changed files
with
400 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env python | ||
PACKAGE = "ufomap_mapping" | ||
|
||
from dynamic_reconfigure.parameter_generator_catkin import * | ||
|
||
gen = ParameterGenerator() | ||
|
||
# Name Type Level Description Default Min Max | ||
gen.add("frame_id", str_t, 1, "Frame id", "map") | ||
|
||
gen.add("max_range", double_t, 2, "Max range (m) when integrating data into map", 7.0, 0.0, 100.0) | ||
|
||
gen.add("insert_discrete", bool_t, 3, "Enable discrete integration", True) | ||
gen.add("insert_depth", int_t, 3, "Integration depth of the octree", 0, 0, 10) | ||
gen.add("insert_n", int_t, 3, "The n in integration for UFOMap, 0 or 2 recommended", 0, 0, 10) | ||
gen.add("clear_robot", bool_t, 3, "Clear map at robot position", True) | ||
|
||
gen.add("robot_height", double_t, 4, "Robot height (m)", 0.2, 0.0, 100.0) | ||
gen.add("robot_radius", double_t, 4, "Robot radius (m)", 0.5, 0.0, 100.0) | ||
|
||
gen.add("pub_rate", double_t, 5, "How often to publish map (/s)", 1.0, 0.0, 100.0) | ||
|
||
gen.add("transform_timeout", double_t, 6, "How long to wait for transform (s)", 0.1, 0.0, 100.0) | ||
|
||
gen.add("cloud_in_queue_size", int_t, 7, "Queue size for cloud_in", 10, 0, 10000) | ||
gen.add("map_queue_size", int_t, 7, "Queue size for map", 1, 0, 10000) | ||
gen.add("map_binary_queue_size", int_t, 7, "Queue size for map_binary", 1, 0, 10000) | ||
gen.add("map_cloud_queue_size", int_t, 7, "Queue size for map_cloud", 1, 0, 10000) | ||
|
||
gen.add("map_latch", bool_t, 8, "Enable latched map topic", False) | ||
gen.add("map_binary_latch", bool_t, 8, "Enable latched map binary topic", False) | ||
gen.add("map_cloud_latch", bool_t, 8, "Enable latched map cloud topic", False) | ||
|
||
exit(gen.generate(PACKAGE, "ufomap_mapping", "Server")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#ifndef UFOMAP_MAPPING_SERVER_NODELET_H | ||
#define UFOMAP_MAPPING_SERVER_NODELET_H | ||
|
||
#include <nodelet/nodelet.h> | ||
|
||
#include <ufomap_mapping/server.h> | ||
|
||
#include <memory> | ||
|
||
namespace ufomap_mapping | ||
{ | ||
class UFOMapServerNodelet : public nodelet::Nodelet | ||
{ | ||
private: | ||
std::shared_ptr<UFOMapServer> server_; | ||
|
||
public: | ||
void onInit() override; | ||
}; | ||
} // namespace ufomap_mapping | ||
|
||
#endif // UFOMAP_MAPPING_SERVER_NODELET_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" ?> | ||
<launch> | ||
<arg name="resolution" default="0.1" /> | ||
<arg name="depth_levels" default="16" /> | ||
<arg name="multithreaded" default="false" /> | ||
|
||
<node pkg="ufomap_mapping" type="ufomap_mapping_server_node" name="ufomap_mapping_server_node" output="log" required="true"> | ||
<remap from="cloud_in" to="/camera/depth/points" /> | ||
|
||
<param name="multithreaded" value="$(arg multithreaded)" /> | ||
|
||
<param name="resolution" value="$(arg resolution)" /> | ||
<param name="depth_levels" value="$(arg depth_levels)" /> | ||
</node> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" ?> | ||
<launch> | ||
<arg name="nodelet_manager" default="ufomap_mapping_server_nodelet_manager" /> | ||
|
||
<arg name="resolution" default="0.1" /> | ||
<arg name="depth_levels" default="16" /> | ||
<arg name="multithreaded" default="false" /> | ||
|
||
<node pkg="nodelet" type="nodelet" name="$(arg nodelet_manager)" args="manager" output="screen"> | ||
<param name="num_worker_threads" value="12" /> | ||
</node> | ||
|
||
<node pkg="nodelet" type="nodelet" name="ufomap_mapping_server_nodelet" args="load ufomap_mapping/UFOMapServerNodelet $(arg nodelet_manager)" output="log" required="true"> | ||
<remap from="cloud_in" to="/camera/depth/points" /> | ||
|
||
<param name="multithreaded" value="$(arg multithreaded)" /> | ||
|
||
<param name="resolution" value="$(arg resolution)" /> | ||
<param name="depth_levels" value="$(arg depth_levels)" /> | ||
</node> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<library path="lib/libufomap_mapping_server_nodelet"> | ||
<class name="ufomap_mapping/UFOMapServerNodelet" type="ufomap_mapping::UFOMapServerNodelet" base_class_type="nodelet::Nodelet"> | ||
<description> | ||
This is the UFOMap mapping server Nodelet. | ||
</description> | ||
</class> | ||
</library> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.