-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from Phylliade/phylliade/prismatic_joint
Release v3.2
- Loading branch information
Showing
25 changed files
with
585 additions
and
106 deletions.
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
Binary file not shown.
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 |
---|---|---|
|
@@ -38,9 +38,9 @@ | |
true, | ||
true, | ||
true, | ||
true, | ||
true, | ||
true, | ||
false, | ||
false, | ||
false, | ||
false | ||
], | ||
"last_link_vector": [ | ||
|
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 |
---|---|---|
|
@@ -38,9 +38,9 @@ | |
true, | ||
true, | ||
true, | ||
true, | ||
true, | ||
true, | ||
false, | ||
false, | ||
false, | ||
false | ||
], | ||
"last_link_vector": [ | ||
|
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,47 @@ | ||
# IKPy imports | ||
from ikpy import chain | ||
|
||
|
||
########################## Simple prismatic robot ############################### | ||
|
||
prismatic_robot_chain = chain.Chain.from_urdf_file( | ||
"./prismatic_robot.URDF", | ||
base_elements=[ | ||
"baseLink", "joint_baseLink_childA", "childA" | ||
], | ||
last_link_vector=[0, 1, 0], | ||
active_links_mask=[False, True, False], | ||
name="prismatic_robot", | ||
) | ||
|
||
prismatic_robot_chain.to_json_file(force=True) | ||
print("Saved chain: ", prismatic_robot_chain) | ||
|
||
########################## Prismatic mixed robot ############################### | ||
|
||
prismatic_mixed_robot_elements = [ | ||
"base_link", | ||
"base_link_base_slider_joint", | ||
"base_slider", | ||
"linear_actuator", | ||
"robot_base", | ||
"arm2", | ||
"link_2", | ||
"arm3", | ||
"link_3", | ||
"arm4", | ||
"link_4", | ||
"arm5", | ||
"link_5", | ||
] | ||
|
||
prismatic_mixed_robot_chain = chain.Chain.from_urdf_file( | ||
"./prismatic_mixed_robot.URDF", | ||
base_elements=prismatic_mixed_robot_elements, | ||
last_link_vector=[0, 0.18, 0], | ||
symbolic=False, | ||
name="prismatic_mixed_robot", | ||
active_links_mask=2 * [False] + [True] * 5 + [False]) | ||
|
||
prismatic_mixed_robot_chain.to_json_file(force=True) | ||
print("Saved chain: ", prismatic_mixed_robot_chain) |
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,124 @@ | ||
<?xml version="1.0"?> | ||
<robot name="robot" xmlns:xacro="http://ros.org/wiki/xacro"> | ||
<link name="base_link"> | ||
</link> | ||
<link name="base_slider"> | ||
</link> | ||
<joint name="base_link_base_slider_joint" type="fixed"> | ||
<parent link="base_link"/> | ||
<child link="base_slider"/> | ||
<origin xyz="0 0 0" rpy="0 -1.5707953 0"/> | ||
</joint> | ||
<joint name="linear_actuator" type="prismatic"> | ||
<parent link="base_slider"/> | ||
<child link="robot_base"/> | ||
<axis xyz="-1 -2.368514e-06 4.1005696e-06"/> | ||
<origin xyz="0 0 0" rpy="-0.5237906 1.5707916 1.0470034"/> | ||
<limit effort="10" lower="0" upper="0.4" velocity="10"/> | ||
</joint> | ||
<link name="robot_base"> | ||
<visual> | ||
<origin xyz="0.032 0.023 0.07" rpy="1.5707963 0 0"/> | ||
<geometry> | ||
<cylinder radius="0.036" length="0.046"/> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin xyz="0.032 0.023 0.07" rpy="1.5707963 0 0"/> | ||
<geometry> | ||
<cylinder radius="0.036" length="0.046"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name="arm2" type="revolute"> | ||
<parent link="robot_base"/> | ||
<child link="link_2"/> | ||
<axis xyz="0 -1 0"/> | ||
<limit effort="9.5" lower="-1.13446" upper="1.5708" velocity="1.5708"/> | ||
<origin xyz="0.033 0 0.07" rpy="0 0 0"/> | ||
</joint> | ||
<link name="link_2"> | ||
<visual> | ||
<origin xyz="0 -0.03 0.078" rpy="0 0 0"/> | ||
<geometry> | ||
<box size="0.07 0.06 0.21"/> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin xyz="0 -0.03 0.078" rpy="0 0 0"/> | ||
<geometry> | ||
<box size="0.07 0.06 0.21"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name="arm3" type="revolute"> | ||
<parent link="link_2"/> | ||
<child link="link_3"/> | ||
<axis xyz="0 -1 0"/> | ||
<limit effort="6" lower="-2.63545" upper="2.54818" velocity="1.5708"/> | ||
<origin xyz="0 0 0.155" rpy="0 0 0"/> | ||
</joint> | ||
<link name="link_3"> | ||
<visual> | ||
<origin xyz="0 0.0225 0.065" rpy="0 0 0"/> | ||
<geometry> | ||
<box size="0.06 0.045 0.19"/> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin xyz="0 0.0225 0.065" rpy="0 0 0"/> | ||
<geometry> | ||
<box size="0.06 0.045 0.19"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name="arm4" type="revolute"> | ||
<parent link="link_3"/> | ||
<child link="link_4"/> | ||
<axis xyz="0 -1 0"/> | ||
<limit effort="2" lower="-1.78024" upper="1.78024" velocity="1.5708"/> | ||
<origin xyz="0 0 0.135" rpy="0 0 0"/> | ||
</joint> | ||
<link name="link_4"> | ||
<visual> | ||
<origin xyz="0 0 0.056" rpy="0 0 0"/> | ||
<geometry> | ||
<box size="0.05 0.095 0.05"/> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin xyz="0 0 0.056" rpy="0 0 0"/> | ||
<geometry> | ||
<box size="0.05 0.095 0.05"/> | ||
</geometry> | ||
</collision> | ||
<visual> | ||
<origin xyz="0 -0.024 0.003" rpy="1.5707963 0 0"/> | ||
<geometry> | ||
<cylinder radius="0.027" length="0.047"/> | ||
</geometry> | ||
</visual> | ||
<collision> | ||
<origin xyz="0 -0.024 0.003" rpy="1.5707963 0 0"/> | ||
<geometry> | ||
<cylinder radius="0.027" length="0.047"/> | ||
</geometry> | ||
</collision> | ||
</link> | ||
<joint name="arm5" type="revolute"> | ||
<parent link="link_4"/> | ||
<child link="link_5"/> | ||
<axis xyz="0 0 1"/> | ||
<limit effort="1" lower="-2.92343" upper="2.92343" velocity="1.5708"/> | ||
<origin xyz="0 0 0.081" rpy="0 0 0"/> | ||
</joint> | ||
<link name="link_5"> | ||
</link> | ||
<link name="platform"> | ||
</link> | ||
<joint name="base_link_platform_joint" type="fixed"> | ||
<parent link="base_link"/> | ||
<child link="platform"/> | ||
<origin xyz="-0.24 -0.01 0" rpy="3.1415927 -1.5707927 3.1415927"/> | ||
</joint> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"elements": [ | ||
"base_link", | ||
"base_link_base_slider_joint", | ||
"base_slider", | ||
"linear_actuator", | ||
"robot_base", | ||
"arm2", | ||
"link_2", | ||
"arm3", | ||
"link_3", | ||
"arm4", | ||
"link_4", | ||
"arm5", | ||
"link_5" | ||
], | ||
"urdf_file": "prismatic_mixed_robot.URDF", | ||
"active_links_mask": [ | ||
false, | ||
false, | ||
true, | ||
true, | ||
true, | ||
true, | ||
true, | ||
false | ||
], | ||
"last_link_vector": [ | ||
0, | ||
0.18, | ||
0 | ||
], | ||
"name": "prismatic_mixed_robot", | ||
"version": "v1" | ||
} |
Oops, something went wrong.