-
Notifications
You must be signed in to change notification settings - Fork 0
home
Anubhav edited this page Dec 19, 2022
·
3 revisions
Welcome to the MOIRs-MARK-2-URDF wiki!
moir_mark2_urdf_ros/config/module_config.yaml
moir_mark2_urdf_ros/urdf/modular_robot.urdf.xacro
moir_mark2_urdf_ros/urdf/material.xacro
-
moir_mark2_urdf_ros/meshes
(folder containing meshes for the modules for visualizing) moir_mark2_urdf_ros/scripts/ElementTree_pretty.py
moir_mark2_urdf_ros/scripts/moir_modular_composition_generator.py
-
moir_mark2_urdf_ros/scripts/moir_modular_generator_DH.py
The generated files will be saved inmoir_mark2_urdf_ros/urdf/generated/
Write DH parameters in module_config.yaml
robot_name: mod<n>r_name
offset_length: < in meters>
dh_config:
- /alpha /a /d /theta /H or L
Twist angle | Link length | Offset | Joint angle | Module Variant |
---|
-
n
is the number of DoF of the configuration. Example: mod6r_standard or mod2r_planar - Use
/alpha
in radians, for 90: 1.56 - Robot base is formed, just as a stand. Height of the stand is decided by the offset length.
Navigate to the directory: moir_mark2_urdf_ros/scripts
python moir_modular_generator_DH.py
Navigate to the main workspace.
source devel/setup.bash
cd /your_ws/src/moir_mark2_urdf_ros/urdf/generated
roslaunch urdf_tutorial display.launch model:=mod<n>r_name.xacro
taa daa...
This methods skips the usage of DH and allows the designer to assemble modules as desired in whatever twist angles.
To use this, first navigate to the directory: moir_mark2_urdf_ros/scripts
python moir_modular_compostion_generator.py
The following set of Instructions will be asked to the designed in the terminal. Put the appropriate values in instructed format given below.
- Enter the name of the robot: mod<n>r_<name>
- Enter the type configuration: 1 or 2 or 3 or 4
- Enter the initial offset length: (in meters)
- Enter the number of modules required: <n>
- Enter module configuration: refer below
for any arbitrary configuration, Best is to refer type of the configuration as 4 the enter module configuration will take command as follows,
Modular Variant and Unit | Twist_1 | Twist_2 | Link type |
---|
- E, as in Table 4 of this article
- Enter the name of the robot: mod4r_E
- Enter the type configuration: 4
- Enter the initial offset length: 0
- Enter the number of modules required: 4
- Enter module configuration: h1 0 0 0 and then enter, add again until the table is complete.
Modular Variant and Unit | Twist_1 | Twist_2 | Link type |
---|---|---|---|
H1 | 0 | 0 | 0 |
H2 | 0 | 0.785 | 0 |
L2 | 0 | -0.523 | 0 |
L2 | 0 | 0 | 0 |
- F, as in Table 4 of this article
- Enter the name of the robot: mod4r_F
- Enter the type configuration: 4
- Enter the initial offset length: 0
- Enter the number of modules required: 4
- Enter module configuration: refer below
Modular Variant and Unit | Twist_1 | Twist_2 | Link type |
---|---|---|---|
H1 | 0 | 0 | 0 |
H4 | 0 | 0.523 | 1 |
L4 | 0.785 | 0.785 | 0 |
L2 | 0 | 0 | 0 |
Once the file is generated, Navigate to the main workspace.
source devel/setup.bash
cd /your_ws/src/moir_mark2_urdf_ros/urdf/generated
roslaunch urdf_tutorial display.launch model:=mod<n>r_name.xacro