Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BrightSky Internship Changes (Luka and Panin) #46

Open
wants to merge 7 commits into
base: ros2-devel
Choose a base branch
from

Conversation

panin-anan
Copy link

This pull adds two topic subscribers for turning on and turning off micro-epsilon scancontrol laser line scanner with the driver.

Motivation

  • Before this change, the laser line scanner was automatically turned on when power is plugged in. It stays on, always scanning, and transferring scan profiles. The first motivation was to prevent laser line scanner from operating and being in heat all the time, risking faster degradation than necessary.
  • The second motivation was the demand to control the amount of scan profile transfer by the laser line scanner. We wanted to record only the necessary profile to minimize data storage size. Thus, we created topics to command the scanner to turn on and off.

Changes

  • Added /laseron and /laseroff topic subscriber as laser_on_callback and laser_off_callback functions in driver.cpp (and driver.h). The driver turns on and turn off the laser line scanner when an Empty message (std_msgs/Empty) is published to the topic /laseron and /laseroff, respectively. The specific command used to turn on and turn off the laser is driver.SetFeature(FEATURE_FUNCTION_LASERPOWER, 2). 2 for on and 0 for off.

  • Profile transfers are also automatically turned on and off with the laser by the callbacks using the existing StartProfileTransfer() and StopProfileTransfer() functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants