Mapping and Relocalization

What is the proper way to create a map with the ZED2i?

Do I just edit the ros params to save the area memory?
Also, how can I get the camera pose in the World coordinates?

Hi @sesem738,

The area memory allows to save the positional tracking representation for its SLAM algorithm to relocate itself and perform loop closures when located in an area that the camera has already seen before.

To retrieve the camera pose in world coordinates in C++ you can do it as so:

POSITIONAL_TRACKING_STATE state = zed.getPosition(zed_pose, REFERENCE_FRAME::WORLD);

In ROS, the camera pose in world coordinates is available on the topic:

/zed/zed_node/pose

Hi,
I am trying to save the area_memory, but I doesn’t seem to save.
I edited the zed_wrapper params to save to area_memory.area. When I launch the zed2i,

area_memory_db_path [/home/cerveaux/.ros/area_memory.area] doesn't exist or is unreachable. 
[ INFO] [1723833173.381376664]: The file will be automatically created when closing the node or calling the 'save_area_map' service if a valid Area Memory is available.

However, it doesn’t save when I close node despite it saying,

Saving Area Memory file: /home/cerveaux/.ros/area_memory.area