Closed rsj007 closed 2 years ago
Obviously, the extrinsic parameters of the camera are inappropriate. Check the framework of your camera pose topic, we don't know what frame airsim is used. Then refer to this line of code to write your own code for rotating your acquired camera pose.
I use the point cloud as input. The tfs I set are as below:
<node pkg="tf" type="static_transform_publisher" name="camera_link_to_world" args="0 0 0 -1.57 0 -1.57 base_link front_center_optical 30" /> <node pkg="tf" type="static_transform_publisher" name="tf_camera" args="0 0 0.0 0 0 0 base_link odom 100"/>
Is it right? Do I need other tfs? Thanks very much!
I use the point cloud as input. The tfs I set are as below:
<node pkg="tf" type="static_transform_publisher" name="camera_link_to_world" args="0 0 0 -1.57 0 -1.57 base_link front_center_optical 30" /> <node pkg="tf" type="static_transform_publisher" name="tf_camera" args="0 0 0.0 0 0 0 base_link odom 100"/>
Hello! I may meet the same question...
So could you please share something about how to get the correct depth image required by the "ego-planner"?I input the depthplanar and just get 2-value images just like the photo.....And I nearly get no grid map any time.Only when the drone is encountered with an obstacle can i got a slight gridmap...
Our mapping code does not use tf to get extrinsic parameters. You should manually set it directly in the code as I mentioned in the previous response.
I use the point cloud as input. The tfs I set are as below:
<node pkg="tf" type="static_transform_publisher" name="camera_link_to_world" args="0 0 0 -1.57 0 -1.57 base_link front_center_optical 30" /> <node pkg="tf" type="static_transform_publisher" name="tf_camera" args="0 0 0.0 0 0 0 base_link odom 100"/>
Hello! I may meet the same question... So could you please share something about how to get the correct depth image required by the "ego-planner"?I input the depthplanar and just get 2-value images just like the photo.....And I nearly get no grid map any time.Only when the drone is encountered with an obstacle can i got a slight gridmap...
So could you get the right depth image now?
If there is no more reply, I will close this issue
Hello, I am running ego-planner simulation in airsim. I use depth and camera pose as inputs .The tfs I set as follows. However the grid map is strange, only a small one, not like the tree before the drone. Besides when the drone take offs, the grid map disappears. Could someone give me some guides please?