CnnDepth / tx2_fcnn_node

ROS node for real-time FCNN depth reconstruction
MIT License
112 stars 31 forks source link

Mappping problem #13

Open surajmahangade opened 4 years ago

surajmahangade commented 4 years ago

I tried mappping a environment using your model in gazebo.But the map dissappears after moving for some time. Here is the link to the video https://drive.google.com/file/d/1Oniq8bKh_OOSfb23sV2u_62Ci7ZQnFue/view?usp=sharing

and my tf_tree Screenshot from 2020-07-07 19-02-23

Any idea what might be wrong.

Thank you

avbokovoy commented 4 years ago

Can you post your .launch file? Guess it's RTAB-Map memory parameter.

surajmahangade commented 4 years ago
<launch>
  <node pkg="rtabmap_ros" type="rtabmap" name="rtabmap">
    <param name="RGBD/LinearUpdate" value="0"/>
    <param name="RGBD/AngularUpdate" value="0"/>
    <param name="Rtabmap/DetectionRate" value="5"/>
    <param name="Rtabmap/MemoryThr" value="100"/>
    <param name="Kp/DetectorStrategy" value="2"/>
    <param name="Kp/MaxFeatures" value="2000"/>
    <param name="frame_id" value="world"/>
    <param name="odom_topic"  value="/tello/odom"/>
    <param name="RGBD/CreateOccupancyGrid" value="true"/>
    <param name="Grid/3D" value="true"/>
    <param name="Grid/FromDepth" value="true"/>
    <remap from="/odom" to="/tello/odom" />

    <param name="approx_sync"  value="true"/>
  </node> 

  <node pkg="tx2_fcnn_node" type="tx2_fcnn_node" name="tx2_fcnn_node">
    <param name="input_width" value="320"/>
    <param name="input_height" value="240"/>
    <param name="use_camera" value="false"/>
    <param name="camera_mode" value="-1"/>
    <param name="camera_link" value="tello/camera_front"/>
    <param name="depth_link" value="tello/camera_front"/>
    <param name="engine_name" value="test_engine.trt"/>
    <param name="calib_name" value="tx2_camera_calib.yaml"/>
    <param name="input_name" value="tf/Placeholder"/>
    <param name="output_name" value="tf/Reshape"/>
    <param name="mean_r" value="123.0"/>
    <param name="mean_g" value="115.0"/>
    <param name="mean_b" value="101.0"/>
    <remap from="/image" to="/tello/camera/image_raw" />
  </node>

</launch>

This is the content of the launch file

avbokovoy commented 4 years ago

Yes, it's RTAB-Map related issue. Try changing Rtabmap/MemoryThr parameter to 0.

surajmahangade commented 4 years ago

I changed the parameter in launch file. That didn't work. Still facing the same problem. Anything else it can be?

aayushi363 commented 4 years ago

Yes, it's RTAB-Map related issue. Try changing Rtabmap/MemoryThr parameter to 0.

Facing the same issue. Tried the possible solutions suggested by you ...no progress

avbokovoy commented 4 years ago

@aayushi363 @surajmahangade Can you provide rosbag files without RTAB-Map and tx2_fcnn_node output, so I can check the issue myself?