Changes between Version 19 and Version 20 of Other/Summer/2023/SelfDriving
- Timestamp:
- Jul 6, 2023, 2:33:47 PM (17 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Other/Summer/2023/SelfDriving
v19 v20 75 75 - You will need to have Sudo access on your account in Ubuntu. Follow this StackOverflow: https://askubuntu.com/questions/124166/how-do-i-add-myself-into-the-sudoers-group 76 76 - Run "sudo apt update" to update packages before doing things. 77 - If you want to be able to ssh into the VM through your local machine, you need to set up port forwarding on the VM. Follow this guide: https://help.skytap.com/connect-to-a-linux-vm-with-ssh.html 77 78 78 79 ROS setup instructions: … … 104 105 - Install the realsense package (Add Link!) 105 106 107 Using ROS: 108 106 109 - To run a ROS node: use "rosrun package nodename". For example, "rosrun joy joy_node" to run the joystick package. 107 110 - roscore must be running first by typing "roscore" in the terminal. … … 113 116 - To run a ROS launch file, use "roslaunch package launchfile.launch". For example, "roslaunch rascal sim.launch". 114 117 - on the first launch, or any time you change build files (CMakeLists, package.xml) you will need to navigate to the catkin workspace directory and run "catkin_make". 118 - To create a new package: http://wiki.ros.org/ROS/Tutorials/CreatingPackage 119 - To create a new python file that can be run through rosrun: Create the file somewhere within the package's src directory. Make sure the shebang is in the beginning ("#!/usr/bin/env python"). Then add the file to the package CMakeLists.txt in catkin_install_python. 120 - To be able to import python modules from within the same package: make sure catkin_python_setup() is uncommented in the package's CMakeLists.txt. Then reference the directory structure visible in the rascal package. Make sure to include the "setup.py" file in the package's directory. 115 121 116 122 117 123 To run the simulation on a VM: 118 124 125 - Switch to the simulation branch by using "git checkout simulation" (in the upcar repository) 119 126 - Joystick needs to be configured in virtualbox. If you are using mac, the VirtualBox must be run as sudo. 120 127 - Follow these instructions: https://askubuntu.com/questions/25596/how-to-set-up-usb-for-virtualbox … … 127 134 - note: you can use any unused port instead of 5001. 5000 is used for the guest port as it is the default for flask. 128 135 - you may need to restart the VM. 129 - 136 - run simlaunch.sh 130 137 131 138 Other Notes: