Skip to content

Commit

Permalink
Merge pull request ros-industrial#60 from gavanderhoorn/issue58_mongo…
Browse files Browse the repository at this point in the history
…_perm_denied_crash

Fix for issue ros-industrial#58: make moveit mongodb location configurable
  • Loading branch information
shaun-edwards committed Jan 29, 2015
2 parents ffc8aeb + 3757daa commit 3353d55
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 16 deletions.
5 changes: 4 additions & 1 deletion abb_irb2400_moveit_config/launch/default_warehouse_db.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

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

<!-- If not specified, we'll use a default database location -->
<arg name="moveit_warehouse_database_path" default="$(find abb_irb2400_moveit_config)/default_warehouse_mongo_db" />

<!-- Launch the warehouse with a default database location -->
<include file="$(find abb_irb2400_moveit_config)/launch/warehouse.launch">
<arg name="moveit_warehouse_database_path" value="$(find abb_irb2400_moveit_config)/default_warehouse_mongo_db" />
<arg name="moveit_warehouse_database_path" value="$(arg moveit_warehouse_database_path)" />
</include>

<!-- If we want to reset the database, run this node -->
Expand Down
6 changes: 5 additions & 1 deletion abb_irb2400_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

<!-- By default, we do not start a database (it can be large) -->
<arg name="db" default="false" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find abb_irb2400_moveit_config)/default_warehouse_mongo_db" />

<!-- By default, we are not in debug mode -->
<arg name="debug" default="false" />
Expand Down Expand Up @@ -38,6 +40,8 @@
</include>

<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find abb_irb2400_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)"/>
<include file="$(find abb_irb2400_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>

</launch>
12 changes: 10 additions & 2 deletions abb_irb2400_moveit_config/launch/moveit_planning_execution.launch
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<arg name="sim" default="true" />
<arg name="robot_ip" unless="$(arg sim)" />

<!-- By default, we do not start a database (it can be large) -->
<arg name="db" default="false" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find abb_irb2400_moveit_config)/default_warehouse_mongo_db" />

<!-- load the robot_description parameter before launching ROS-I nodes -->
<include file="$(find abb_irb2400_moveit_config)/launch/planning_context.launch" >
<arg name="load_robot_description" value="true" />
Expand Down Expand Up @@ -43,7 +48,10 @@
<include file="$(find abb_irb2400_moveit_config)/launch/moveit_rviz.launch">
<arg name="config" value="true"/>
</include>

<include file="$(find abb_irb2400_moveit_config)/launch/default_warehouse_db.launch" />

<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find abb_irb2400_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>

</launch>
5 changes: 4 additions & 1 deletion abb_irb6640_moveit_config/launch/default_warehouse_db.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

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

<!-- If not specified, we'll use a default database location -->
<arg name="moveit_warehouse_database_path" default="$(find abb_irb6640_moveit_config)/default_warehouse_mongo_db" />

<!-- Launch the warehouse with a default database location -->
<include file="$(find abb_irb6640_moveit_config)/launch/warehouse.launch">
<arg name="moveit_warehouse_database_path" value="$(find abb_irb6640_moveit_config)/default_warehouse_mongo_db" />
<arg name="moveit_warehouse_database_path" value="$(arg moveit_warehouse_database_path)" />
</include>

<!-- If we want to reset the database, run this node -->
Expand Down
6 changes: 5 additions & 1 deletion abb_irb6640_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

<!-- By default, we do not start a database (it can be large) -->
<arg name="db" default="false" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find abb_irb6640_moveit_config)/default_warehouse_mongo_db" />

<!-- By default, we are not in debug mode -->
<arg name="debug" default="false" />
Expand Down Expand Up @@ -38,6 +40,8 @@
</include>

<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find abb_irb6640_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)"/>
<include file="$(find abb_irb6640_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>

</launch>
12 changes: 10 additions & 2 deletions abb_irb6640_moveit_config/launch/moveit_planning_execution.launch
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@
<arg name="sim" default="true" />
<arg name="robot_ip" unless="$(arg sim)" />

<!-- By default, we do not start a database (it can be large) -->
<arg name="db" default="false" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find abb_irb6640_moveit_config)/default_warehouse_mongo_db" />

<!-- load the robot_description parameter before launching ROS-I nodes -->
<include file="$(find abb_irb6640_moveit_config)/launch/planning_context.launch" >
<arg name="load_robot_description" value="true" />
Expand Down Expand Up @@ -43,7 +48,10 @@
<include file="$(find abb_irb6640_moveit_config)/launch/moveit_rviz.launch">
<arg name="config" value="true"/>
</include>

<include file="$(find abb_irb6640_moveit_config)/launch/default_warehouse_db.launch" />

<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find abb_irb6640_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>

</launch>
5 changes: 4 additions & 1 deletion irb_2400_moveit_config/launch/default_warehouse_db.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

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

<!-- If not specified, we'll use a default database location -->
<arg name="moveit_warehouse_database_path" default="$(find irb_2400_moveit_config)/default_warehouse_mongo_db" />

<!-- Launch the warehouse with a default database location -->
<include file="$(find irb_2400_moveit_config)/launch/warehouse.launch">
<arg name="moveit_warehouse_database_path" value="$(find irb_2400_moveit_config)/default_warehouse_mongo_db" />
<arg name="moveit_warehouse_database_path" value="$(arg moveit_warehouse_database_path)" />
</include>

<!-- If we want to reset the database, run this node -->
Expand Down
10 changes: 9 additions & 1 deletion irb_2400_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<launch>

<!-- By default, we do not start a database (it can be large) -->
<arg name="db" default="false" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find irb_2400_moveit_config)/default_warehouse_mongo_db" />

<include file="$(find irb_2400_moveit_config)/launch/planning_context.launch">
<arg name="load_robot_description" value="true"/>
</include>
Expand All @@ -20,6 +25,9 @@
<arg name="config" value="true"/>
</include>

<include file="$(find irb_2400_moveit_config)/launch/default_warehouse_db.launch" />
<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find irb_2400_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>

</launch>
14 changes: 11 additions & 3 deletions irb_2400_moveit_config/launch/moveit_planning_execution.launch
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@
<!-- - if sim=false, a robot_ip argument is required -->
<arg name="sim" default="true" />
<arg name="robot_ip" unless="$(arg sim)" />


<!-- By default, we do not start a database (it can be large) -->
<arg name="db" default="false" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find irb_2400_moveit_config)/default_warehouse_mongo_db" />

<!-- load the robot_description parameter before launching ROS-I nodes -->
<include file="$(find irb_2400_moveit_config)/launch/planning_context.launch" >
<arg name="load_robot_description" value="true" />
Expand Down Expand Up @@ -37,8 +42,11 @@
<include file="$(find irb_2400_moveit_config)/launch/moveit_rviz.launch">
<arg name="config" value="true" />
</include>

<include file="$(find irb_2400_moveit_config)/launch/default_warehouse_db.launch" />

<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find irb_2400_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>

</launch>

5 changes: 4 additions & 1 deletion irb_6640_moveit_config/launch/default_warehouse_db.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

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

<!-- If not specified, we'll use a default database location -->
<arg name="moveit_warehouse_database_path" default="$(find irb_6640_moveit_config)/default_warehouse_mongo_db" />

<!-- Launch the warehouse with a default database location -->
<include file="$(find irb_6640_moveit_config)/launch/warehouse.launch">
<arg name="moveit_warehouse_database_path" value="$(find irb_6640_moveit_config)/default_warehouse_mongo_db" />
<arg name="moveit_warehouse_database_path" value="$(arg moveit_warehouse_database_path)" />
</include>

<!-- If we want to reset the database, run this node -->
Expand Down
6 changes: 5 additions & 1 deletion irb_6640_moveit_config/launch/demo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

<!-- By default, we do not start a database (it can be large) -->
<arg name="db" default="false" />
<!-- Allow user to specify database location -->
<arg name="db_path" default="$(find irb_6640_moveit_config)/default_warehouse_mongo_db" />

<!-- By default, we are not in debug mode -->
<arg name="debug" default="false" />
Expand Down Expand Up @@ -38,6 +40,8 @@
</include>

<!-- If database loading was enabled, start mongodb as well -->
<include file="$(find irb_6640_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)"/>
<include file="$(find irb_6640_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)">
<arg name="moveit_warehouse_database_path" value="$(arg db_path)"/>
</include>

</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
</include>


<include file="$(find irb_6640_moveit_config)/launch/default_warehouse_db.launch" />
<include file="$(find irb_6640_moveit_config)/launch/default_warehouse_db.launch" if="$(arg db)" />



Expand Down

0 comments on commit 3353d55

Please sign in to comment.