July 9, 2024

Now that my new ROSBot has been set up, I needed to add some functionality to it. I began by copying all of the movement files that I created, such as motor_command.py, key_op.py, and script_op.py, onto my new ROSBot. Then, I worked on downloading the AprilTag repository onto the ROSBot. However, when running "rastic_cl ws clone me416_apriltag," it said that there was an error fetching some archives. I then ran "sudo apt update" to make sure that everything was up to date, but when I ran that, there was errors about certificate verification failures and updates to repositories could not be applied. I tried fixing the certification issue, but Professor Tron noticed that it was a problem with date on the Libre computer. After setting it to the current date, I was able to install and set up the AprilTag code on the ROSBot. 

Then, I tried controlling both robots at the same time from a single computer. I had two VSCode windows opened, each SSH connected to a ROSBot. I started the motor_command.py file on both of the robots, then when I ran the key_op.py file, it was able to turn both wheels of the robot at the same time.

Finally, I made a simple ROS node that would output where the relative position (ex: top right, bottom left, middle) of the AprilTag is with respect to the camera. I took the data from the AprilTagDetectionArray message that was published by the apriltag node, then using a series of if statements, I found which rough position the AprilTag center was in relative to the camera. I feel like this could be helpful in the future when my robot is moving around and needs to coordinate with the other robot.

My main question today is what would my next task be for my project.

Comments

Popular posts from this blog

July 25, 2024

August 7, 2024