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

Add exposure time and idle time services #38

Merged
merged 9 commits into from
Oct 17, 2024

Conversation

nikhil-sethi
Copy link

@nikhil-sethi nikhil-sethi commented Oct 9, 2024

Description of MR:

Add exposure time + idle time services

Depends on: #37 #36

Motivation and Context

Exposure time and idle time collectively decide the profile frequency which is a sensitive parameter for detecting defects. We need a service to control this param.

Changes

  1. Create encoding and decoding for time in microseconds ranging from 0 - 40960
  2. Create ROS services and msg to control durations

Type of changes

  • Features

Checklist

  • Creating enc/denc
  • Add services
  • Add documentation for bitmasking in confluence

Docs: https://samxl.atlassian.net/wiki/spaces/NXTG3/pages/553091077/Encoding+Decoding+in+scanControl+SDK

Sorry, something went wrong.

- service architecture works now
- used resolution argument instead of config
- fix response error code logic
@nikhil-sethi nikhil-sethi changed the title Devel Add exposure time and idle time services Oct 9, 2024
@dave992
Copy link
Member

dave992 commented Oct 9, 2024

Did you consider using ros parameters? In ROS this would have required dynamic reconfigure, but in ROS2 this is no longer needed as this is part of the base paramter functionality.

@nikhil-sethi nikhil-sethi mentioned this pull request Oct 10, 2024
7 tasks
@nikhil-sethi
Copy link
Author

nikhil-sethi commented Oct 10, 2024

Did you consider using ros parameters? In ROS this would have required dynamic reconfigure, but in ROS2 this is no longer needed as this is part of the base paramter functionality.

This might be worth looking into. I'll check it out when I get time, and move ahead with services for now.

@nikhil-sethi nikhil-sethi requested review from dave992 and removed request for aashish-tud October 10, 2024 11:48
@nikhil-sethi nikhil-sethi added enhancement New feature or request need for sprint This needs to be closed to complete the active sprint labels Oct 14, 2024
Copy link

@erichlf erichlf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some issues that should be addressed.

@nikhil-sethi nikhil-sethi requested review from dave992 and removed request for dave992 October 16, 2024 14:10
@nikhil-sethi nikhil-sethi merged commit 5d125f7 into sam-xl:ros2-devel Oct 17, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request need for sprint This needs to be closed to complete the active sprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants