A toolbox for managing Semantic Object Maps (SOMA). Currently there are two modeling tools:
- the SOMA object manager
- the SOMA ROI manager (ROI = regions of interest)
The SOMA manager for objects visualizes objects in RVIZ where the user can add, delete, move, and rotate them interactively. The SOMA manager for ROIs visualizes regions in RVIZ where the user can add, delete, and modify them. Both the object and the ROI configurations are immediately stored and updated in the ROS datacentre (MongoDB).
- MongoDB
- mongodb_store
- ROS's navigation stack
-
Start the ros core:
$ roscore
-
Launch the ROS datacentre:
$ roslaunch mongodb_store datacentre.launch
-
Run the map_server with a 2D map:
$ rosrun map_server map_server /home/omari/robot_files/cs_lab_final.yaml
where map.yaml
specifies the map you want to load.
- Start RVIZ, add a Map display type and subsribe to the
/map
topic:
$ rosrun rviz rviz
-
Run the SOMA object manager:
$ rosrun soma_manager soma.py map1 test1
where map
denotes the name of the 2D map (Step 3) and config
denotes an object configuration within this map. By default, the configuration file soma_objects/config/default.json
is used to initialize the list of available object types. Alternatively, the following command can be used to use a different configuration file:
```
$ rosrun soma_manager soma.py -t /path/to/config/file <map> <config>
```
- In RVIZ, add an InteractiveMarker display type, and subsribe to the
/soma/update
topic: - Add, delete, move, and rotate objects in RVIZ using the interactive marker and the context menu (right-mouse-click)
-
Run the SOMA ROI manager:
$ rosrun soma_roi_manager soma_roi.py <map> <config>
where map
denotes the name of the 2D map (Step 3) and config
denotes an object configuration within this map. By default, the configuration file soma_roi_manager/config/default.json
is used to initialize the list of available ROI types. Alternatively, the following command can be used to use a different configuration file:
```
$ rosrun soma_roi_manager soma_roi.py -t /path/to/config/file <map> <config>
```
- In RVIZ, add an InteractiveMarker display type, and subsribe to the
/soma_roi/update
topic: - Add, delete, modify ROIs in RVIZ using the interactive marker and the context menu (right-mouse-click)