July 25, 2024
Today, I began by working on making a ROS2 node that would publish the IMU data in an sensor_msgs/Imu message. However, the executable that runs the IMU is not a ROS2 node, so it is difficult to just subscribe to the output. I found online that I could use the subprocess module, which allowed me to run the IMU executable at the same time as I run the IMU node that I made. Then, I read each line of the output, split the string into a list, and then filled in the fields of the IMU message.
Then, I had some troubles using the lookup_transform() method. Even after confirming that the frames were published on rviz2, creating the frame tree pdf, and many debugging methods, I am unable to generate a transform between the IMU north frame and the tag frame.
Comments
Post a Comment