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

Fix/bota flag for gazebo #172

Merged
merged 2 commits into from
Nov 30, 2023
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
2 changes: 2 additions & 0 deletions moma_gazebo/launch/panda_moma_corner.launch
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<arg name="gui" default="true" />
<arg name="moveit" default="true" />
<arg name="rviz" default="true" />
<arg name="use_bota" default="false" />
<!-- This is the controller that moveit uses: -->
<arg name="controller" default="effort_joint_trajectory_controller" />
<arg name="world_name" default="$(find moma_gazebo)/worlds/moma_corner.world"/>
Expand All @@ -12,6 +13,7 @@
<arg name="use_gripper" default="true" />
<arg name="world" default="$(arg world_name)" />
<arg name="controller" default="$(arg controller)" />
<arg name="use_bota" default="$(arg use_bota)" />
</include>

<!-- Launch moveit as well. -->
Expand Down
2 changes: 2 additions & 0 deletions moveit_configs/panda_moveit_config/launch/gazebo.launch
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<arg name="paused" default="false" doc="Should the simulation directly be stopped at 0s?" />
<arg name="world" default="$(find moma_gazebo)/worlds/test.world" doc="Filename to a SDF World for gazebo to use" />
<arg name="rviz" default="false" doc="Should RVIz be launched?" />
<arg name="use_bota" default="false" doc="Should the bota be used?" />

<!-- Robot Customization -->
<arg name="arm_id" default="panda" doc="Name of the panda robot to spawn" />
Expand Down Expand Up @@ -41,6 +42,7 @@
<arg name="load_gripper" value="$(arg use_gripper)" />
<arg name="arm_id" value="$(arg arm_id)" />
<arg name="gazebo" value="$(arg gazebo)" />
<arg name="use_bota" value="$(arg use_bota)" />
<arg name="xacro_args" value="$(arg xacro_args)" />
</include>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@
<arg name="load_gripper" default="true" />
<arg name="arm_id" default="panda" />
<arg name="xacro_args" default="" />
<arg name="gazebo" default="false" />>
<arg name="gazebo" default="false" />
<arg name="use_bota" default="false" />

<!-- The name of the parameter under which the URDF is loaded -->
<arg name="robot_description" default="robot_description" />

<!-- Load universal robot description format (URDF) -->
<param name="$(arg robot_description)"
command="xacro '$(find moma_description)/urdf/panda.urdf.xacro' hand:=$(arg load_gripper) arm_id:=$(arg arm_id) gazebo:=$(arg gazebo) $(arg xacro_args)" />
command="xacro '$(find moma_description)/urdf/panda.urdf.xacro' hand:=$(arg load_gripper) arm_id:=$(arg arm_id) gazebo:=$(arg gazebo) $(arg xacro_args) use_bota:=$(arg use_bota)" />

</launch>
Loading