Skip to content

Commit

Permalink
Merge pull request #256 from SathwikSai10/devel
Browse files Browse the repository at this point in the history
Update package dependencies
  • Loading branch information
minhnh authored May 20, 2022
2 parents cc77a3a + 1dbfeb9 commit 8f75847
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,25 @@ import actionlib

from mdr_move_base_action.msg import MoveBaseAction, MoveBaseGoal

SERVER_NAME = 'move_base_server'

if __name__ == '__main__':
rospy.init_node('mdr_move_base_client_test')
client = actionlib.SimpleActionClient('move_base_server', MoveBaseAction)
client = actionlib.SimpleActionClient(SERVER_NAME, MoveBaseAction)
client.wait_for_server()
goal = MoveBaseGoal()
if len(sys.argv) == 2:
try:
goal.goal_type = MoveBaseGoal.NAMED_TARGET
goal.destination_location = str(sys.argv[1])
timeout = 15.0
rospy.loginfo('Sending action lib goal to move_base_server, ' +
'destination : ' + goal.destination_location)
rospy.loginfo("Sending action lib goal to '{}', destination: {}"
.format(SERVER_NAME, goal.destination_location))
client.send_goal(goal)
client.wait_for_result(rospy.Duration.from_sec(int(timeout)))
print(client.get_result())
rospy.loginfo("Result: {}".format(client.get_result()))
except Exception as exc:
print(str(exc))
rospy.logerr("{}: {}".format(type(exc).__name__, exc))
else:
rospy.logerr('Arguments were not received in the proper format')
rospy.loginfo('usage : rosrun mdr_move_base_action move_base_client_test DESTINATION')
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
<run_depend>mas_knowledge_base</run_depend>
<run_depend>mdr_move_base_action</run_depend>
<run_depend>mdr_perceive_plane_action</run_depend>
<run_depend>mas_execution_manager</run_depend>
<run_depend>mongodb_store</run_depend>
<run_depend>rosplan_dispatch_msgs</run_depend>

<export></export>
</package>
2 changes: 2 additions & 0 deletions mdr_planning/mdr_rosplan_interface/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@

<run_depend>rospy</run_depend>
<run_depend>rosplan_knowledge_msgs</run_depend>
<run_depend>rosplan_knowledge_base</run_depend>
<run_depend>rosplan_planning_system</run_depend>
<run_depend>mas_knowledge_base</run_depend>
</package>

0 comments on commit 8f75847

Please sign in to comment.