-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update crane_plus_gazebo #30
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9a6aa5a
Move crane+ on gazebo
ShotaAk 4868c91
Remove cube model from gazebo
ShotaAk 7622b54
Remove gripper model parameters
ShotaAk ba37066
Update README
ShotaAk 40630a4
Refactoring
ShotaAk 72e8747
Merge remote-tracking branch 'origin/master' into crane_plus_gazebo_c…
ShotaAk f9c5d25
Fix README
ShotaAk 1ed1ec8
Update examples' README
ShotaAk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,56 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro"> | ||
|
||
<xacro:macro name="gazebo_robot_settings" | ||
params="name_link_base | ||
name_link_1 | ||
name_link_2 | ||
name_link_3 | ||
name_link_4 | ||
name_link_hand"> | ||
|
||
<gazebo> | ||
<plugin filename="libgazebo_ros2_control.so" name="gazebo_ros2_control"> | ||
<robot_sim_type>gazebo_ros2_control/GazeboSystem</robot_sim_type> | ||
<parameters>$(find crane_plus_control)/config/crane_plus_controllers.yaml</parameters> | ||
</plugin> | ||
</gazebo> | ||
|
||
<gazebo reference="${name_link_base}"> | ||
<mu1>0.2</mu1> | ||
<mu2>0.2</mu2> | ||
<material>Gazebo/Black</material> | ||
</gazebo> | ||
|
||
<gazebo reference="${name_link_1}"> | ||
<mu1>0.2</mu1> | ||
<mu2>0.2</mu2> | ||
<material>Gazebo/White</material> | ||
</gazebo> | ||
|
||
<gazebo reference="${name_link_2}"> | ||
<mu1>0.2</mu1> | ||
<mu2>0.2</mu2> | ||
<material>Gazebo/Black</material> | ||
</gazebo> | ||
|
||
<gazebo reference="${name_link_3}"> | ||
<mu1>0.2</mu1> | ||
<mu2>0.2</mu2> | ||
<material>Gazebo/White</material> | ||
</gazebo> | ||
|
||
<gazebo reference="${name_link_4}"> | ||
<mu1>0.2</mu1> | ||
<mu2>0.2</mu2> | ||
<material>Gazebo/Black</material> | ||
</gazebo> | ||
|
||
<gazebo reference="${name_link_hand}"> | ||
<mu1>0.2</mu1> | ||
<mu2>0.2</mu2> | ||
<material>Gazebo/White</material> | ||
</gazebo> | ||
|
||
</xacro:macro> | ||
</robot> |
79 changes: 79 additions & 0 deletions
79
crane_plus_description/urdf/crane_plus.gazebo_ros2_control.xacro
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,79 @@ | ||
<?xml version="1.0"?> | ||
<robot xmlns:xacro="http://www.ros.org/wiki/xacro"> | ||
|
||
<xacro:macro name="crane_plus_gazebo_ros2_control_settings" | ||
params="name | ||
name_joint_1 | ||
name_joint_2 | ||
name_joint_3 | ||
name_joint_4 | ||
name_joint_hand | ||
joint_1_lower_limit | ||
joint_1_upper_limit | ||
joint_2_lower_limit | ||
joint_2_upper_limit | ||
joint_3_lower_limit | ||
joint_3_upper_limit | ||
joint_4_lower_limit | ||
joint_4_upper_limit | ||
joint_hand_lower_limit | ||
joint_hand_upper_limit"> | ||
|
||
<ros2_control name="${name}" type="system"> | ||
<hardware> | ||
<plugin>gazebo_ros2_control/GazeboSystem</plugin> | ||
</hardware> | ||
|
||
<joint name="${name_joint_1}"> | ||
<command_interface name="position"> | ||
<param name="min">${joint_1_lower_limit}</param> | ||
<param name="max">${joint_1_upper_limit}</param> | ||
</command_interface> | ||
<state_interface name="position"/> | ||
<state_interface name="velocity"/> | ||
<state_interface name="effort"/> | ||
</joint> | ||
|
||
<joint name="${name_joint_2}"> | ||
<command_interface name="position"> | ||
<param name="min">${joint_2_lower_limit}</param> | ||
<param name="max">${joint_2_upper_limit}</param> | ||
</command_interface> | ||
<state_interface name="position"/> | ||
<state_interface name="velocity"/> | ||
<state_interface name="effort"/> | ||
</joint> | ||
|
||
<joint name="${name_joint_3}"> | ||
<command_interface name="position"> | ||
<param name="min">${joint_3_lower_limit}</param> | ||
<param name="max">${joint_3_upper_limit}</param> | ||
</command_interface> | ||
<state_interface name="position"/> | ||
<state_interface name="velocity"/> | ||
<state_interface name="effort"/> | ||
</joint> | ||
|
||
<joint name="${name_joint_4}"> | ||
<command_interface name="position"> | ||
<param name="min">${joint_4_lower_limit}</param> | ||
<param name="max">${joint_4_upper_limit}</param> | ||
</command_interface> | ||
<state_interface name="position"/> | ||
<state_interface name="velocity"/> | ||
<state_interface name="effort"/> | ||
</joint> | ||
|
||
<joint name="${name_joint_hand}"> | ||
<command_interface name="position"> | ||
<param name="min">${joint_hand_lower_limit}</param> | ||
<param name="max">${joint_hand_upper_limit}</param> | ||
</command_interface> | ||
<state_interface name="position"/> | ||
<state_interface name="velocity"/> | ||
<state_interface name="effort"/> | ||
</joint> | ||
|
||
</ros2_control> | ||
</xacro:macro> | ||
</robot> |
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
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 |
---|---|---|
|
@@ -2,18 +2,13 @@ | |
|
||
CRANE+V2 のGazeboシミュレーションパッケージです。 | ||
|
||
**現在、Gazebo上のCRANE+V2を動かすことは出来ません** | ||
|
||
`crane_plus_gazebo`は | ||
[gazebo_ros2_control](https://github.com/ros-simulation/gazebo_ros2_control)及び | ||
[ros2_control](https://github.com/ros-controls/ros2_control) | ||
の開発状況に依存しています。 | ||
|
||
## ノードの起動 | ||
|
||
次のコマンドを実行するとGazeboが起動し、CRANE+V2モデルと、Table、Cubeが表示がされます。 | ||
次のコマンドを実行するとGazeboが起動し、CRANE+V2モデルとTableが表示されます。 | ||
|
||
初回起動時はTableのモデルをダウンロードするため、モデルの表示に時間がかかることがあります。 | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. CRANE-X7のReadmeに記載しているのと同様に、次のような一文を追加したいです。 |
||
初回起動時はTableとCubeのモデルをダウンロードするため、モデルの表示に時間がかかることがあります。 | ||
実機との接続や`crane_plus_examples/launch/demo.launch/py`の実行は必要ありません。 | ||
|
||
```sh | ||
$ ros2 launch crane_plus_gazebo crane_plus_gazebo.launch.py | ||
|
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
同様の文言がルートのReadme.mdにも残っているので編集をお願いします。