1
1
<launch >
2
- <!-- MongoDB -->
3
- <arg name =" db_path" default =" /opt/strands/mongodb_store" />
2
+ <arg name =" db_path" default =" /var/lib/robot/mongodb_store" />
4
3
<arg name =" port" default =" 62345" />
5
- <arg name =" defaults_path" default =" " />
6
-
7
- <param name =" mongodb_port" value =" $(arg port)" />
8
- <param name =" mongodb_host" value =" $(optenv HOSTNAME localhost)" />
4
+ <arg name =" repl_set_mode" default =" false" />
9
5
10
- <node name =" mongo_server" pkg =" mongodb_store" type =" mongodb_server.py" output =" screen" >
11
- <param name =" database_path" value =" $(arg db_path)" />
12
- </node >
6
+ <!-- MongoDB -->
7
+ <include file =" $(find mongodb_store)/launch/mongodb_store.launch" >
8
+ <arg name =" db_path" value =" $(arg db_path)" />
9
+ <arg name =" port" value =" $(arg port)" />
10
+ <arg name =" use_machine" value =" false" />
11
+ <arg name =" use_repl_set" value =" true"
12
+ if =" $(arg repl_set_mode)" />
13
+ <arg name =" repl_set" value =" rs0"
14
+ if =" $(arg repl_set_mode)" />
15
+ </include >
13
16
14
- <node name =" config_manager" pkg =" mongodb_store" type =" config_manager.py" output =" screen" >
15
- <param name =" defaults_path" value =" $(arg defaults_path)" />
17
+ <!-- when mongod is deployed as repl set mode, it is uncertain to be killed. -->
18
+ <!-- This is watcher checking if mongod exits successfully, and when not, kill mongod process. -->
19
+ <node name =" mongod_kill_watcher"
20
+ pkg =" jsk_robot_startup" type =" mongod_kill_watcher.py"
21
+ if =" $(arg enable_repl_set_mode)" >
22
+ <param name =" db_path" value =" $(arg db_path)" />
16
23
</node >
17
-
18
- <node name =" message_store" pkg =" mongodb_store" type =" message_store_node.py" output =" screen" />
19
-
20
- <node name =" replicator_node" pkg =" mongodb_store" type =" replicator_node.py" output =" screen" />
21
- </launch >
24
+ </launch >
0 commit comments