Git Product home page Git Product logo

Comments (8)

wh200720041 avatar wh200720041 commented on May 18, 2024 1

can you provide a rosbag link so that I can have a quick test?

from floam.

wh200720041 avatar wh200720041 commented on May 18, 2024

Hi @WenTheProgrammer

The KITTI dataset uses world as the origin, however, the frame for the origin is "map". Hence there is a static transform publisher between world and map. The trajectory visualizer subscribe the world and base_link to show the trajectory,

If you want to use velodyne, you can simply subscribe the map and base_link to show the trajectory, to do this, add

    <node pkg="hector_trajectory_server" type="hector_trajectory_server" name="trajectory_server_floam" ns="floam" >
        <param name="/target_frame_name" value="map" />
        <param name="/source_frame_name" value="base_link" />
        <param name="/trajectory_update_rate" value="10.0" />
        <param name="/trajectory_publish_rate" value="10.0" />
    </node>

from floam.

WenTheProgrammer avatar WenTheProgrammer commented on May 18, 2024

Thank you for the quick reply! I first modified floam_mapping.launch by adding the node as you instructed. Unfortunately the issue persisted. I noticed that in the launch file this node already existed:

<node pkg="hector_trajectory_server" type="hector_trajectory_server" name="trajectory_server_loam" ns="base_link" >
    <param name="/target_frame_name" value="world" />
    <param name="/source_frame_name" value="base_link" />
    <param name="/trajectory_update_rate" value="10.0" />
    <param name="/trajectory_publish_rate" value="10.0" />
</node>

Since it looked rather similar to the one that you suggested, I replaced it with the new node. Again, I received the same warnings. Any other suggestions? Thanks.

from floam.

wh200720041 avatar wh200720041 commented on May 18, 2024

You can ignore the warnings, and in the rviz menu, change the trajectory(floam_result) to the topic with floam, then you should see the trajectory

from floam.

WenTheProgrammer avatar WenTheProgrammer commented on May 18, 2024

If I understand you correctly, in RViz, under floam_result, Topic by default was /base_link/trajectory. The dropdown menu for Topic did not give me another option, so I just changed it to floam/trajectory, which returned me nothing. If possible I would like to view both trajectory and mapping results.

Aside from the viewing issue, how can I export the registered point clouds (mapping results) from FLOAM to a file (e.g. pcd/ply)? I did not find an apparent way of doing it in RViz. Thank you!

from floam.

wh200720041 avatar wh200720041 commented on May 18, 2024

You have to change to global frame to map in rviz

from floam.

WenTheProgrammer avatar WenTheProgrammer commented on May 18, 2024

After setting Fixed Frame to map I still don't see anything. Here is the screenshot:

Screenshot from 2021-03-14 13-40-20

Here are the terminal outputs:

Screenshot from 2021-03-14 13-50-38

from floam.

BamsaAhmed avatar BamsaAhmed commented on May 18, 2024

@wh200720041 Hi thank you for effort,
I used rosrun rqt_tf_tree to show the frame tree and it is as :

frames
Is the relationship between the frames correct?

from floam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.