Authors: Joel Goh, Maximiliano Palay, Rahul Roy, Sophia Schiffer, Jialu Yu
ME495video.mp4
In this project, the Franka arm searches for known randomly placed pins and shoots them down. It is fitted with an onboard camera to see its environment and a Nerf blaster to be able to shoot the targets. The user can specify the color of the pins that the arm is going to shoot first and then once all of those colored pins are shot, the arm will wait for a second input to continue shooting different colored targets.
This repository is a detached fork from the repository the group has worked in.
- Connect the arduino and realsense camera to the computer
- Optional to connect an external microphone to your computer but the built-in computer microphone works as well
- Ensure that the two nerf guns are in front of the Franka arm roughly symmetrical around the y axis
- The two guns need the apriltag 42 and 95 from the 36h11 family
- Each gun is also loaded with 6 bullets
- Start the moveit group on the Franka station using
ros2 launch franka_moveit_config moveit.launch.py use_rviz:=false robot_ip:=panda0.robot
- Connect to the realsense by running on your computer
ros2 launch realsense2_camera rs_launch.py depth_module.profile:=1280x720x30 pointcloud.enable:=true align_depth.enable:=true
- On your computer run the launch file,
ros2 launch control shoot_pins.launch.xml
, which starts the rest of the necessary nodes- An error message will show with the msg, "Waiting for input", where the audio input can be given starting the demo
The image below shows the different nodes in the system and how they communicate with each other.
Created by the authors:
- Control
- Main node which is used to call services to other nodes to carry out the demo.
- Shoot
- Node that carries out all moveit-interface services such as cartesian planning, IK planning, and gripper requests.
- Yolo
- Node that runs YOLO to find the colored bowling pins with respect to the base of the Franka arm and display them as markers in Rviz2.
- User_Input
- Node that listens to the user's audio input to set the color of the targeted pins.
- Trigger
- Node that controls the Arduino for the gun's trigger.
Not created by the authors:
- Apriltag_node
- Node that scans and gives the coordinates for the April tags.
- Shoot_pins.launch.xml in control package
- This launch file launches the franka_moveit_config rviz launch file and the control, shoot, yolo, user_input, trigger, and apriltag nodes.
- One of the biggest issues is the success rate of hitting targets because even if the gun is correctly pointed at the target, the error from the gun can cause the gun to miss. This would be something that would ideally be fixed by either increasing the accuracy of the gun so that as long as the gun is properly aimed that it would hit the target or increasing the bullets to increase the chances of hitting. Another option would be to include motion while the gun is shooting to try to correct the error from the gun.
- 360-degree scanning and shooting. Currently, the arm is only able to scan and shoot targets in front of itself so the next step would be adding the ability to target in any direction. Additionally, further testing on the limits of the height of the targets would also be necessary to determine how high and how low a target can be and have the arm still successfully shoot it.
- Dynamic aiming. The assumption is made that the targets are stationary and unable to move, so being able to add a camera to allow for the arm to constantly scan for targets would allow for two different things. The first is a dynamic environment where targets are moved before the gun is shot and remain stationary and can be hit, and the second is moving targets where the gun can track its motion and shoot.