Skip to content

Commit d021655

Browse files
authored
Merge pull request #2 from Woolfrey/devel
I approve of my own changes.
2 parents 67dae6c + c3d88e3 commit d021655

18 files changed

+1149
-163
lines changed

README.md

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ In essence, it serves as an example of how to implement the [serial_link_action_
1818
- [Installation](#floppy_disk-installation)
1919
- [Configuration Files](#gear-configuration-files)
2020
- [Launch Files](#rocket-launch-files)
21-
- [Release Notes](#package-release-notes---v100-april-2025)
2221
- [Contributing](#handshake-contributing)
2322
- [Citing this Repository](#bookmark_tabs-citing-this-repository)
2423
- [License](#scroll-license)
@@ -53,17 +52,6 @@ workspace/
5352
└── src/
5453
├── client_serial_link/
5554
├── control_kuka_velocity/
56-
| ├── config/
57-
| ├── doc/
58-
| ├── include/
59-
| ├── launch/
60-
| ├── rviz/
61-
| ├── src/
62-
| ├── urdf/
63-
| ├── CMakeLists.txt
64-
| ├── LICENSE
65-
| ├── package.xml
66-
| └── README.md
6755
├── interface_serial_link/
6856
├── mujoco_ros2/
6957
└── server_serial_link/
@@ -164,16 +152,6 @@ Type `options` to see what is available.
164152

165153
[:top: Back to Top.](#joystick-kuka-velocity-control)
166154

167-
## :package: Release Notes - v1.0.0 (April 2025)
168-
169-
### :tada: First Release:
170-
- Implements `FollowTransform`, `FollowTwist`, `TrackCartesianTrajectory`, and `TrackJointTrajectory` actions.
171-
- Enables joystick control of robot endpoint,
172-
- Enables pose control with interactive marker, and
173-
- Config files for changing control parameters.
174-
175-
[:top: Back to Top.](#joystick-kuka-velocity-control)
176-
177155
## :handshake: Contributing
178156

179157
Contributions to this repositore are welcome! Feel free to:

config/iiwa_endpoint_poses.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,27 @@
22
ros__parameters:
33
pose_names: ["up", "down", "left", "right", "fore", "aft", "round"] # We need to declare them here so we can search them by name
44
up:
5-
poses: [0.0, 0.0, 0.2, 0.0, 0.0, 0.0]
5+
poses: [0.0, 0.0, 0.3, 0.0, 0.0, 0.0]
66
times: [3.0]
77
reference: "relative"
88
down:
9-
poses: [0.0, 0.0, -0.2, 0.0, 0.0, 0.0]
9+
poses: [0.0, 0.0, -0.3, 0.0, 0.0, 0.0]
1010
times: [3.0]
1111
reference: "relative"
1212
left:
13-
poses: [0.0, 0.2, 0.0, 0.0, 0.0, 0.0]
13+
poses: [0.0, 0.3, 0.0, 0.0, 0.0, 0.0]
1414
times: [3.0]
1515
reference: "relative"
1616
right:
17-
poses: [0.0, -0.2, 0.0, 0.0, 0.0, 0.0]
17+
poses: [0.0, -0.3, 0.0, 0.0, 0.0, 0.0]
1818
times: [3.0]
1919
reference: "relative"
2020
fore:
21-
poses: [0.2, 0.0, 0.0, 0.0, 0.0, 0.0]
21+
poses: [0.3, 0.0, 0.0, 0.0, 0.0, 0.0]
2222
times: [3.0]
2323
reference: "relative"
2424
aft:
25-
poses: [-0.2, 0.0, 0.0, 0.0, 0.0, 0.0]
25+
poses: [-0.3, 0.0, 0.0, 0.0, 0.0, 0.0]
2626
times: [3.0]
2727
reference: "relative"
2828
round:

config/tolerances.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
timeout: 0.1 # s
55
joint: [0.5, 0.5, 0.5, 0.5, 0.5, 0.5, 0.5] # rad
66
pose:
7-
position: 0.2 # m
8-
orientation: 0.35 # rad
7+
position: 0.1 # m
8+
orientation: 0.5 # rad
99
twist:
1010
linear: 0.5 # m/s
1111
angular: 1.0 # rad/s

doc/.$Diagrams.drawio.bkp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mxfile host="Electron" modified="2025-04-09T11:16:48.707Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.2 Chrome/114.0.5735.289 Electron/25.9.4 Safari/537.36" etag="m1qOU8TngFoybD7d-3g9" version="22.1.2" type="device">
1+
<mxfile host="Electron" modified="2025-04-09T11:17:09.065Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.2 Chrome/114.0.5735.289 Electron/25.9.4 Safari/537.36" etag="KGOS0vix03Ea2TyP0dKb" version="22.1.2" type="device">
22
<diagram name="Page-1" id="FJ5al01fARjp6G7-FXAw">
33
<mxGraphModel dx="920" dy="804" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
44
<root>
@@ -15,14 +15,9 @@
1515
<mxCell id="15O87lglnOJkSWuvPD9l-1" value="&lt;b&gt;serial_link_action_client&lt;/b&gt;" style="rounded=0;whiteSpace=wrap;html=1;" vertex="1" parent="1">
1616
<mxGeometry x="20" y="180" width="150" height="120" as="geometry" />
1717
</mxCell>
18-
<mxCell id="15O87lglnOJkSWuvPD9l-6" value="interface_serial_link::msg::JointCommands" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="15O87lglnOJkSWuvPD9l-4" target="15O87lglnOJkSWuvPD9l-5">
18+
<mxCell id="15O87lglnOJkSWuvPD9l-6" value="serial_link_interfaces::msg::JointCommand" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=1;exitY=0.75;exitDx=0;exitDy=0;entryX=0;entryY=0.5;entryDx=0;entryDy=0;" edge="1" parent="1" source="15O87lglnOJkSWuvPD9l-4" target="15O87lglnOJkSWuvPD9l-5">
1919
<mxGeometry relative="1" as="geometry" />
2020
</mxCell>
21-
<mxCell id="15O87lglnOJkSWuvPD9l-23" value="Text" style="edgeLabel;html=1;align=center;verticalAlign=middle;resizable=0;points=[];" vertex="1" connectable="0" parent="15O87lglnOJkSWuvPD9l-6">
22-
<mxGeometry x="-0.494" y="7" relative="1" as="geometry">
23-
<mxPoint x="-1" as="offset" />
24-
</mxGeometry>
25-
</mxCell>
2621
<mxCell id="15O87lglnOJkSWuvPD9l-11" style="edgeStyle=orthogonalEdgeStyle;rounded=0;orthogonalLoop=1;jettySize=auto;html=1;exitX=0;exitY=0.75;exitDx=0;exitDy=0;entryX=1;entryY=0.75;entryDx=0;entryDy=0;" edge="1" parent="1" source="15O87lglnOJkSWuvPD9l-4" target="15O87lglnOJkSWuvPD9l-1">
2722
<mxGeometry relative="1" as="geometry" />
2823
</mxCell>

doc/Diagrams.drawio

Lines changed: 0 additions & 82 deletions
This file was deleted.

doc/follow_transform.gif

1.28 MB
Loading

doc/follow_twist.gif

-1.36 MB
Loading

doc/.$Diagrams.drawio.dtmp renamed to doc/kuka_control_diagrams.drawio

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mxfile host="Electron" modified="2025-04-11T13:21:06.528Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.2 Chrome/114.0.5735.289 Electron/25.9.4 Safari/537.36" etag="uzkI0oECCBojTv9ca5W7" version="22.1.2" type="device">
1+
<mxfile host="Electron" modified="2025-04-11T14:17:38.123Z" agent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) draw.io/22.1.2 Chrome/114.0.5735.289 Electron/25.9.4 Safari/537.36" etag="1NXHjT0NnLCLJ4y_U7NZ" version="22.1.2" type="device">
22
<diagram name="Page-1" id="FJ5al01fARjp6G7-FXAw">
33
<mxGraphModel dx="884" dy="563" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="1169" pageHeight="827" math="0" shadow="0">
44
<root>

doc/track_trajectory.gif

1.9 MB
Loading

launch/follow_transform.py

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import os
24
from launch import LaunchDescription
35
from launch_ros.actions import Node
@@ -17,7 +19,7 @@ def generate_launch_description():
1719
arguments = [os.path.join(this_directory, 'urdf/iiwa14.urdf'), # URDF location
1820
'link7', # Endpoint name
1921
'joint_command_relay', # Topic to publish joint commands to
20-
'joint_state'] # Joint state topic to subscribe to
22+
'joint_states'] # Joint state topic to subscribe to
2123
)
2224

2325
# Joint command relay
@@ -39,6 +41,15 @@ def generate_launch_description():
3941
output = 'screen'
4042
)
4143

44+
# Robot State Publisher
45+
model = Node(
46+
package = 'robot_state_publisher',
47+
executable = 'robot_state_publisher',
48+
name = 'robot_state_publisher',
49+
output = 'screen',
50+
parameters = [{'robot_description': open(os.path.join(this_directory, 'urdf/iiwa14.urdf')).read()}]
51+
)
52+
4253
# RViz visualization
4354
rviz = Node(
4455
package = 'rviz2',
@@ -47,5 +58,5 @@ def generate_launch_description():
4758
output = 'screen',
4859
arguments = ['-d', os.path.join(this_directory, 'rviz/follow_transform.rviz')]
4960
)
50-
return LaunchDescription([server, relay, interactive, rviz])
51-
61+
62+
return LaunchDescription([server, relay, interactive, model, rviz])

launch/follow_twist.py

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import os
24
from launch import LaunchDescription
35
from launch_ros.actions import Node
@@ -17,7 +19,7 @@ def generate_launch_description():
1719
arguments = [os.path.join(this_directory, 'urdf/iiwa14.urdf'), # URDF location
1820
'link7', # Endpoint name
1921
'joint_command_relay', # Topic to publish joint commands to
20-
'joint_state'] # Joint state topic to subscribe to
22+
'joint_states'] # Joint state topic to subscribe to
2123
)
2224

2325
# Joint command relay
@@ -52,6 +54,24 @@ def generate_launch_description():
5254
output = 'screen',
5355
parameters = [os.path.join(this_directory, 'config/wii_nunchuck.yaml')]
5456
)
57+
58+
# Robot State Publisher
59+
model = Node(
60+
package = 'robot_state_publisher',
61+
executable = 'robot_state_publisher',
62+
name = 'robot_state_publisher',
63+
output = 'screen',
64+
parameters = [{'robot_description': open(os.path.join(this_directory, 'urdf/iiwa14.urdf')).read()}]
65+
)
66+
67+
# RViz visualization
68+
rviz = Node(
69+
package = 'rviz2',
70+
executable = 'rviz2',
71+
name = 'rviz2',
72+
output = 'screen',
73+
arguments = ['-d', os.path.join(this_directory, 'rviz/follow_twist.rviz')]
74+
)
5575

56-
return LaunchDescription([trajectory_tracking, relay, joy, mapper])
76+
return LaunchDescription([trajectory_tracking, relay, joy, mapper, model, rviz])
5777

launch/mujoco.py

100644100755
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import os
24
from launch import LaunchDescription
35
from launch_ros.actions import Node
@@ -19,7 +21,7 @@ def generate_launch_description():
1921
output = "screen",
2022
arguments = [xmlScenePath],
2123
parameters = [
22-
{"joint_state_topic_name" : "joint_state"},
24+
{"joint_state_topic_name" : "joint_states"},
2325
{"joint_command_topic_name" : "joint_commands"},
2426
{"control_mode" : "VELOCITY"},
2527
{"simulation_frequency" : 1000},

0 commit comments

Comments
 (0)