Skip to content

Commit 2f6b9e6

Browse files
committed
Updating version
2 parents 5d7a265 + dfdd17d commit 2f6b9e6

File tree

5 files changed

+221
-0
lines changed

5 files changed

+221
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@
55

66
See the [Franka Control Interface (FCI) documentation][fci-docs] for more information.
77

8+
## My Changes
9+
10+
In order to integrate the panda robot into gazebo I made changes to the following files:
11+
12+
- franka_description/robots/hand.xacro
13+
- franka_description/robots/panda_arm.xacro
14+
- franka_description/robots/panda_arm_hand.urdf.xacro
15+
16+
I added the following files to the repository:
17+
18+
- franka_description/robots/panda.gazebo.xacro
19+
- franka_description/robots/panda.transmission.xacro
20+
821
## License
922

1023
All packages of `franka_ros` are licensed under the [Apache 2.0 license][apache-2.0].
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
<?xml version="1.0"?>
2+
3+
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
4+
5+
<xacro:macro name="panda_gazebo" params="robot_name">
6+
7+
<!-- Link0 -->
8+
<gazebo reference="${robot_name}_link0">
9+
<material>Gazebo/Grey</material>
10+
<mu1>0.2</mu1>
11+
<mu2>0.2</mu2>
12+
</gazebo>
13+
14+
<!-- Link1 -->
15+
<gazebo reference="${robot_name}_link1">
16+
<material>Gazebo/White</material>
17+
<mu1>0.2</mu1>
18+
<mu2>0.2</mu2>
19+
</gazebo>
20+
21+
<!-- Link2 -->
22+
<gazebo reference="${robot_name}_link2">
23+
<material>Gazebo/White</material>
24+
<mu1>0.2</mu1>
25+
<mu2>0.2</mu2>
26+
</gazebo>
27+
28+
<!-- Link3 -->
29+
<gazebo reference="${robot_name}_link3">
30+
<material>Gazebo/White</material>
31+
<mu1>0.2</mu1>
32+
<mu2>0.2</mu2>
33+
</gazebo>
34+
35+
<!-- Link4 -->
36+
<gazebo reference="${robot_name}_link4">
37+
<material>Gazebo/White</material>
38+
<mu1>0.2</mu1>
39+
<mu2>0.2</mu2>
40+
</gazebo>
41+
42+
<!-- Link5 -->
43+
<gazebo reference="${robot_name}_link5">
44+
<material>Gazebo/White</material>
45+
<mu1>0.2</mu1>
46+
<mu2>0.2</mu2>
47+
</gazebo>
48+
49+
<!-- Link6 -->
50+
<gazebo reference="${robot_name}_link6">
51+
<material>Gazebo/White</material>
52+
<mu1>0.2</mu1>
53+
<mu2>0.2</mu2>
54+
</gazebo>
55+
56+
<!-- Link7 -->
57+
<gazebo reference="${robot_name}_link7">
58+
<material>Gazebo/Grey</material>
59+
<mu1>0.2</mu1>
60+
<mu2>0.2</mu2>
61+
</gazebo>
62+
63+
<!-- Link8 -->
64+
<gazebo reference="${robot_name}_link8">
65+
<material>Gazebo/Grey</material>
66+
<mu1>0.2</mu1>
67+
<mu2>0.2</mu2>
68+
</gazebo>
69+
70+
<!-- LinkHand -->
71+
<gazebo reference="${robot_name}_hand">
72+
<material>Gazebo/Grey</material>
73+
<mu1>0.2</mu1>
74+
<mu2>0.2</mu2>
75+
</gazebo>
76+
77+
<!-- LinkRightFinger -->
78+
<gazebo reference="${robot_name}_rightfinger">
79+
<material>Gazebo/Grey</material>
80+
<mu1>0.2</mu1>
81+
<mu2>0.2</mu2>
82+
</gazebo>
83+
84+
<!-- LinkLeftFinger -->
85+
<gazebo reference="${robot_name}_leftfinger">
86+
<material>Gazebo/Grey</material>
87+
<mu1>0.2</mu1>
88+
<mu2>0.2</mu2>
89+
</gazebo>
90+
91+
</xacro:macro>
92+
93+
</robot>
94+
Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
<?xml version="1.0"?>
2+
<robot xmlns:xacro="http://www.ros.org/wiki/xacro">
3+
<xacro:macro name="panda_transmission" params="robot_name">
4+
5+
6+
<!-- Load Gazebo lib and set the robot namespace -->
7+
<gazebo>
8+
<plugin name="gazebo_ros_control" filename="libgazebo_ros_control.so">
9+
<!-- <robotNamespace>/${robot_name}</robotNamespace> -->
10+
</plugin>
11+
</gazebo>
12+
13+
<transmission name="${robot_name}_tran_1">
14+
<type>transmission_interface/SimpleTransmission</type>
15+
<joint name="${robot_name}_joint1">
16+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
17+
</joint>
18+
<actuator name="${robot_name}_motor_1">
19+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
20+
<mechanicalReduction>1</mechanicalReduction>
21+
</actuator>
22+
</transmission>
23+
24+
<transmission name="${robot_name}_tran_2">
25+
<type>transmission_interface/SimpleTransmission</type>
26+
<joint name="${robot_name}_joint2">
27+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
28+
</joint>
29+
<actuator name="${robot_name}_motor_2">
30+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
31+
<mechanicalReduction>1</mechanicalReduction>
32+
</actuator>
33+
</transmission>
34+
35+
<transmission name="${robot_name}_tran_3">
36+
<type>transmission_interface/SimpleTransmission</type>
37+
<joint name="${robot_name}_joint3">
38+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
39+
</joint>
40+
<actuator name="${robot_name}_motor_3">
41+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
42+
<mechanicalReduction>1</mechanicalReduction>
43+
</actuator>
44+
</transmission>
45+
46+
<transmission name="${robot_name}_tran_4">
47+
<type>transmission_interface/SimpleTransmission</type>
48+
<joint name="${robot_name}_joint4">
49+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
50+
</joint>
51+
<actuator name="${robot_name}_motor_4">
52+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
53+
<mechanicalReduction>1</mechanicalReduction>
54+
</actuator>
55+
</transmission>
56+
57+
<transmission name="${robot_name}_tran_5">
58+
<type>transmission_interface/SimpleTransmission</type>
59+
<joint name="${robot_name}_joint5">
60+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
61+
</joint>
62+
<actuator name="${robot_name}_motor_5">
63+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
64+
<mechanicalReduction>1</mechanicalReduction>
65+
</actuator>
66+
</transmission>
67+
68+
<transmission name="${robot_name}_tran_6">
69+
<type>transmission_interface/SimpleTransmission</type>
70+
<joint name="${robot_name}_joint6">
71+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
72+
</joint>
73+
<actuator name="${robot_name}_motor_6">
74+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
75+
<mechanicalReduction>1</mechanicalReduction>
76+
</actuator>
77+
</transmission>
78+
79+
<transmission name="${robot_name}_tran_7">
80+
<type>transmission_interface/SimpleTransmission</type>
81+
<joint name="${robot_name}_joint7">
82+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
83+
</joint>
84+
<actuator name="${robot_name}_motor_7">
85+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
86+
<mechanicalReduction>1</mechanicalReduction>
87+
</actuator>
88+
</transmission>
89+
90+
<transmission name="${robot_name}_leftfinger">
91+
<type>transmission_interface/SimpleTransmission</type>
92+
<joint name="${robot_name}_finger_joint1">
93+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
94+
</joint>
95+
<actuator name="${robot_name}_finger_joint1">
96+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
97+
<mechanicalReduction>1</mechanicalReduction>
98+
</actuator>
99+
</transmission>
100+
101+
<transmission name="${robot_name}_rightfinger">
102+
<type>transmission_interface/SimpleTransmission</type>
103+
<joint name="${robot_name}_finger_joint2">
104+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
105+
</joint>
106+
<actuator name="${robot_name}_finger_joint2">
107+
<hardwareInterface>hardware_interface/EffortJointInterface</hardwareInterface>
108+
<mechanicalReduction>1</mechanicalReduction>
109+
</actuator>
110+
</transmission>
111+
</xacro:macro>
112+
</robot>

franka_example_controllers/launch/hiro_cartesian_impedance_example_controller.launch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<launch>
33
<arg name="robot" default="fr3" doc="choose your robot. Possible values: [panda, fr3]"/>
44
<arg name="arm_id" default="$(arg robot)" />
5+
<arg name="robot_ip" default="192.168.0.198"/>
56
<include file="$(find franka_control)/launch/franka_control.launch" pass_all_args="true"/>
67
<rosparam command="load" file="$(find franka_example_controllers)/config/franka_example_controllers.yaml" subst_value="true" />
78
<node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="hiro_cartesian_impedance_example_controller"/>

franka_example_controllers/launch/hiro_joint_impedance_example_controller.launch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<launch>
33
<arg name="robot" default="fr3" doc="choose your robot. Possible values: [panda, fr3]"/>
44
<arg name="arm_id" default="$(arg robot)" />
5+
<arg name="robot_ip" default="192.168.0.198"/>
56
<include file="$(find franka_control)/launch/franka_control.launch" pass_all_args="true"/>
67
<rosparam command="load" file="$(find franka_example_controllers)/config/franka_example_controllers.yaml" subst_value="true" />
78
<node name="controller_spawner" pkg="controller_manager" type="spawner" respawn="false" output="screen" args="hiro_joint_impedance_example_controller"/>

0 commit comments

Comments
 (0)