ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

managing clockwise laserscan

asked 2018-02-26 15:43:24 -0600

luke1962 gravatar image

Hello ROS community, I'm an hobbist, ROS enthusiast and this is my first question on this community.

I've successfully created a small lidar equipment(based on VL53L0X sensor + ESP8266 +stepper motor, without slipring ) and the relevant ROS node (kinetic) publishing sensor_msgs::LaserScan messages.

The motion is given by a stepping motor going alternatively CW and CCW (for a range of 270 deg limited by a couple of end-switches). Unfortunately VL53L0X acquisition time is around 23mSec, limiting scanning speed to less than 1 Hz (unless reducing scan_msg->ranges_length).

Currently,the scan/acquisition phase is limited to Countrclowise motion, but I'd like to increase scan cycle frequency (i.e. to reduce scan_msg->scan_time) , exploiting also the returning phase of motor, when it is moving clockwise.

My question is if is it possible to correctly send a scan message derived from an acquisition phase made when the motor is moving in clockwise direction.

It is not a problem to reverse the sensor data array (scan_msg->ranges[i]) , but what about time? (samples successive in time cannot be placed in the past). Is there any solution or CW sampling is definitively not allowed? Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-02-26 17:32:07 -0600

IanCol gravatar image

Some thoughts of mine:

  • You could simply define your own custom message called LaserScanCW or something. If you only intend to use the data yourself then it is only up to your own code to interpret it correctly.
  • You could "pretend" there are two laser scanners. They both spin CCW and each have their own coordinate frame. The frame of one scanner would be upside-down compared to the other frame. So basically the CCW data is published using one frame and the CW data is published using another frame.

Just some thoughts off the top of my head, hope it helps!

edit flag offensive delete link more

Comments

I would suggest using the second option, as that would allow you to reuse all the existing infrastructure. Using custom messages would make that impossible.

gvdhoorn gravatar image gvdhoorn  ( 2018-02-27 03:06:47 -0600 )edit

Thank you (sorry for my late late reply) but at the end I gave up with this approach in favor of real LIDAR. However now I recognised that the problem could have been resolved as suggested, creating two messages, one of which has z axis frame upside-down.

luke1962 gravatar image luke1962  ( 2018-11-13 11:47:58 -0600 )edit

Question Tools

Stats

Asked: 2018-02-26 15:43:24 -0600

Seen: 513 times

Last updated: Feb 26 '18