Skip to content

Commit

Permalink
[sample_elevator update
Browse files Browse the repository at this point in the history
  • Loading branch information
sktometometo committed Nov 22, 2023
1 parent 0c82ff7 commit eeb4e2a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@
client.power_on()
client.undock()

behavior_client.send_goal_and_wait(NavigationGoal(target_node_id="eng2_3FElevator"))
result = behavior_client.get_result()
client.reset_current_node('eng2_73B2_dock')
client.execute_behaviors(target_node_id="eng2_3FElevator")
client.wait_execute_behaviors_result()
result = client.get_execute_behaviors_result()
rospy.loginfo("Result forward: {} {}".format(result.success, result.message))

behavior_client.send_goal_and_wait(NavigationGoal(target_node_id="eng2_73B2_dock"))
result = behavior_client.get_result()
client.execute_behaviors(NavigationGoal(target_node_id="eng2_73B2_dock"))
result = client.get_execute_behaviors_result()
rospy.loginfo("Result backward: {} {}".format(result.success, result.message))

client.dock(521)
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<node pkg="jsk_spot_startup" type="sample_elevator.py" name="sample_elevator" output="screen" required="True"/>

<include
file="$(find jsk_spot_behavior_manager)/launch/demo.launch"
>
<arg name="initial_node_id" value="eng2_73B2_dock" />
file="$(find elevator_operation)/launch/elevator_state_publisher.launch">
<arg name="initial_floor" value="7" />
<arg name="robot_type" value="spot" />
</include>
</launch>

0 comments on commit eeb4e2a

Please sign in to comment.