sudo pip3 install torch torchvision
sudo pip3 uninstall colcon_core sudo pip3 install colcon_core
sudo pip3 install transforms3d
https://github.com/ros-perception/vision_opencv/tree/humble/cv_bridge
Don't forget to source your ros2 env first e.g. . /opt/ros/humble/setup.bash
cd <YOUR_ROS2_WORKSPACE>/src
git clone https://github.com/ros-perception/vision_opencv.git -b <ROS2_DISTRO>
cd ..
colcon build --packages-select cv_bridge --symlink-install
git clone https://github.com/NVIDIA-AI-IOT/jetcam
contribution from Mr. Nigel Gardiner from AWS
curl -fsSL "http://bit.ly/robomaker" | sudo -E bash -
After about 10 minutes with ROS installed, you must reboot the system
sudo reboot
git clone -b saveimage https://github.com/lbaitemple/aws_mouse/
cd aws_mouse
bash ./updateos.sh
Only when you see any lock error, please try
sudo rm -r /var/lib/dpkg/lock*
sudo dpkg --configure -a
bash ./updateos.sh
rosdep install --from-paths src --ignore-src -r -y
colcon build
source install/setup.bash
cd ~/environment/aws_mouse
export DISPLAY=:0
source install/setup.bash
roslaunch maze_demo explore_world.launch
cd ~/environment/aws_mouse
source install/setup.bash
rosrun maze_demo runner_template.py oforward 1.2
3c.open one more terminal to control the robot rotate left for 90 degrees (right rotation is negative degrees)
cd ~/environment/aws_mouse
source install/setup.bash
rosrun maze_demo runner_template.py turn 90
source install/setup.bash
export DISPLAY=:0
rqt_image_view
roslaunch maze_demo explore_world.launch worldfile:=empty_flower.world x:=0 y:=0
cd ~/environment/aws_mouse
source install/setup.bash
rosrun maze_demo test_runner.py forward 0.1
rosrun maze_demo test_runner.py turn 90
roslaunch maze_demo explore_world.launch x:=-0.75 y:=-2.25 Y:=0.00
make sure you create a background folder first
rosrun img_recognition mkdir.py -n background
Then, you can create other folders based on target image labels
rosrun img_recognition mkdir.py -n rose
rosrun img_recognition mkdir.py -n sunflower
rosrun img_recognition mkdir.py -n daisy
rosrun img_recognition rmdir.py --name rose
cd ~/environment/aws_mouse
source install/setup.bash
roslaunch img_recognition save_rosimage.launch
rosservice call /save_image/select_label background
rosservice call /save_image/select_label rose
cd ~/environment/aws_mouse
source install/setup.bash
rosservice call /save_image/save_image_action true
rosservice call /save_image/save_image_action false
rosservice call /save_image/select_label sunflower
rosservice call /save_image/select_label rose
cd ~/environment/aws_mouse
source install/setup.bash
rosservice call /save_image/save_image_action true
rosservice call /save_image/save_image_action false
bash ./saveconfig.sh backup
bash ./saveconfig.sh restore
cd
cd ~/environment/aws_mouse
source install/setup.bash
roslaunch img_recognition train_rosmodel.launch
cd ~/environment/aws_mouse
source install/setup.bash
roslaunch img_recognition infer.launch
cd ~/environment/aws_mouse
source install/setup.bash
rostopic echo -n1 /prediction
rostopic echo -n1 /inference
roslaunch maze_demo explore_world.launch laser_visualize:=true
roslaunch maze_demo explore_world.launch camera_visualize:=true