luxonis / depthai-ros

Official ROS Driver for DepthAI Sensors.
MIT License
239 stars 173 forks source link

how to run stereo_inertial_node.launch with another IMU data #453

Open Ghada09 opened 7 months ago

Ghada09 commented 7 months ago

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

Serafadam commented 7 months ago

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.

Ghada09 commented 7 months ago

can you explain in detail please

Serafadam commented 7 months ago

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

slowrunner commented 6 months ago

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.