joint_values.pyで初期姿勢のjointを取得して動作に反映するように修正 #207
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this implement/fix?
joint_values.pyサンプルの動作を修正します。
初期状態のjoint値を取得し、その値をもとに目標姿勢を設定するように変更しています。
これにより、たとえば arm.set_goal_state(configuration_name='vertical') の
vertical
をhome
に変更したときに、一瞬だけhome
の姿勢を取った後すぐに全jointが0になる不具合が解消されます。Does this close any currently open issues?
しません。
How has this been tested?
環境
手順
Gazeboと実機の両方でテストしました。
Gazebo
実機
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