Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[devlop/fetch] [jsk_robot_startup/lifelog] Add replicate_on_write arg to mongodb.launch to search at replication server #1802

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jsk_fetch_robot/jsk_fetch_startup/launch/fetch_lifelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<arg name="map_frame" default="map" />
<arg name="vital_check" default="false" />
<arg name="extra_collections" default="[go_to_kitchen]" />
<arg name="replicate_on_write" default="true"/>

<include file="$(find jsk_fetch_startup)/jsk_fetch.machine" />

Expand All @@ -13,12 +14,14 @@
<arg name="port" value="27017" />
<arg name="repl_set_mode" value="false" />
<arg name="extra_collections" value="$(arg extra_collections)" />
<arg name="replicate_on_write" value="$(arg replicate_on_write)"/>
</include>
<include file="$(find jsk_robot_startup)/lifelog/mongodb.launch"
unless="$(arg use_system_mongod)">
<arg name="use_daemon" value="false"/>
<arg name="repl_set_mode" value="false" />
<arg name="extra_collections" value="$(arg extra_collections)" />
<arg name="replicate_on_write" value="$(arg replicate_on_write)"/>
</include>

<include file="$(find jsk_robot_startup)/lifelog/common_logger.launch">
Expand Down
2 changes: 2 additions & 0 deletions jsk_robot_common/jsk_robot_startup/lifelog/mongodb.launch
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<arg name="replicator_param_path"
default="$(find jsk_robot_startup)/lifelog/mongodb_replication_params.yaml" />
<arg name="extra_collections" default="" />
<arg name="replicate_on_write" default="false"/>

<arg name="test_mode" default="false" />

Expand All @@ -25,6 +26,7 @@
output="screen" machine="$(arg machine)">
<rosparam subst_value="true" if="$(eval arg('extra_collections') != '')">
extra_collections: $(arg extra_collections)
replicate_on_write: $(arg replicate_on_write)
</rosparam>
</node>
</group>
Expand Down