I thought I would discuss something that I hope to show in our first challenge set in a week at the HBRC meeting.
There is really not enough time to get into stuff in those really short demos so here we go.
An ultra-low-cost Tof Sensor based 'Radar' subsystem is what I am adding now to an already existing little motor controller subsystem of mine.
Already shown at HBRC in 'DroidBot' a few months back was this board doing PID motor control combined with dual Encoder reading ports.
Freshly added to this over the last week has been these two things:
- A PWM port drives a mini-servo and steps it through perhaps 7 to 11 locations.
- At each location the VL53L0X Tof (Time of flight) ST sensor takes a reading and saves them locally with timestamp)
- At any time over a second serial port some host processor can query these ToF readings in a bunch and each reading has a 'time in ms since this query that the reading was taken'.
Now on to ROS...
Also on top of this my ros 'base_control' node that is a motor subsystem for a few of my bots (Fiddlerbot, RoboMadgeEllen and Droidbot) has had this added:
- Support periodic readback over serial link of the Tof Radar readings
- Publish each reading to /sensorX topics using Range.msg messages which include the ROS clock time MINUS the times in ms of each reading
So in this way we have a 'slow scan' partial circle 'lidar ish' scheme that costs $15 or so.
Because this ToF sensor sort of 'wimps out' at 1-1.5 meters I hope to make this use the newer 7 or 8 meter version but had to back away from that for this rev as that is a lot of sotware I don't have yet BUT it is planned.
Now imagine that you place 3 or 4 of these on one 3D printed thing and then cover 360 degrees but with something like 15 degree accuracy. Not a Lidar but not too shabby for crude but cheap room detection.
Oh and beside above 'Tof Radar' also added has been local sensors like edge sensors that can also be queried quickly by ROS main host and are put out on a topic for edge or other on/off sensors.
It is this bot that I hope to do the tabletop challange with and avoid 'phase 4' ... falling off the table!
Mark