User Tools

Site Tools


suhani_week_4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

suhani_week_4 [2024/09/02 14:33] – created suhaniksuhani_week_4 [2024/09/02 14:33] (current) suhanik
Line 2: Line 2:
  
 ===== Photo of the week ===== ===== Photo of the week =====
-{{ ::screenshot_2024-09-02_at_2.26.49 pm.png?nolink&600 |}}+{{ ::screenshot_2024-09-02_at_2.26.41 pm.png?nolink&600 |}}
  
 After getting the Raspberry Pi with the whole setup done, I started working on my code. The aim was to obtain a (initially) vertical motion of the end effector. For an effector to move vertically up or down, one motor should rotate clockwise and another should rotate counter-clockwise, or vice-versa. I prefer Python over C++ for coding. I wrote a subscriber node for that. I used the pub-sub of ROS for controlling motors. I integrated a joystick for that. The published was the joy node. After pressing specific buttons on the joystick, it will publish the values; after that, the subscriber will listen to it. The subscriber coil will start controlling the motor as given in the code. After getting the Raspberry Pi with the whole setup done, I started working on my code. The aim was to obtain a (initially) vertical motion of the end effector. For an effector to move vertically up or down, one motor should rotate clockwise and another should rotate counter-clockwise, or vice-versa. I prefer Python over C++ for coding. I wrote a subscriber node for that. I used the pub-sub of ROS for controlling motors. I integrated a joystick for that. The published was the joy node. After pressing specific buttons on the joystick, it will publish the values; after that, the subscriber will listen to it. The subscriber coil will start controlling the motor as given in the code.
suhani_week_4.1725312781.txt.gz · Last modified: by suhanik