rplidar_node.py
Go to the documentation of this file.
00001 #!/usr/bin/env python
00002 # -*- coding:utf-8 -*-
00003 """
00004 - Version 5.0 2015/11/12
00005 
00006 before run this code pls install parse library and also install construct lib for protocol
00007 
00008 Copyright (c) 2015 Xu Zhihao (Howe).  All rights reserved.
00009 
00010 This program is free software; you can redistribute it and/or modify
00011 
00012 This programm is tested on kuboki base turtlebot.
00013 """
00014 import rospy
00015 import rplidar_scan
00016 
00017 
00018 if __name__ == "__main__":
00019     try:
00020         rospy.init_node('RPlidar')
00021         rospy.loginfo("initialization system")
00022         try:
00023             rplidar_scan.driver()
00024             rplidar_scan.ClearParams()
00025         except KeyboardInterrupt:
00026             rplidar_scan.ClearParams()
00027         rospy.loginfo("process done and quit")
00028     except rospy.ROSInterruptException:
00029         rospy.loginfo("unknown_detector node terminated.")


rplidar_python
Author(s): DinnerHowe
autogenerated on Thu Apr 13 2017 02:56:29