depthai-ros icon indicating copy to clipboard operation
depthai-ros copied to clipboard

how to run stereo_inertial_node.launch with another IMU data

Open Ghada09 opened this issue 2 years ago • 4 comments

I have oak d lite camera but it does not have the IMU built in, and I was planning to put this camera on my drone, so I thought about using the drone's IMU in the camera's example files as they don't run without IMU, so can you help me on what to change in these files maybe the urdf? so that it takes the IMU data from the drone not from the camera

Ghada09 avatar Nov 10 '23 17:11 Ghada09

Hi, if the drone's driver supports it, then you should be able to get the IMU readings from it. To get the transforms, you can just publish robot's description and use camera's launch file arguments to mount it to the drone.

Serafadam avatar Nov 13 '23 09:11 Serafadam

can you explain in detail please

Ghada09 avatar Nov 17 '23 15:11 Ghada09

Hi, I'm not sure what software your drone is running, but if it has a ROS driver, then it should output IMU messages after running it. It should also publish it's URDF on description, after you set the mount point of the camera you should be able to get those transforms. An example on how to "mount" the camera can be seen for example here

Serafadam avatar Nov 21 '23 11:11 Serafadam

The “use another IMU” requires a ROS IMU node in your system that can directly access the drone’s IMU. That is the complexity hidden in this.

slowrunner avatar Dec 23 '23 15:12 slowrunner