example_blocked_goal_alternative.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 #
00003 # Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
00004 #
00005 # Licensed under the Apache License, Version 2.0 (the "License");
00006 # you may not use this file except in compliance with the License.
00007 # You may obtain a copy of the License at
00008 #
00009 #   http://www.apache.org/licenses/LICENSE-2.0
00010 #
00011 # Unless required by applicable law or agreed to in writing, software
00012 # distributed under the License is distributed on an "AS IS" BASIS,
00013 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014 # See the License for the specific language governing permissions and
00015 # limitations under the License.
00016 
00017 
00018 import rospy
00019 import random
00020 import math
00021 from geometry_msgs.msg import Pose2D
00022 from cob_map_accessibility_analysis.blocked_goal_alternative import BlockedGoalAlternative
00023 
00024 if __name__ == "__main__":
00025 
00026     rospy.init_node("blocked_goal_alternative_node")
00027     bga = BlockedGoalAlternative()
00028 
00029     pose2d = Pose2D()
00030     pose2d.x = random.uniform(-10.0, 10.0)
00031     pose2d.y = random.uniform(-10.0, 10.0)
00032     pose2d.theta = random.uniform(-math.pi, math.pi)
00033 
00034     rospy.loginfo("Incoming Nav Goal")
00035     print pose2d
00036 
00037     (success, goal) = bga.check_nav_goal(pose2d)
00038     if not success:
00039         (success, goal) = bga.check_perimeter(pose2d)


cob_map_accessibility_analysis
Author(s): Richard Bormann
autogenerated on Thu Jun 6 2019 21:01:20