Changes between Version 19 and Version 20 of Other/Summer/2023/SelfDriving


Ignore:
Timestamp:
Jul 6, 2023, 2:33:47 PM (12 months ago)
Author:
BHC31
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Other/Summer/2023/SelfDriving

    v19 v20  
    7575- 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
    7676- 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
    7778
    7879ROS setup instructions:
     
    104105- Install the realsense package (Add Link!)
    105106
     107Using ROS:
     108
    106109- To run a ROS node: use "rosrun package nodename". For example, "rosrun joy joy_node" to run the joystick package.
    107110    - roscore must be running first by typing "roscore" in the terminal.
     
    113116- To run a ROS launch file, use "roslaunch package launchfile.launch". For example, "roslaunch rascal sim.launch".
    114117- 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.
    115121
    116122
    117123To run the simulation on a VM:
    118124
     125- Switch to the simulation branch by using "git checkout simulation" (in the upcar repository)
    119126- Joystick needs to be configured in virtualbox. If you are using mac, the VirtualBox must be run as sudo.
    120127    - Follow these instructions: https://askubuntu.com/questions/25596/how-to-set-up-usb-for-virtualbox
     
    127134    - note: you can use any unused port instead of 5001. 5000 is used for the guest port as it is the default for flask.
    128135    - you may need to restart the VM.
    129 -
     136- run simlaunch.sh
    130137
    131138Other Notes: