-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Cartographer without ROS #1229
Comments
My approach to this is to use cartographer_ros without ros :) I yanked out into a separate library some ROS headers and a small subset of roscpp (rosbag and tf buffers) which is enough to build cartographer_ros. It even works on windows. I can share it if there's any interest. |
That sounds cool! Please share @ojura !! Thanks :) |
https://github.com/larics/cartographer_superbuild/tree/ros_stub You should be able to build the offline node by calling
Afterwards you can use the offline node to process ros bags. Do not source /opt/ros/setup.bash, it should be self-contained. |
@ojura Thanks for the reply and I am going to look into this today. But could you please tell me briefly what is the basic difference between cartographer_ros and the repository you have provided here? |
Here are some more queries:
|
My cmake fails even though I have google-mock in my system.
|
Building on a clean Ubuntu 18.04 install:
|
Thanks @ojura |
I was able to compile it on my Mac installing similar packages to the ones from Ubuntu using brew. I'm now trying to make it run with Clang, I created a small program to test it but I don't know yet how to display the map on the screen. Any idea? |
Check out the occupancy grid node in cartographer_ros and how it constructs the map. Normally it publishes it as a message - you can try adapting it to display it on the screen instread. |
@ojura Hello!I don't know how to get the trajectory without ROS,I cross-compiled the cartographer on the arm,Can you give some advice? |
In node.cc, see calling Or if you have a .pbstream from calling |
Thank you, I will try it. |
I had this issue as well I solved it by:
This variables You might need to add
But it shouldn't be necessary, since gmock contains gtest and the |
Is there any tutorial or API available where once can use the cartographer standalone library without using the ROS interface?
The text was updated successfully, but these errors were encountered: