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

Feature/grayscale #4

Merged
merged 12 commits into from
Apr 15, 2022
Merged

Feature/grayscale #4

merged 12 commits into from
Apr 15, 2022

Conversation

MohammadKhan-3
Copy link
Contributor

  • Grayscale feature creating a gradient.
    Method:
  • Using a dwell time based on 255 value of LED. 100 k-Ohm resistor is used to dim RGB LED. Movement pattern is the same for RGB image.

MohammadKhan-3 and others added 11 commits April 13, 2022 10:59
- Cleaned up scripts & added ReadMe file
- Had to change Binary script to use ROS Publisher because the serial connection messed with the ROS Launch Arduino connection. (Created custom msg file)
- Moved py_to_ino scipts to test folder. These files are used to test the arduino connection via python
- Robot_motion script is the Action Client to the descartes Action Server branch
- Currently getting error: [ERROR] [1649688048.164270]: Error opening serial: [Errno 2] could not open port -port=/tty/ACM0: [Errno 2] No such file or directory: '-port=/tty/ACM0'
- Created GrayScale script for future use
- Same issue persisting with Arduino-ROS connection
- ERROR: Unable to sync with device; possible link problem or link software version mismatch such as hydro rosserial_python with groovy Arduino

- GrayScale will be made into a separate branch. 

The following commits will be about the Arduino-ROS connection
- Fixed Arduino sketchbook location. 
- Need to create the ROS Arduino scripts for Graycale & Binary.
-Linear time scale + dimming from LED resulted in a bright pixels overall in exposure shot
-added 8x5 ramp tif
-ts_led_paintbrush launch doesn't seem needed anymore?
- Created variable time delays based on pixel values
- Diffusing light with paper may work to create gradient. Need thicker paper to remove bright point.
- Used a linear scaling factor to change time delay based on pixel value
- Gradient is best seen on large images (5x5 or greater)
- Leading LED on is no different than adding delays because of the dimmness of the LED
- Dimness of the LED shows the bulb in each movement instead of a continuous streak
Would have to reduce resistance to get continuous streak
- need to see pixel values of grayscale image to get lumosity
- Next add Diffuser to LED & reduce resistance
- Create action client for Descartes implementation
@MohammadKhan-3 MohammadKhan-3 requested a review from acbuynak April 15, 2022 21:13
@MohammadKhan-3 MohammadKhan-3 added the enhancement New feature or request label Apr 15, 2022
Copy link
Member

@acbuynak acbuynak left a comment

Choose a reason for hiding this comment

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

Looks good. Only comment is to keep things modular and import the motion part of the code into each color part.

Comment on lines +19 to +20
BinaryState.msg
GrayScale.msg
Copy link
Member

Choose a reason for hiding this comment

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

Do we need both a grayscale and a binary messages? How are they used differently?

README.md Outdated Show resolved Hide resolved
arduino_control/grayscale/grayscale.ino Outdated Show resolved Hide resolved
launch/t2_led_paintbrush.launch Show resolved Hide resolved
@@ -0,0 +1,182 @@
#!/usr/bin/env python3
Copy link
Member

Choose a reason for hiding this comment

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

Note for this entire file
Ideally in the future.. Keep code modular and only put color specific variations into their own file or just use an if ___ toggle in the main script.
Fine for this PR, but something to fix in the future. Making note here to remember.

* readme updates
* Remove unused grayscale arduino folder
@acbuynak
Copy link
Member

Overall modularity needs improved, but going to go ahead and merge. Will improve modularity in future refactor.

@acbuynak acbuynak merged commit 0e791f7 into noetic Apr 15, 2022
@acbuynak acbuynak deleted the feature/grayscale branch April 18, 2022 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants