Skip to content

Commit 59a9f5d

Browse files
committed
crane_x7とすべき変数名がcrane_plusとなっていたのを修正
1 parent 47ac5ea commit 59a9f5d

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

crane_x7_examples_py/crane_x7_examples_py/pose_groupstate.py

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
MoveItPy,
2323
PlanRequestParameters,
2424
)
25-
from crane_plus_examples_py.utils import plan_and_execute
25+
from crane_x7_examples_py.utils import plan_and_execute
2626

2727

2828
def main(args=None):
@@ -33,13 +33,13 @@ def main(args=None):
3333
logger = get_logger("pose_groupstate")
3434

3535
# MoveItPy初期化
36-
crane_plus = MoveItPy(node_name="moveit_py")
37-
crane_plus_arm = crane_plus.get_planning_component("arm")
36+
crane_x7 = MoveItPy(node_name="moveit_py")
37+
crane_x7_arm = crane_x7.get_planning_component("arm")
3838
logger.info("MoveItPy instance created")
3939

4040
# planningのパラメータ設定
4141
plan_request_params = PlanRequestParameters(
42-
crane_plus,
42+
crane_x7,
4343
"ompl_rrtc",
4444
)
4545

@@ -48,37 +48,37 @@ def main(args=None):
4848
plan_request_params.max_velocity_scaling_factor = 1.0 # Set 0.0 ~ 1.0
4949

5050
# 現在の位置から"home"ポジションに動かす
51-
crane_plus_arm.set_start_state_to_current_state()
52-
crane_plus_arm.set_goal_state(configuration_name="home")
51+
crane_x7_arm.set_start_state_to_current_state()
52+
crane_x7_arm.set_goal_state(configuration_name="home")
5353
plan_and_execute(
54-
crane_plus,
55-
crane_plus_arm,
54+
crane_x7,
55+
crane_x7_arm,
5656
logger,
5757
single_plan_parameters=plan_request_params,
5858
)
5959

6060
# 現在の位置から"vertical"ポジションに動かす
61-
crane_plus_arm.set_start_state_to_current_state()
62-
crane_plus_arm.set_goal_state(configuration_name="vertical")
61+
crane_x7_arm.set_start_state_to_current_state()
62+
crane_x7_arm.set_goal_state(configuration_name="vertical")
6363
plan_and_execute(
64-
crane_plus,
65-
crane_plus_arm,
64+
crane_x7,
65+
crane_x7_arm,
6666
logger,
6767
single_plan_parameters=plan_request_params,
6868
)
6969

7070
# 現在の位置から"home"ポジションに動かす
71-
crane_plus_arm.set_start_state_to_current_state()
72-
crane_plus_arm.set_goal_state(configuration_name="home")
71+
crane_x7_arm.set_start_state_to_current_state()
72+
crane_x7_arm.set_goal_state(configuration_name="home")
7373
plan_and_execute(
74-
crane_plus,
75-
crane_plus_arm,
74+
crane_x7,
75+
crane_x7_arm,
7676
logger,
7777
single_plan_parameters=plan_request_params,
7878
)
7979

8080
# MoveItPyの終了
81-
crane_plus.shutdown()
81+
crane_x7.shutdown()
8282

8383
# rclpyの終了
8484
rclpy.shutdown()

0 commit comments

Comments
 (0)