Skip to content

Conversation

KuraZuzu
Copy link

@KuraZuzu KuraZuzu commented Jul 15, 2025

What does this implement/fix?

joint_values.pyサンプルの動作を修正します。
初期状態のjoint値を取得し、その値をもとに目標姿勢を設定するように変更しています。

これにより、たとえば arm.set_goal_state(configuration_name='vertical') のverticalhomeに変更したときに、一瞬だけhomeの姿勢を取った後すぐに全jointが0になる不具合が解消されます。

Does this close any currently open issues?

しません。

How has this been tested?

環境

  • Ubuntu 24.04 Desktop
    • 6.11.0-29-generic
  • ROS 2 Jazzy
  • Gazebo Harmonic v 8.9.0

手順

Gazeboと実機の両方でテストしました。

Gazebo

ros2 launch crane_x7_gazebo crane_x7_with_table.launch.py 
ros2 launch crane_x7_examples_py example.launch.py example:='joint_values' use_sim_time:='true'

実機

ros2 launch crane_x7_examples demo.launch.py port_name:=/dev/ttyUSB0
ros2 launch crane_x7_examples_py example.launch.py example:='joint_values

Any other comments?

本修正により、C++版のjoint_valuesサンプルと同じ動作になります。

Checklists

@KuraZuzu KuraZuzu added the Type: Bug Bug or Bug fixes label Jul 15, 2025
@KuraZuzu KuraZuzu self-assigned this Jul 15, 2025
@KuraZuzu KuraZuzu requested a review from Kuwamai July 15, 2025 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Bug or Bug fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant