Add joint_trajetory_step.sh script.
authorWalter Fetter Lages <w.fetter@ieee.org>
Tue, 14 Mar 2023 19:52:37 +0000 (16:52 -0300)
committerWalter Fetter Lages <w.fetter@ieee.org>
Tue, 14 Mar 2023 19:52:37 +0000 (16:52 -0300)
q2d_bringup/scripts/joint_trajectory_step.sh [new file with mode: 0755]

diff --git a/q2d_bringup/scripts/joint_trajectory_step.sh b/q2d_bringup/scripts/joint_trajectory_step.sh
new file mode 100755 (executable)
index 0000000..498ab37
--- /dev/null
@@ -0,0 +1,8 @@
+#!/bin/bash
+
+if [ "$#" -ne 2 ]; then
+        echo "Usage: $0 <shoulder position> <elbow position>"
+        exit -1;
+fi;
+
+ros2 topic pub /command trajectory_msgs/msg/JointTrajectoryPoint "{positions: [$1, $2]}" -1