Skip to content

Commit

Permalink
CI対応
Browse files Browse the repository at this point in the history
  • Loading branch information
mizonon committed Nov 1, 2024
1 parent c122fb8 commit 1e1c7e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def main(args=None):
plan_request_params.max_velocity_scaling_factor = 1.0 # Set 0.0 ~ 1.0

# armの関節のjoint1〜4を順番に45[deg]ずつ動かす
joint_names = ['crane_plus_joint1', 'crane_plus_joint2',
joint_names = ['crane_plus_joint1', 'crane_plus_joint2',
'crane_plus_joint3', 'crane_plus_joint4']
target_joint_value = math.radians(45)
for joint_name in joint_names:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def on_timer(self):
else:
TF_STOP_TIME = now.nanoseconds

# 現在時刻から2秒以内に受け取ったtfを使用
# 現在時刻から2秒以内に受け取ったtfを使用
if TF_ELAPSED_TIME < FILTERING_TIME.total_seconds() * 1e9:
tf_diff = np.sqrt((self.tf_past.transform.translation.x
- tf_msg.transform.translation.x) ** 2
Expand Down
6 changes: 3 additions & 3 deletions crane_plus_examples_py/crane_plus_examples_py/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

import time

import numpy as np

from rclpy.logging import get_logger

import time

import quaternion


Expand All @@ -30,7 +30,7 @@ def plan_and_execute(
multi_plan_parameters=None,
sleep_time=0.0,
):
"""Helper function to plan and execute a motion."""
"""Plan and execute a motion."""
# plan to goal
logger = get_logger('plan_and_execute')
logger.info('Planning trajectory')
Expand Down

0 comments on commit 1e1c7e2

Please sign in to comment.