Changing RPLIDAR laser scanner motor from being always on?
(This is on Ubuntu 12.04 and Hydro, Turtlebot2 with kobuki.)
I just got a Robopeak RPLIDAR, and I'm working on mounting it to my turtlebot2. (I wanted a wider angle than the kinect could give me.) As soon as the RPLIDAR is plugged into the USB slot, the motor starts spinning (This is without even having the driver loaded). The motor is enabled by the RS232 DTR signal. When the RPLIDAR ros node starts, it also sets the DTR signal to start the motor spinning.
I often have my turtlebot on for hours (days!) at a time, even if I'm not using it. I don't like the idea of the motor spinning for hours (days!). I'm thinking of modifying the RPLIDAR ros node to implement a way to stop/start the motor. What do people think of these ideas?
1) Add a service to the rplidar node, with 3 messages: motor_on, motor_off, get_motor_status. The motor could be controlled from command line, or programatically.
2) Add a dynamic parameter to the rplidar node: motor_enable. Could still use command line or program to change.
3) Use a special case of the rplidar publishing rate. If set to 0 Hz, this would turn the motor off; if non-zero, motor would turn on.
(And I know the motor should be given time to warm up.)
thanks for your comments, buddy