2 import roslib; roslib.load_manifest(
'kobuki_testsuite')
5 from kobuki_testsuite
import SafeWandering
7 if __name__ ==
'__main__':
9 cmdvel_topic =
'/mobile_base/commands/velocity' 11 bump_topic =
'/mobile_base/events/bumper' 12 cliff_topic =
'/mobile_base/events/cliff' 13 rospy.init_node(
'safe_wandering')
15 wanderer = SafeWandering(cmdvel_topic,odom_topic, bump_topic, cliff_topic)
17 rospy.loginfo(
"Starting to wander")
18 wanderer.init(0.1,-0.1, 1.65)
20 rospy.loginfo(
"Stopping wandering")