I can not attest that these instructions will work for everyone as I probably forgot a step or two somewhere. Though just send a message and I will probably remember what I missed once I see the problem.
On the windows side you are going to want to use usbipd-win.
-
Download the .msi version as it is easy then building from source.
I think that we all use x64 arch., but if you want to make sure press ⊞ Win + r,type msinfo, and click okay. You should see this.
System Type is what you should pay attention to. -
Run the program
-
Once it is done installing open command prompt as administrator.
-
If usbipd installed correctly, you should be able to run
usbipd list
This is what appears when I run it.
These are the devices you currently have connected to your computer. Your camara should be appearing here. -
We are going to be sharing the device by using the
bindcommand. The bus id is of the camara is what you need to do it. My is 4-7; yours will most likely be different. Replace thebusidwith your own.usbipd bind --busid <busid>
Once done you should be able to run again
usbipd list
and see that the camara is now in the sharing state.
You can now close this window. -
Open a new command prompt window, but this time do not do it in administrator mode. We are going to be attaching the camara to wsl now. Run the following command with the same
busidyou used last time.usbipd attach --wsl --busid <busid>
You should see something like this.
And we are done with this. You can confirm that it worked by running in wsllsusb
Here comes the diffcult part Oh thank God.
Create a folder that you are going to be storing everything in. In my case I called final_ros_ws.
Note
This is not the actual ros workspace. I am just too lazy to change it.
- Wait I want to try something
- Source ros as you usually do
source /opt/ros/humble/setup.bash - Clone the repo
git clone https://github.com/TotalNoob1/AI-Final-Project-.git
- Source the install bash.
source AI-Final-Project-/ros_pack/install/setup.bash - Go into the newly created directory.
cd AI-Final-Project- - Run colcon build in ros_pack
cd ros_pack colcon build - You should be able to now run the program.
I added two extra lines to show that it is working, but you should remove those once you confirm that it is. They are in gesture_control.
ros2 launch final_project ai_gesture.launch.py
There are still bugs throughout the program and improvements to be made, and I am going to be fixing them as the week goes by. Though I won't say no to any help. We are still have to connect this to the virtual simulator. I can do it, but like I said I would not say no to help.
