From a93f02d4a0a728e39d8219fc9e96d674fdd7ae5c Mon Sep 17 00:00:00 2001 From: Walter Fetter Lages Date: Tue, 14 Mar 2023 16:52:37 -0300 Subject: [PATCH] Add joint_trajetory_step.sh script. --- q2d_bringup/scripts/joint_trajectory_step.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 q2d_bringup/scripts/joint_trajectory_step.sh diff --git a/q2d_bringup/scripts/joint_trajectory_step.sh b/q2d_bringup/scripts/joint_trajectory_step.sh new file mode 100755 index 0000000..498ab37 --- /dev/null +++ b/q2d_bringup/scripts/joint_trajectory_step.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ "$#" -ne 2 ]; then + echo "Usage: $0 " + exit -1; +fi; + +ros2 topic pub /command trajectory_msgs/msg/JointTrajectoryPoint "{positions: [$1, $2]}" -1 -- 2.12.0