Skip to content

Commit

Permalink
Update documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
stanbaek committed Feb 29, 2024
1 parent 7b4b521 commit f492f80
Show file tree
Hide file tree
Showing 272 changed files with 28,300 additions and 32,429 deletions.
8 changes: 4 additions & 4 deletions .buildinfo
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: f7fac6807dbc9a08f49d5b4b63bc1b9d
tags: 645f666f9bcd5a90fca523b33c5a78b7
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 8e797e08234635f9396beb70db152ca4
tags: 645f666f9bcd5a90fca523b33c5a78b7
1,338 changes: 669 additions & 669 deletions Appendix/GitSetup.html
100755 → 100644

Large diffs are not rendered by default.

1,538 changes: 769 additions & 769 deletions Appendix/MasterSetup.html
100755 → 100644

Large diffs are not rendered by default.

2,342 changes: 1,171 additions & 1,171 deletions Appendix/RobotSetup.html
100755 → 100644

Large diffs are not rendered by default.

679 changes: 0 additions & 679 deletions Module00.0_IntroductionGIT/IntroGit.html

This file was deleted.

1,124 changes: 0 additions & 1,124 deletions Module00.1_RobotSetup/RobotSetup.html

This file was deleted.

759 changes: 0 additions & 759 deletions Module00.2_MasterSetup/MasterSetup.html

This file was deleted.

1,238 changes: 619 additions & 619 deletions Module10_FinalProject/FinalProject.html
100755 → 100644

Large diffs are not rendered by default.

1,604 changes: 802 additions & 802 deletions Module1_ROS/ICE1_ListenerTalker.html
100755 → 100644

Large diffs are not rendered by default.

1,476 changes: 738 additions & 738 deletions Module1_ROS/ROS.html
100755 → 100644

Large diffs are not rendered by default.

1,764 changes: 882 additions & 882 deletions Module2_Linux/Linux.html
100755 → 100644

Large diffs are not rendered by default.

1,564 changes: 782 additions & 782 deletions Module3_Python3/ICE3_ClientServer.html
100755 → 100644

Large diffs are not rendered by default.

1,998 changes: 999 additions & 999 deletions Module3_Python3/Python3.html
100755 → 100644

Large diffs are not rendered by default.

1,268 changes: 634 additions & 634 deletions Module3_Python3/ROS.html
100755 → 100644

Large diffs are not rendered by default.

1,194 changes: 597 additions & 597 deletions Module3_Python3/RPSComputer.html
100755 → 100644

Large diffs are not rendered by default.

1,312 changes: 656 additions & 656 deletions Module4_DrivingTheRobot/DrivingTheRobot.html
100755 → 100644

Large diffs are not rendered by default.

1,330 changes: 665 additions & 665 deletions Module4_DrivingTheRobot/ICE4_DrivingTheRobot.html
100755 → 100644

Large diffs are not rendered by default.

1,958 changes: 979 additions & 979 deletions Module5_CustomMessages/CustomMessages.html
100755 → 100644

Large diffs are not rendered by default.

1,284 changes: 642 additions & 642 deletions Module5_CustomMessages/Lab1_CustomMessages.html
100755 → 100644

Large diffs are not rendered by default.

1,402 changes: 701 additions & 701 deletions Module6_IMU/IMU.html
100755 → 100644

Large diffs are not rendered by default.

1,360 changes: 680 additions & 680 deletions Module6_IMU/Lab2_IMU.html
100755 → 100644

Large diffs are not rendered by default.

1,572 changes: 786 additions & 786 deletions Module7_LaunchFile/LaunchFile.html
100755 → 100644

Large diffs are not rendered by default.

1,499 changes: 750 additions & 749 deletions Module8_LIDAR/LIDAR.html
100755 → 100644

Large diffs are not rendered by default.

1,300 changes: 650 additions & 650 deletions Module8_LIDAR/Lab3_LIDAR.html
100755 → 100644

Large diffs are not rendered by default.

1,620 changes: 810 additions & 810 deletions Module9_CV/Lab4_ComputerVision.html
100755 → 100644

Large diffs are not rendered by default.

2,360 changes: 1,180 additions & 1,180 deletions Module9_CV/computer_vision.html
100755 → 100644

Large diffs are not rendered by default.

Empty file.
114 changes: 57 additions & 57 deletions _downloads/6fe569f9320a6bd641887792fd967ce2/turtlebot_controller.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
#!/usr/bin/env python3

#TODO 1 Modify this header so that the correct information is displayed
#Name
#Name of code
#For lab1, this will subscribe to mouse_client and publish to cmd_vel
#Will convert messages of type MouseController to Twist
#Deactivates when mouse wheel is scrolled up
#last modified DATE 2023


import rospy
#TODO 2 Import the appropriate message types that we will need


class Controller:
"""Class that controls subsystems on Turtlebot3"""
def __init__(self):
#TODO 3 initialize the appropriate Controller class attributes




self.pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1)

rospy.Subscriber('mouse_info', MouseController, self.callback_mouseControl)

self.ctrl_c = False
rospy.on_shutdown(self.shutdownhook)

def callback_mouseControl(self, mouseInfo):
#TODO 4 Scale xPos from -1 to 1 to -.5 to .5

#TODO 5 set angular z in Twist message to the scaled value in the appropriate direction

#TODO 6 Scale yPos from -1 to 1 to -.5 to .5

#TODO 7 set linear x in Twist message to the scaled value in the appropriate direction

#TODO 8 publish the Twist message



def shutdownhook(self):
print("Controller exiting. Halting robot.")
self.ctrl_c = True
#TODO 9 force the linear x and angular z commands to 0 before halting


self.pub.publish(self.cmd)




if __name__ == '__main__':
rospy.init_node('controller')
c = Controller()
#!/usr/bin/env python3

#TODO 1 Modify this header so that the correct information is displayed
#Name
#Name of code
#For lab1, this will subscribe to mouse_client and publish to cmd_vel
#Will convert messages of type MouseController to Twist
#Deactivates when mouse wheel is scrolled up
#last modified DATE 2023


import rospy
#TODO 2 Import the appropriate message types that we will need


class Controller:
"""Class that controls subsystems on Turtlebot3"""
def __init__(self):
#TODO 3 initialize the appropriate Controller class attributes




self.pub = rospy.Publisher('cmd_vel', Twist, queue_size = 1)

rospy.Subscriber('mouse_info', MouseController, self.callback_mouseControl)

self.ctrl_c = False
rospy.on_shutdown(self.shutdownhook)

def callback_mouseControl(self, mouseInfo):
#TODO 4 Scale xPos from -1 to 1 to -.5 to .5

#TODO 5 set angular z in Twist message to the scaled value in the appropriate direction

#TODO 6 Scale yPos from -1 to 1 to -.5 to .5

#TODO 7 set linear x in Twist message to the scaled value in the appropriate direction

#TODO 8 publish the Twist message



def shutdownhook(self):
print("Controller exiting. Halting robot.")
self.ctrl_c = True
#TODO 9 force the linear x and angular z commands to 0 before halting


self.pub.publish(self.cmd)




if __name__ == '__main__':
rospy.init_node('controller')
c = Controller()
rospy.spin()
216 changes: 108 additions & 108 deletions _downloads/cb5daeab4a0e775f3d6d21655764a2e9/mouse_client_OO.py
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,109 +1,109 @@
#!/usr/bin/env python3

#TODO 0 Update the header below with your information
#Name
#ROS Enabled mouse client
#Activates when mouse wheel is scrolled down and
#Deactivates when mouse wheel is scrolled up
#last modified 8 Jan 2023
#mouse_client.py

import rospy
import pyautogui
import sys
import time
import os
from pynput.mouse import Listener
# TODO 1 Import the lab1 message file you created for the Mouse Controller data


#Initialize global variable that will keep track of mouse button status
global activate
activate = False


#get dimensions of screen so that we can scale for (-1,1) in both x and y
xDim,yDim = pyautogui.size()

class Mouse:
def __init__(self):
global activate
listener = Listener(on_move=self.on_move, on_click=self.on_click, on_scroll=self.on_scroll)
listener.start()
self.ctrl_c = False
rospy.on_shutdown(self.shutdownhook)

# TODO 2 Create class variables to store activation status, and x and y position
# Initialize the controller status to False, and in the center of the screen

# TODO 3 Create a publisher to publish MouseController data on the mouse_info topic



# Handle the event of the user moving the mouse
def on_move(self,x,y):
#We need to establish the use of the global variable for button activation
global activate


if(activate == False):
messageString = "No movement sent, activate cursor first by scrolling down on the mouse wheel"
print(messageString, end='')
# overwrite same line
print('\b' *len(messageString), end='', flush=True)
xScale = 0.0
yScale = 0.0
else:
# Use the dimensions of the monitor to convert output into x & y between -1 and 1
xScale = ((x/(xDim/2))-1)
yScale = -((y/(yDim/2))-1)
xFormat = "{:+.3f}".format(xScale)
yFormat = "{:+.3f}".format(yScale)
# create 19 byte message with x,y coordinates embedded and print to screen
positionStr = 'X: ' + str(xFormat) + ' Y: ' + str(yFormat) + " "
print(positionStr, end='')
# overwrite same line
print('\b' *len(positionStr), end='', flush=True)
# TODO 4 Update the appropriate class variables and publish


#Currently I'm not doing anything with the button click.
#Eventually we could add additional modes if we wanted to.
def on_click(self,x,y,button,pressed):
pass

# Handle the event of the user using the scroll wheel on the mouse
def on_scroll(self,x,y,dx,dy):
global activate
if dy == 1:
os.system("clear")
print("Welcome to the mouse controller!\n\n")
print("In order to ACTIVATE the controller scroll down on the mouse wheel.\n\n")
print("In order to DEACTIVATE the controller scroll up on the mouse wheel.\n\n")
print("To close the program, left-click on the terminal window and type ctrl-c.\n\n")
activate = False
if dy == -1:
activate = True
# TODO 5 Update the appropriate class variables and publish


# Handle the event of the user pressing ctrl_c
def shutdownhook(self):
# TODO 6 Update the appropriate class variables and publish before shutdown


print("Shutting down the client ")
self.ctrl_c = True




if __name__ == "__main__":
os.system("clear")
print("Welcome to the mouse controller!\n\n")
print("In order to ACTIVATE the controller scroll down on the mouse wheel.\n\n")
print("In order to DEACTIVATE the controller scroll up on the mouse wheel.\n\n")
print("To close the program, left-click on the terminal window and type ctrl-c.\n\n")
rospy.init_node('Mouse')
Mouse()
#!/usr/bin/env python3

#TODO 0 Update the header below with your information
#Name
#ROS Enabled mouse client
#Activates when mouse wheel is scrolled down and
#Deactivates when mouse wheel is scrolled up
#last modified 8 Jan 2023
#mouse_client.py

import rospy
import pyautogui
import sys
import time
import os
from pynput.mouse import Listener
# TODO 1 Import the lab1 message file you created for the Mouse Controller data


#Initialize global variable that will keep track of mouse button status
global activate
activate = False


#get dimensions of screen so that we can scale for (-1,1) in both x and y
xDim,yDim = pyautogui.size()

class Mouse:
def __init__(self):
global activate
listener = Listener(on_move=self.on_move, on_click=self.on_click, on_scroll=self.on_scroll)
listener.start()
self.ctrl_c = False
rospy.on_shutdown(self.shutdownhook)

# TODO 2 Create class variables to store activation status, and x and y position
# Initialize the controller status to False, and in the center of the screen

# TODO 3 Create a publisher to publish MouseController data on the mouse_info topic



# Handle the event of the user moving the mouse
def on_move(self,x,y):
#We need to establish the use of the global variable for button activation
global activate


if(activate == False):
messageString = "No movement sent, activate cursor first by scrolling down on the mouse wheel"
print(messageString, end='')
# overwrite same line
print('\b' *len(messageString), end='', flush=True)
xScale = 0.0
yScale = 0.0
else:
# Use the dimensions of the monitor to convert output into x & y between -1 and 1
xScale = ((x/(xDim/2))-1)
yScale = -((y/(yDim/2))-1)
xFormat = "{:+.3f}".format(xScale)
yFormat = "{:+.3f}".format(yScale)
# create 19 byte message with x,y coordinates embedded and print to screen
positionStr = 'X: ' + str(xFormat) + ' Y: ' + str(yFormat) + " "
print(positionStr, end='')
# overwrite same line
print('\b' *len(positionStr), end='', flush=True)
# TODO 4 Update the appropriate class variables and publish


#Currently I'm not doing anything with the button click.
#Eventually we could add additional modes if we wanted to.
def on_click(self,x,y,button,pressed):
pass

# Handle the event of the user using the scroll wheel on the mouse
def on_scroll(self,x,y,dx,dy):
global activate
if dy == 1:
os.system("clear")
print("Welcome to the mouse controller!\n\n")
print("In order to ACTIVATE the controller scroll down on the mouse wheel.\n\n")
print("In order to DEACTIVATE the controller scroll up on the mouse wheel.\n\n")
print("To close the program, left-click on the terminal window and type ctrl-c.\n\n")
activate = False
if dy == -1:
activate = True
# TODO 5 Update the appropriate class variables and publish


# Handle the event of the user pressing ctrl_c
def shutdownhook(self):
# TODO 6 Update the appropriate class variables and publish before shutdown


print("Shutting down the client ")
self.ctrl_c = True




if __name__ == "__main__":
os.system("clear")
print("Welcome to the mouse controller!\n\n")
print("In order to ACTIVATE the controller scroll down on the mouse wheel.\n\n")
print("In order to DEACTIVATE the controller scroll up on the mouse wheel.\n\n")
print("To close the program, left-click on the terminal window and type ctrl-c.\n\n")
rospy.init_node('Mouse')
Mouse()
rospy.spin()
Empty file modified _images/EdgeDet.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/GradEx2.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/GradEx3.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/GradTrig.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/GradientEx.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/Grayscale.JPG
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/HOG_Features.JPG
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/HOG_Histogram.JPG
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/IMU.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/LDS02.jpeg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/PixelCont.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/RGB.JPG
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/RGB_Gray.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/RGB_Tuple.JPG
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/bot.PNG
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/callibrate.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/callibration.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/camera_mount.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/clone.PNG
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/fan.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed _images/firmware.png
Binary file not shown.
Empty file modified _images/installer1.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/installer2.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/installer3.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified _images/installer4.png
100755 → 100644
Binary file removed _images/lds_small.png
Diff not rendered.
Binary file added _images/lidarscan_example.png
Empty file modified _images/load.png
100755 → 100644
Empty file modified _images/mouse_info_topic.png
100755 → 100644
Empty file modified _images/rectangle.png
100755 → 100644
Empty file modified _images/rplidar.png
100755 → 100644
Empty file modified _images/rqt_graph.png
100755 → 100644
Empty file modified _images/settings-sidebar-ssh-keys.png
100755 → 100644
Empty file modified _images/ssh-add-ssh-key.png
100755 → 100644
Empty file modified _images/ssh1.png
100755 → 100644
Binary file removed _images/ssh11.png
Diff not rendered.
Empty file modified _images/ssh2.png
100755 → 100644
Binary file removed _images/ssh21.png
Diff not rendered.
Empty file modified _images/ssh3.png
100755 → 100644
Binary file removed _images/ssh31.png
Diff not rendered.
Binary file removed _images/swap1.png
Diff not rendered.
Binary file removed _images/swap3.png
Diff not rendered.
Binary file removed _images/swap4.png
Diff not rendered.
Binary file removed _images/swap5.png
Diff not rendered.
Binary file removed _images/swap6.png
Diff not rendered.
Empty file modified _images/userbar-account-settings.png
100755 → 100644
Binary file removed _images/wifi1.png
Diff not rendered.
Binary file removed _images/wifi2.png
Diff not rendered.
Empty file modified _images/wifi3.png
100755 → 100644
Binary file removed _images/wifi4.png
Diff not rendered.
Empty file modified _images/xml.png
100755 → 100644
Loading

0 comments on commit f492f80

Please sign in to comment.