Showing posts with label ROS. Show all posts
Showing posts with label ROS. Show all posts

Thursday, 27 April 2017

ArcheOS Hypatia and Archeorobotics: ROS for 3D dynamic documentations

Dynamic 3D documentation is a technique we are using more and more in professional archaeology. It can be useful to map in a very fast way any kind of earth-moving work during negative archaeological controls (from wide open area to small trenches, like we did here) or to record in real-time archaeological evidences and layers during a normal excavation (like the video below).




Using this methodology during an ordinary project allows us to perform the segmentation of the 3D model directly on the field (within the software Cloud Compare), dividing each layer of palimpsestic documentation (we spoke about this problem during our presentation at the CHNT conference 2016). This solution avoid long post-processing operations, and it is ideal to spare time and money in low-budget archaeological investigations. For this reason we are evaluating the possibility to insert ROS (Robot Operating System) in ArcheOS Hypatia.
I hope to give you soon good news about the release of the next version of ArcheOS. In the meantime stay tuned to follow our research in testing new Open Source and Free Software. Like always, if you want to help in the development, just contact us in one of our channels: FaceBook, YouTube or Blogger
Have a nice day! 

Thursday, 13 April 2017

ROS and professional archaeology

It is a long time since we wrote something in this blog, but (like every year) the excavation season leaves us few time for research. For this reason, today I want to break our silence and show some results of our latest studies regarding archeorobotics (the use and development of robotic devices in archaeology).
If you are a regular reader of ATOR, you probably know that since 2012 we are working on optical sensor to achieve a real-time 3D documentation of archaeological evidences (or any kind of data we need to acquire during our projects). Since we started to work on different kind of drones (UAV, ROV, etc...), we discover the nice universe of ROS (Robot Operating System) and SLAM (Simultaneous Localization And Mapping) algorithms. In this post we summarized our research on this topic, focusing on the use of Kinect. Currently we already used this techniques on professional projects (like large scale surveys or excavations), adapting the system to work with RGB-D devices (in underground environment or during cloudy days) or stereocameras (with direct sun light conditions). For instance we helped our friend Cristian Boscaro of IUAV to test this technology in order to document the tunnels which connect the domes of the Abbay of S. Giustina in Padua. This evening I will post a video which shows a particular use of ROS and Kinect to solve a technical problem we had on the field today. We were working to assist the excavator in doing a trench for a pipeline near the Sanctuary of S. Romedio, in difficult logistic condition. Despite the absence of archaeological evidences, the Superintendence asked us to document the track of the trench, since often what is realize during the execution of this kind of work is different from what is planned in the map. Due to the fact that too few hours were left to accomplish a documentation with GPS and total station and that this strategy would have been pretty tricky (inside the gorge of the river S. Romedio) and not so accurate (for the scattering effect of the wood), we decided to use SLAM to get a real time 3D documentation of the track and later to georeference the result on the LIDAR data which the Autonomous Province of Trento releases freely. The video below shows the final result, which completely satisfies the (high) archaeological tolerance of this project.


That's all for today! Have a nice evening!

Monday, 30 January 2017

Digitizing the excavation

The 21st Conference on Cultural Heritage and NEW Technologies (CHNT 21, 2016) took place in Vienna  the first week of November 2016. In that occasion we gave a presentation entitled "Digitizing the excavation. Toward a real-time documentation and analysis of the archaeological record". Today I found the time to publish it in our blog, to share our research regarding this topic and in particular some interesting projects of "archeorobotics" we are working on.
Here below you can see the video of the presentation, done like always with the open source software impress.js and Strut...



... and here is a short description of each slide:

SLIDE 1

The title (strictly related with Digital Archaeology in general)

SLIDE 2

A short presentation of Arc-Team

SLIDE 3

All the work has been done thanks to Free/Libre and Open Source Software. In order to keep going on with our research regarding archaeological methodology we need the source code!

SLIDE 4

The fundamental schema of the archaeological cognitive process elaborated by G. Leonardi in 1982. The schema shows the progressive reduction of the informations regarding human actions before and during the archaeological excavation (Human activities --> Traces on the soil --> Natural and anthropological degradation of the record --> archaeological excavation --> archaeological documentation) until the interpretative knowledge starts recover information during the post-excavation stage (with analitical data interpretation and reconstructive hypothesis)

SLIDE 5

A practical example of the schema from the site of Torre dei Sicconi in Italy (a medieval castle):
1. Human activities (summarized in the building of the castle, the medieval battle and the destruction of the main structure and the controlled explosion during the Great War)

2. Traces on the soil (summarized in the evidences of the battle, of the controlled explosion and of recent agrarian activities, while just negative layers were found regarding the construction of the structure)

3. Natural and anthropological degradation (summarized in the battle, the explosion, the agrarian activities and the normal natural dynamics)

4. Archaeological excavation (the most destructive investigation: in Torre dei Sicconi all the layers concerning the tower and the main central building has been removed by this activity)

5. The importance of archaeological documentation comes from distructive analysis (excavation). Being a long term project, Torre dei Sicconi was documented both with traditional and digital methodology

6. Data analysis. During this stage our knowledge of the site started to grow again. In this case both archaeological and historical techniques have been used

7. Reconstructive hypotheses represent the maximum increase of our (interpretative) knowledge of the site. For Torre dei Sicconi this stage has been achieved just for the central part of the castle (tower and main building)

SLIDE 6

The archaeological excavation is the most critical (destructive) stage of our knowledge regarding a site.

SLIDE 7

Arc-Team's excavation strategies:
1. increasing the amount of information registered decreasing the time-consuming operation of archaeological documentation
2. on-site direct observation for a better interpretation, avoiding at the same time any kind of data selection
3. moving the lab into the field (chemical and physical analyses)

SLIDE 8

A milestone of our research: in 2006 the development of the "Metodo Aramus" gave us a better (more precise and accurate), faster and corect (equalized) 2D digital documentation with FLOSS.

SLIDE 9

Another milestone. Between 2008 and 2009 the migration from pure photogrammetric software to SfM and MVSR methods (through the development of a GUI for +Pierre Moulon's application  Python Photogrammetry Suite) gave us better and faster 3D digital documentation

SLIDE 10

Even today we still use a combination of 2D and 3D techniques to meet different requirements of various archaeological projects

SLIDE 11

2D digital documentation through GIS is fast enough for on site interpretation during emergency excavation

SLIDE 12

A software like +QGIS  allows a direct interpretation on the field without the necessity of long post-rpocessing

SLIDE 13

3D documentation gives better results, but needs longer processing time (even if it does not need long data acquisition on the field, which is always performed)

SLIDE 14

We achieved (a lower quality) 3D data acquisition which has the fundamental characteristic of being real-time, thanks to open hardware (archeorobotics)
SLIDE 15
Our experience in archeorobotics dates back to 2006 with our first prototype of UAV, which could be use professionally just in 2008.

SLIDE 16

Currently or archeorobotics research regards our last prototype of Archeodrone (a UAV specifically designed for aerial archaeology)...

SLIDE 17

... some CNC machines and, above all, the Fa)(a 3D, a 3D open hardware printer which without any kind of modifications was able to satisfy our archaeological needs (like 3D printing casts of unique finds or exctract and print DICOM data form x-ray CT scan)...

SLIDE 18

... and the ArcheoROV, the open hardware Remotely underwater Operated Vehicle which we developed with the +Witlab Fablab 

SLIDE 19

Some pictures of the first test of the ArcheoROV

SLIDE 20

A first step into 3D real-time documentation through SLAM (Simultaneous Localization and Mapping) techniques has been done with the open source ROS (Robot Operating System) and RTAB-Map via Kinect...

SLIDE 21

... and tested for 3D real-time documentation in wooden areas (where SfM and MVSR or laserscab would have been too slow), reaching in almost one hour of work a model (with real dimension) of 75000 points.

SLIDE 22

A benefit of archaeorobotic system like these (which are ROS capable) is the possibility to change the sensor in order to adapt the hardware to different situation, using monocular or stereo cameras (for odometry) as well as LIDAR or SONAR devices.

SLIDE 23

Another benefit is the wide range of possibilities offered by the different open source software (e.g. RTAB-Map, LSD-SLAM, REMODE, Cartographer, ecc...)

SLIDE 24

Currently the precision/accuracy level of a real-time 3D archaeological documentation cannot be compared with the results achieved with post-processing through traditional SfM - MVSR systems, but there are good prospects for improvement.

SLIDE 25

Nowadays, basing on our professional experience, the best use of such devices seems to be during extreme operations, such as high mountain archaeology, glacial archaeology, underwater archaeology or speleoarchaeology

SLIDE 26

Another important step to improve the reaction time of professional archaeology, in order to avoid errors during the critical stage of the excavation, is the possibility to perform some basic archaeometrical analyses (chemical and physical) directly on the field.

SLIDE 27

Considering the composition of any archaeological layer based on two different elements, the skeleton (macroscopic) and the fine earth (microscopic), it is obvious that different analyses can be performed in different work environment.

SLIDE 28

For instance, in the case of the skeleton, a fast petrografic (ontoscopic) analysis can be easily performed directly on the field (defining allogeneic elements), while further (more specific) investigations need an equipped laboratory.

SLIDE 29

Also in the case of fine earth, some raw descriptive analyses can be performed on the field, while laboratory investigation can reach very detailed results (e.g. with the Scanning Electron Microscope).

SLIDE 30

The field analysis of the fine earth is more problematic (compared with the skeleton) the most common test (e.g. the Soil texture by feel) are anametric and subjective
SLIDE 31
For this reason, archaeometric test are the better choice (e.g the sedimentation test)

SLIDE 32

The sedimentation test on the field can be improved with basic physical analysis (e.g. considering the Stoke's Law in order to define sand, silt and clay by the tme they need to sediment)

SLIDE 33

Another implementation on the field for the sedimentation test is the possibility to directly store the data into a PostreSQL/PostGIS database (through some specific fields of the archaeological recording sheet), using the open source application geTTexture.

SLIDE 34

An example of the use of geTTexture

SLIDE 35

Other archaeometric test which are simple to perform directly during the excavation are based on basic chemical analyses, and specifically with the quantification of compounds like phosphates or nitrates.

SLIDE 36

Moreover, with some simple workarounds, it is possible to turn anametric (boolean) analyses of carbonates or organic substances, into metric (quantitative) observations.

SLIDE 37

The Archaeological excavation is a destructive process, subject to fatal (not reversible) errors. Moreover the reduced time and budget in professional and emergency archaeology increase stress conditions during decision making stages.
Real-time 3D mapping can speed up data interpretation, avoiding data selection on the field, while on-site chemical and physical analyses (geoarchaeology and archaeometry) can define a better (data-driven) digging strategy.


I hope this presentation can be useful. Have a nice day!

Monday, 8 August 2016

Kinect, a sleeping research branch reacivated

As you probably noticed, one of the topic of ATOR is related with hardware hacking, with the aim to build new archaeological devices from ordinary objects and tools (33).
This concept is close to the one of "reuse" (using an artefact for a purpose which is completely different from the original function), a pretty common phenomenon in archaeology; also in architecture there is something similar,  called "spolia" (but maybe our interest in hacking things is just a kind of McGiver syndrome of people grown up in the 80s).
However, this post is about hacking a common game device like Kinect to use its characteristic in archaeological 3D real-time documentation. If you are a regular reader of ATOR, you will know that we already face this challenge, performing a first test (1) with RGBDemo in February 2012, and controlling accuracy and precision of the device in March of the same year (2), after a discussion with some of the researchers of FBK, during the workshop "Low cost 3D: sensori algoriti e applicazioni". Due to the encouraging results achieved in our first experiments, we worked on the hardware in order to modify it for outdoor projects (3), but soon we experimented the limits of this technology when applied in areas with direct sunlight (4) or in documenting small objects (5, 25). Despite this drawbacks in our research, Kinect worked pretty good in indoor excavations (6), helping us in difficult situations (related with the the workplace safety), and for particular purposed, like for infra-red prospections in dark environment (7).
After all these experiences, our final advice about Kinect is that the device has a potential in archaeology, but its real employment in professional work is restricted to peculiar conditions, while in most of the cases the SfM-based techniques are the best option (due to their versatility, which makes them a perfect choice during missions abroad (8), for small finds documentation (9, 10), for underwater and aerial archaeology (11, 12, 13), considering also the speed which characterize SfM and MVSR open source software development (14) and the wide range of possibilities between the different tools (15, 16).
Well, at least this was our opinion until now... Currently we are changing our mind about Kinect, and this is due to our professional engagement in underground archaeology (17) and to our renovate interest in robotics. Let's deal with these two points separately.

Underground archaeology

Documenting an underground semisubmerged structure in Firuzabad (Iran)

Like any other operation in archaeological 3D documentation, the tolerance regarding accuracy and precision is variable and influenced by some factors, and mainly: research purposes, logistics, characteristics of the structures to be documented.
Without considering some important exceptions (e.g prehistoric rock shelter, which are often simple to document with SfM techniques), most of the structures related with underground archaeology (WW1 artificial caves, medieval mines, etc...) are connected with large scale survey projects (where it is important a "big data" approach, raising the tolerance in data acquisition to increase the number of documented structures); with logistically difficult areas (high mountains, glaciers, (18, 19) etc...); with structures often characterized by vast surfaces without important small details, which (when present) can be recorded with a targeted SfM or RTI (21, 22) documentation (e.g. for graffiti, inscriptions (20), manufacture traces, etc...). For this reason, in most of these projects, it is necessary to deal with precision in documenting (keeping checkpoints thanks to other TOF instruments, like total stations) in order to gain a real-time response from the selected device, and, under this point of view, Kinect is often a good solution, considering also that its infrared sensor helps very much in low light conditions (7).

Documenting WW1 caves in Southtirol (Italy)

Archeorobotics

Arc-Team's UAV during an aerial archaeology project in Storo (Trentino - Italy)

Since 2006, when we joined an aerial archaeological project in Armenia (23), we started to work on "archaeorobotics", trying to develop robotic devices able to help us in the most difficult archaeological missions.
The first positive results we reached in this field were related with aerial archaeology and the building of an open hardware UAV (in 2008), even if at the beginning we underestimated the time needed to practice with our new tool  (24). Soon our experience increased as we built different drones, based on open and closed solutions (like kk multicopter (26) or Naza dji (27) models). The benefits of this research branch were clear (28, 29) and soon other research institutions, like the CNR-ITAB of Rome (30), the University of Lund (31) and  the CNR-ISTI of Pisa (32), asked us to give lessons about this topic.
Another field of archaeorobotics we explored is the one related with CNC machines and especially with 3D Printers. For this topic a precious help came from the society Kentstrapper and Leonardo Zampi (aka +Exekias 87), who helped us in 3D printing the cast of the Taung Child (34, 35). Since RepRap project started (in 2005), 3D printers evolved very fast. Of course our interest regarding these machines is mainly oriented to Cultural Heritage, and this is also the reason why we built a Fa)(a 3D form scratch (36), but results with this kind of instruments can be very impressive, especially considering the wide range of scientific applications (37, 38, 39, 40, 41), even if sometimes you have to deal with difficult boolean operations (42).
However, none of the robotic projects we developed till now needed Kinect, being based on UAV, to 3D document archaeological sites, or on CNC machines, to fast replicate archaeological artefacts. Our renovate interest in Kinect for archeorobotics is due to our new challenge in developing a ROV (Remotely Operated Vehicle), in order to assist us in our underwater archaeological missions. Indeed, in the last months, we started a collaboration with the WitLab, the FabLab of Rovereto (Trentino - Italy), to develop a new Open Hardware ROV, especially designed for archaeological aims. One of the main topic in developing such an instrument is that the new robot will be oriented not only to 3D documentation, but also to the exploration of unknown areas. For such reason SfM and MVS software are no more enough, but we had to start again in testing Open Source SLAM (Simultaneous  Localization And Mapping) algorithms, due to the fact that we need to register in 3D the submerged landscape (Mapping), but also to recover the path the "ArcheoROV" did (Localization) to reach new hidden archaeological evidences (for a better planning of human operations).

Testing the ArcheoROV at night


Testing Open Source SLAM solutions

The importance of SLAM algorithms in exploring devices is the main reason why we started again to experiment Kinect. Indeed, despite Kinect cannot be used as an on-board optical device in our ArcheoROV (due to the infrared camera), this tool is the perfect system to check SLAM software.
If, you ever started in working on robotics, probably sooner or later you stepped into ROS (Robot Operating System), an Open Source (BSD License) collection of software frameworks for robots. Of course SLAM is a very important task for any robotic vehicle, and the ROS package RTAB-Map is a perfect solution to implement this capability into any autonomous or remotely operated machine, like our ArcheoROV. For this reason, before starting experiments in more sophisticated (and complicated) systems, we checked RTAB-Map performance with an old Kinect, and here is the video of the result:



As you can see, the performance of real-time 3D is pretty responsive, respect our old experiments with the Open Source software RGBDemo (also considering that the Kinect used in this video is the first version, and it is now pretty obsolete) and, most important, the localization function within SLAM algorithm works very good. As I wrote at the beginning of the post, our current impression is that this combination of hardware (Kinect) and software (ROS) can be a good solution for underground environment documentation, while the software can be the right choice for archaeological exploring robotic devices.

I hope that this long post will be useful, if you have any feedback, please just write your comment below. Have a nice day!

PS:

we will present the ArcheoROV at the ArcheoFOSS (43) of Cagliari (Sardinia - Italy), this year. Also our partner of WitLab will be with us!

Webography

ATOR:

(1) Kinect, real-time 3D; (2) Kinect accuracy and precision with RGBDemo; (3) Kinect 3D outdoor: hacking the hardware; (4) Kinect 3D outdoor: first test; (5) Kinect 3D limits: documenting small objects; Kinect 3D indoor: excavation test (6); Kinect - Infrared prospections (7); Aramus 2014: 2D and 3D documentation of archaeological excavation (8); 3D for archaeological finds (9); Taung Project: 3D with SfM & IBM (10); Extreme SfM: underwater archaeology (11); From drone-aerial pictures to DEM and ORTHOPHOTO: the case of Caldonazzo's castle (12); Documentation of a bas-relief on a cliff : the workflow (13); CMVS/PMVS2 40% faster (14); OpenMVG VS PPT (15); MicMac and PPT: two FLOSS solutions for 3D data (16); SfM for Underground Documentation (17); Archaeology as a profession (18); Glacial Archaeology: About the challange to work in extreme conditions (19); WW1: High Alpine Survey Data - Work in Progress (20); Arc-Team tries Large Scale Reflectance Transformation Imaging (RTI) (21); WebRTIViewer (22); UAVP (Universal Aerial Video Platform) (23); UAVP indoor flight (24); 3D documentation of small archaeological finds (25); Building an Xcopter (26); Arc-Team's UAVP: testing the NAZA dji (27); Xcopter drone and SFM techniques (28); ArcheOS and UAVP for archaeological remote sensing (29); Open Source Remote Sensing Platform (30); Remote sensing with UAV in archeology (lessons at Lund University) (31); Aerial archaeology with FLOS Hardware and Software (32); A DIY endoscope for emergencies during excavation fieldwork (33); 3D PRINTING THE PAST: SOME ISSUES (34); The Taung Child is now touchable, thanks to 3d printing (35); 3D printing for Cultural Heritage (36); Space archaeology (37); 3D PRINTING GOOGLE MAPS IS NOW EASY (38); When Veterinary Medicine and 3D printing meet each other (39); Three more animals are saved with the aid of Blender and 3D printing (40); Augmented Reality at Cultways (41); Boolean operations - the powerful Cork! (42); ArcheoFOSS 2016 in cagliari! (43)

Kentstrapper website: http://kentstrapper.com/

Fa)(a 3D website: http://www.falla3d.com/

WitLab website: http://www.witlab.io/

ROS website: http://www.ros.org/

RTAB-Map website: http://introlab.github.io/rtabmap/

BlogItalia - La directory italiana dei blog Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.