Closed ryoma310 closed 2 years ago
I resolved it by myself!
For those who struggling on this question I find out the problem.
Because in airsim ros-node it doesn't provide baseline in camera_info. So if you want to get the point cloud through disparity image, you need to provide the Tx parameter manually in one of projection matrix in camera_info. see also sensor_msgs/CameraInfo.msg for more information. Cheers.
@CWC107753035 That's exactly what I did to solve this issue. Thanks.
@ryoma310, how did you arm and takeoff this drone? I cannot see any service or topic to do so:
I think you can use ros service call to takeoff. Maybe /airsim_node /PX4/takeoff ?
Kanishk Vishwakarma @.***>於 2023年6月23日 週五,15:32寫道:
@ryoma310 https://github.com/ryoma310, how did you arm and takeoff this drone? I cannot see any service or topic to do so: [image: image] https://user-images.githubusercontent.com/52484751/248202631-0cf0d0cb-c25e-42bf-b3d6-8c2b6f0778a0.png [image: image] https://user-images.githubusercontent.com/52484751/248202524-b9edf858-2c3a-4083-87db-1683e9249be8.png
— Reply to this email directly, view it on GitHub https://github.com/microsoft/AirSim/issues/4634#issuecomment-1603856853, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOHFC7R7YTRGWLMOICTKWI3XMVBCXANCNFSM54GP3TZQ . You are receiving this because you were mentioned.Message ID: @.***>
I am running a rosservice call /airsim_node/PX4/takeoff "waitOnLastTask: false"
but drone is not taking off (not even arming).
There also seems to be no option to set the state (OFFBOARD/ALTITUDE/POSITION etc.)
According what you said, i think your mavlink doesn't connect to your airsim. Does your QGC can connect to your airsim? If so , maybe you can try to takeoff by using QGC GUI?
I am new to PX4, I did not setup PX4 sitl for AirSim. Now I did and it's working perfectly fine!! Thank you very much!
Question
What's your question?
I try to use stereo_image_proc to depth estimation from images obtained by airsim_ros_pkg. It seems to work well as I see disparity image. But when I check the point cloud, it shows only one point.
Include context on what you are trying to achieve
Context details
This is my setting.json
stereo_image_proc launch file
Include details of what you already did to find answers
I search about it and found that camera_info may have same error. I checked the topic detail and find that the projection matrix of left and right camera are same. (because of this, stereo_image_proc node cannot calculate the depth.)