test_safewandering.py
Go to the documentation of this file.
1 #!/usr/bin/env python
2 import roslib; roslib.load_manifest('kobuki_testsuite')
3 import rospy
4 
5 from kobuki_testsuite import SafeWandering
6 
7 if __name__ == '__main__':
8 
9  cmdvel_topic = '/mobile_base/commands/velocity'
10  odom_topic = '/odom'
11  bump_topic = '/mobile_base/events/bumper'
12  cliff_topic = '/mobile_base/events/cliff'
13  rospy.init_node('safe_wandering')
14 
15  wanderer = SafeWandering(cmdvel_topic,odom_topic, bump_topic, cliff_topic)
16 
17  rospy.loginfo("Starting to wander")
18  wanderer.init(0.1,-0.1, 1.65)
19  wanderer.execute()
20  rospy.loginfo("Stopping wandering")
21  wanderer.stop()
22 


kobuki_testsuite
Author(s): Jorge Santos Simon
autogenerated on Mon Jun 10 2019 13:45:22