July 11, 2024

Today, I worked on making launch files for several nodes so that I can control each robot individually. To do so, I changed the remapping of many topics so that they had the prefix "r1" or "r2", which represents robot 1 and robot 2, respectively.

The first launch files I created were for the motor_command nodes. I named the files "r1_mtrcmd_launch.py" and "r2_mtrcmd_launch.py" for each of the robots. In the file, I remapped the topic names so that they also had the prefix "/r1" or "/r2". 

Then, I tried making launch files for the key_op nodes. However, when I launched them, I received a termios error, which meant that I couldn't press keys as inputs. I tried a number of ways to fix it, but nothing worked. Nevertheless, I created a launch file for the scripted_op nodes, and it worked.

Finally, I created launch files for the camera. I began by making a launch file for the camera0 node, which was mainly just remapping and changing some topic names. However, the launch file for the apriltag node was a bit more difficult. The remapping list in the file did not contain all of the topics that were associated with the node, so I had to list out all of the topics with the apriltag node by writing "ros2 node info /apriltag". Then, I added all of the topic names into the remapping list and renamed them so that they had the prefix /r1.

My main question for today is how to fix the termios error from the key_op launch file. I tried using different key inputs, putting more arguments in the Node() call in the launch file, and trying it directly connected to the Libre rather than using SSH. 




Comments

Popular posts from this blog

July 25, 2024

August 7, 2024