Home    About me    Publications    Blog    Undergrad memories

Fabio Ruini's blog

'cause Italians blog better

Archivio per la 'Artificial Life and Autonomous Robotics' Categoria

Distributed Control for Collective Behaviour in Micro-unmanned Aerial Vehicles

Come preannunciato all’incirca un mesetto fa (per la precisione in questo post) le correzioni che ho apportato alla mia tesi di Ph.D., dopo un lungo viaggio ai confini dell’esasperazione sono state infine approvate. Ed e’ quindi giunta l’ora di preparare la versione finale del lavoro, pronta per essere depositata negli archivi digitali della Plymouth University. Impresa a cui mi sono dedicato ieri pomeriggio e che si e’ conclusa agevolmente in prima serata richiedendo meno sforzi del previsto.

Essere arrivati alla versione finale del documento significa che posso finalmente condividerlo. Ecco dunque che i piu’ curiosi, intrepidi ed audaci di voi (o, nella peggiore delle ipotesi, solo e soltanto i crawler dei principali motori di ricerca del web) possono scaricare copia della mia tesi dal link qui di seguito. A breve, promesso, provvedero’ anche ad inserirla nella sezione “Publications” del sito.

Share

Ethical considerations on the employment of military lethal autonomous robots

Et voila. Un’intera nuova sezione della mia tesi dedicata agli aspetti etici dell’impiego di robot autonomi in ambito militare. Siccome il post e’ lunghetto direi di saltare i convenevoli e lasciarvi direttamente alla lettura. Enjoy.

As we have seen in the previous chapter, the aerial autonomous robotics domain is characterised by a strong military footprint. Most of the latest developments in the filed come from military research and the battlefields are the arenas in which the technological innovations are put at test. The US, who have been employing several thousands of military robots during operations Enduring Freedom and Iraqi Freedom [1], have launched several plans (see for example the Future Combat Systems1 running from 2003 to 2009, the Unmanned Systems Roadmap 2007-2032 [2], and the Unmanned Aircraft Systems Roadmap 2005-2030 [3]) aiming to increase the proportion of autonomous robots within the American military apparatus. According to their plans, one third of the US operational ground combat vehicles will be unmanned by 2015 [1]. No exact figures have been provided for UAVs, but it is not utopia to believe that these numbers could be even higher for unmanned aircraft.

At the current stage the widely employed Predator and Reaper UAVs, as well as the counterparts employed by other militaries, are only semi-autonomous robots, as they rarely fly in complete autonomy and they still require a man-in-the-loop to decide when to perform a potentially lethal operation (e.g. to fire a missile). The legal and ethical implications for the men in control of these UAVs are the same as for piloting an aircraft or calling in the coordinates for a traditional air strike. However, one the new goals of the military research now consists in getting rid of the man-in-the-loop and let the military robots, either aerial, underwater or terrestrial, to acquire and fire their targets autonomously [4, 5, 6]. Apart from the technological challenges that this plan implies, there are several ethical considerations that have, not only to be taken into account, but also to be promptly addressed.

In the next pages we are not going to discuss the morality of the research in autonomous robotics applied to the military world. Anyone may have his opinion on the topic, which I personally respect and which I do not intend to affect in any way. Rather, we will analyse the ethical implications of having autonomous robots on the battlefield in the light of the modern laws of war. Keeping in mind that, as suggested by Arkin [7], when properly functioning robots can be even “more ethical” than humans, as they are unlikely to imitate the countless war atrocities committed by human soldiers during history.

The laws of war and the ethics of modern conflicts

Despite the naive eyes might not recognise that, modern armed conflicts adhere to a rigorous set of rules concering both under which conditions wars can be started, and how, once began, they must be conducted. This body of law is generally referred to as the “laws of war.”

Modern laws of war take inspiration from the “Just War theory”, a doctrine of military ethics whose roots date back to 2,000 years ago2. The main goal of this theory consists in defining the criteria for a war to be considered “just”, thus started, and those according to which carry it out. In its very essence, Just War holds that a violent conflict ought to meet philosophical, religious or political criteria, reflecting the footprint left over the years by several Christian philosophers3.

Just War theory consists of two main principles: jus ad bellum, and jus in bello4 [8]. The criteria belonging to the jus ad bellum category define the right to wage war:

  • just cause: innocent human lifes must be in imminent danger and intervention must be a mean to protect these. The reason for going to war can not be solely in recapturing things or punishing people who have misbehaved;
  • comparative justice: the injustice suffered by one of the parties involved in a conflict must be significantly higher that suffered by the other(s);
  • competent authority: a genuine war must be paired with genuine justice. Thus a just war can only be initiated by a political authority within a political system that allows distinctions of justice;
  • right intention: force must only be used for the purpose of correnting a suffered wrong, without any material/economical implication;
  • probability of success: the use of weapons must not be advocated in futile causes or where disproportionate measures would be required to achieve success;
  • last resort: force is the last resort. It must only be used when every peaceful and viable alternative have been seriously thried and exhausted, or are clearly not practical;
  • macro-proportionality: the anticipated benefits of waging a war must be proportionate to its expected evils or harms.

For what concerns jus in bello instead, its principles dictate how combatants are expected to act once war has begun:

  • discriminality: the acts of war must be directed towards enemy compatants only, and not towards non-combatants (e.g. civilians);
  • proportionality: an attack can only be launched against military objectives in the knowledge that the incidental civilian injuries would not be clearly excessive in relation to the estimated military advantage;
  • military necessity: the governing principle of a just war must be the one of minimum force. An attack must be targeted to a military objective and intended to help in the military defeat of the enemy. The harm caused to civilians and to their properties must be proportional and not excessive in relation to the direct military advantage anticipated;
  • fair treatment of prisoners of war: any solider, either captured or surrendered, no longer poses a threat. Therefore he must not be tortured or mistreated in any way;
  • no means malum in se: combatants must not use weapons or other methods of warfare considered as evil (e.g. mass rape, forcing soldiers to fight against their own side, or using weapons whose effect cannot be controlled).

In modern times, two widely adhered international treaties have implemented the principles of Just War. The first is the Hague convention, signed in 1899 and further extended in 1907; the second is the 1949 Geneva convention.

The experts’ point of view on the ethicality of military autonomous robotics

Why the above parentheses about how modern wars are regulated? Because this is the context that several scientists fear autonomous robots might not be able to cope with once humans are taken out of the control loop. Amongst all the roboticists, philosophers and war strategists who have studied the potential impact of autonomous military systems a prominent role has been played by British scientist Noel Sharkey. Since a few years ago, Sharkey is involved in a fierce campaign aimed to convince policymakers around the world that today’s robot are nowhere near to fulfil their expectations. In his work ’’Weapons of indiscriminate lethality” published in 2009 [9], Sharkey specifically addresses two elements of the jus in bello principles that he believes are still out of reach to modern robotics systems: discriminality and proportionality.

Concerning discriminality, Geneva convention suggests the use of “common sense” in discriminating between civilians and combatants. An additional protocol ratified in 1977 specifies that is not a combatant must be classified as a civilian. How to instill “common sense” in an artificial system is one of the most challenging issues faced by modern AI [10]. How could an artificial system autonomously classify between combatants and civilians? The task is not easy by any means. Is anyone wearing a uniform a combatant? Surely not. But even if that would be the case, what classifies a certain garment as a uniform? Should we state instead that anyone carrying a weapon is a combatant? Not necessarily, as anything could be considered a weapon depending both on the context and on the intentions of who holds it. In other words, to apply human-like “common sense” is a hugely complex task, which requires either a wide amount of information available and the ability to process this information in the light of a wider environmental context. Even assuming to have access to extremely reliable robot sensor systems, so sophisticated to be capable of extracting any useful piece of information from the environment (something that current technology does not allow yet), matched with algorithms that can use this information together with previously learned knowledge to classify in real-time between civilians and combatants, the discriminality problem would still not be solved completely. On one hand the friendly fire issue remains a concern. How to discriminate between an ally and an enemy soldier and act accordingly? Some authors, as for example Garfinkel [11], have suggested to equip every soldier with RFID tags, thus making the recognition task as simple as possible. This solution has nonetheless a number of drawbacks. For example an enemy unit might get rid of his RFID tag, or, even worse, he can produce a fake one pretenting to be an ally rather than an enemy5. On the other side the legality of the combatant in front of the robot has to be taken into account. An enemy soldier may be wearing a uniform, carrying a weapon and having the proper RFID tag with him, but his intention could be that of surrendering rather than fighting. How can a robot understand that without a proper theory of mind embedded in its circuits? Some authors, as for example Canning [12], have found a shortcut for this problem proposing a working principle for military robots which can be summarised in the sentence “let machines target other machines only”. Sharkey, more radically, proposed to ban the military use of autonomous robots until they can pass a sort of “innocent discrimination test” [9].

The second potential element of troubles identified by Sharkey is the principle of proportionality, which requires that the anticipated loss of life and damage to property incidental to attacks must not be excessive in relation to the concrete and direct military advantage expected to be gained. In other words, the “force” to be used during a military action must be “proportionate”, i.e. neither excessive or insufficient, to the advantages that can be achieved. How to calculate the right amount of force to apply in a certain operation? Unfortunately there is a lot of uncertainty on how to make such calculation. Military officials are specifically trained for years for this purpose. The difficulty involved in this operation is partly due to the fact that the entire process relies on a extremely wide array of factors, such that it has never been possible to capture all of them in an algorithm (so to be implemented on a computer). Furthermore the military decision-makers, in performing their calculations, must also take into account the possibility for at least some of the intelligence they have at disposal to be inaccurate (as it is has be proven to generally be the case [13]).

Alongside discriminality and proportionality there is nonetheless another very important factor to consider when thinking about the introduction of military robots inside warfare environments. This factor, which has been extensively studied by Sparrow [14], is responsibility. Who has to be considered responsible in case something goes wrong? If, for example, a robot as the SWORDS6 decides to exterminate the civilian population of a village? Or, simpler and much more likely, if it fires a single bullet which misses its designated target and ends up injuring an unfortunate ally soldier? Again we are facing a tough scenario. The entire chain which brings a robot to the battlefield is a long one (as it includes manufacturers, programmers, designers, etc.) and errors can take place at any stage. Even a well projected robot might suddenly behave unexpectedly because of some unavoidable hardware failure [1]. Modern militaries rely on rigorous procedures to determine the responsible for any sort of adverse event that could potentially occur during a conflict. But machines have never been considered other than tools, thus being exent of any possible attribution of responsibility. Autonomous robots require the military theorists to elaborate new responsibility attribution procedures. As Sharkey hyronically put [9]:

“Who is to be held responsible for the lethal mishaps of a robot? Certainly not the machine itself. There is no way to punish a robot. We could just switch it off but it would not care anymore about that than my washing machine would care. Imagine telling your washing machine that if it does not remove stains properly you will break its door off. Would you expect that to have any impact?”

Although the author agrees with several of the issues raised by Sharkey, he also believes that the British scientist is somehow too pessimistic in his views. It is certainly true that robotics is a growing but not yet mature area of studies. It is true as well that today’s robots are not capable of performing tasks that government decision-makers believe are at their reach instead. Are these solid enough reasons for entirely banning robots from the warfare scenarios? Probably not. Nonetheless they surely can serve as useful warnings that every person working in the field should take into proper consideration. There are no reasons, in the author’s opinion, for halting the research on such robotics systems and the associated field tests, as long as military planners do not expect to see robots performing Hollywood-like operations in the war field.

Furthermore a few flaws can be found in Sharkey’s reasoning. First of all the British scientist seems to always refer in his publications to AI systems based on explicit knowledge representation, thus implicitely restricting the entire Artificial Intelligence arena to the symbolic approaches only. He plainly seems to be unaware (although, as an expert on the field, he surely is not) of the several design methodologies for intelligent systems developed in the last decades that do not rely either on explicit representations of knowledge, on formal decision-trees, or on rule-based systems. The work we are presenting in this thesis constitutes a perfect example in this sense. We will see autonomous controllers for unmanned aerial vehicles based on evolved neural networks that, by definition, can perform complex task without the need for any formal representation of knowledge. Second, in pointing out the limitations of modern robots, Sharkey (expecially in [5]) likes to think of military autonomous systems dealing with irregular insurgents. It is certainly true that a clearly identifiable post-Cold War trend is the one towards asymmetric warfare. As the continuous advances in military technologies tremendously widen the gap between the war capabilities of different nations (and the militarily most advanced countries prefer to fight each other over diplomatic channels rather than on the field), less and less countries are prone to wage war to each other. Much more common is the case in which a regular army has to face insurgents rather than another conventional army, as recently happened in Afghanistan during operation Enduring Freedom. At the same time the existence of this trend does not imply that the research in military equipment for “conventional” wars has to be stopped. Political equilibrium, as history demonstrates, can change suddenly. Of fundamental importance, for the military forces of every country, is to be ready and well equipped in case the unexpected happens. Autonomous robots, as we have extensively discussed in previous sections, can constitute a very strong asset in any military force. And, even if military robots can arguably do their best in a “regular” war, this fact does not prevent them to be potentially very useful in different warfare environments as well. In particular when both ongoing and future research will have released their outcome.

Footnotes:

1: http://en.wikipedia.org/wiki/Future_Combat_Systems.
2: Cicero’s “De Officiis” discussed “just war” in 44BC.
3: Amongst the various contributors, a crucial role was played by Thomas Aquinas.
4: Although some theorists have recently proposed an additional third category, jus post bellum.
5: Similar topics are covered by Richard Clarke and Robert Knake in their book “Cyber War” [15].
6: http://en.wikipedia.org/wiki/Foster-Miller_TALON.

Bibliography:

[1] Sharkey, N. Automated Killers and the Computing Profession. IEEE Computer (Nov. 2007), 122–124.
[2] Clapper, J., Young, J., Cartwright, J., and Grimes, J. Unmanned Systems Roadmap 2007-2032. Tech. rep., U.S. Department of Defense, Dec 2007.
[3] Cambone, S., Krieg, K., Pace, P., and II, L. W. Unmanned Aircraft Systems Roadmap 2005-2030. Tech. rep., U.S. Department of Defense, Office of the Secretary of Defense, 2005.
[4] Borenstein, J. The Ethics of Autonomous Military Robots. Studies in Ethics, Law, and Technology 2, 1 (Apr. 2008).
[5] Sharkey, N. Grounds for Discrimination: Autonomous Robot Weapons. RUSI Defence Systems (Oct. 2008), 86–89.
[6] Sharkey, N. Saying ‘No!’ to Lethal Autonomous Targeting. Journal of Military Ethics 9, 4 (2010), 369–383.
[7] Arkin, R. C. Governing Lethal Behavior: Embedding Ethics in a Hybrid Deliberative / Reactive Robot Architecture – PART I: Motivation and Philosophy. In Proceedings of the 3rd ACM/IEEE International Conference on Human Robot Interaction (2008), pp. 121–128.
[8] Childress, J. F. Just-War Theories: The Bases, Interrelations, Priorities, and Functions of Their Criteria. 1978.
[9] Sharkey, N. Weapons of Indiscriminate Lethality. FIfF-Kommunikation, 1 (2009), 26–29.
[10] McCarthy, J. Artificial Intelligence, Logic and Formalizing Common Sense. Philosophical Logic and Artificial Intelligence (1989), 161–189.
[11] Garfinkel, S. L., Juels, A., and Pappu, R. RFID Privacy: An Overview of Problems and Proposed Solutions. IEEE Security & Privacy (2005), 34–43.
[12] Canning, J. S. A Concept of Operations for Armed Autonomous Systems, 2006.
[13] Betts, R. K. Analysis, War, and Decision: Why Intelligence Failures Are inevitable. World Politics 31, 1 (1978), 61–89.
[14] Sparrow, R. Killer Robots. Journal of Applied Philosophy 24, 1 (Feb. 2007), 62–77.
[15] Clarke, R. A., and Knake, R. Cyber War. The Next Threat to National Security and What to Do About It. Ecco Press, Manhattan, NY, 2010.

Share

iCub & friends

Mi sono appena accorto che sul sito web iCub.org (punto di riferimento ufficiale per quanto riguarda il robot in questione) hanno pubblicato un simpatico poster ad effetto mosaico le cui tessere raffigurano i vari personaggi sparsi per il mondo che in qualche modo hanno a che fare con iCub.

Ebbene si’. In alcune di queste immagini appare anche il sottoscritto. Che ha speso buoni cinque minuti prima di riuscire a trovarsi (perdipiu’ in multipla copia!).

Share

iCub simulator on Mac OS X Lion: the definitive (?) tutorial

This tutorial will describe the various steps required to install YARP and the iCub robot simulator on a 64-bit computer running Mac OS X Lion.

Install GCC and homebrew

  • Make sure your Mac is running the latest version of OS X Lion (currently 10.7.3)
  • Install Xcode from the Mac App Store (the current version is 4.3.2)
  • Open Xcode and install the Command Line Tools, going to Preferences (cmd+,) -> Downloads -> Command Line Tools -> Install
  • Download and install homebrew issuing the following command in a Terminal window: /usr/bin/ruby -e "$(/usr/bin/curl -fksSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"
  • Run brew doctor to check whether homebrew is fully functioning already. If not, please follow the instructions provided (most of the time you will simply have to launch a command like sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer)

Install YARP via homebrew

  • Run the brew install yarp command (other than YARP this will also automatically install several dependencies as ACE and CMake)

Compile and install ODE from the sources

  • Download the ODE sources (version 0.12) and extract the archive somewhere on your computer (we will refer to this location as $ODE_DIR)
  • Download premake4 and unzip the binary into $ODE_DIR/build
  • Download Code::Blocks and install it on your machine
  • Enter $ODE_DIR (cd $ODE_DIR) and generate a Code::Blocks project for ODE using the command ./premake4 --platform=x64 --os=macosx --no-alloca --all-collis-libs --cc=gcc codeblocks
  • Open $ODE_DIR/build/ode.cdb in Code::Blocks, select as build target “ReleaseDoubleLib|x64” and build everything
  • Copy the $ODE_DIR/include/ode folder to /usr/local/include/
  • Rename $ODE_DIR/libode_double.a to $ODE_DIR/libode.a and copy it to /usr/local/lib/

Compile and install SDL from the sources

  • Download the SDL sources (version 1.2.15), extract the archive somewhere on your computer (we will refer to this location as $SDL_DIR)
  • Install the autoconf tools running: brew install autoconf
  • Pre-configure, compile and install SDL running the following commands in sequence:
    • cd $SDL_DIR
    • ./autogen.sh
    • ./configure --disable-assembly
    • make
    • sudo make install
  • Copy SDLMain.h and SDLMain.m from $SDL_DIR/Xcode/TemplatesForXcodeSnowLeopard/SDL Application/ to /usr/local/include/SDL/

Install the iCub simulator

  • Install the Gtk+ C++ interface gtkmm running: brew install gtkmm
  • Create a directory on your machine which will host the sources of the iCub simulator (we will refer to this location as $ICUB_REPOSITORY)
  • Enter $ICUB_REPOSITORY and download the latest version of the iCub simulator via SVN, running the command: #svn co https://robotcub.svn.sourceforge.net/svnroot/robotcub/trunk/iCub
  • Setup some environment variables adding the following lines to your ~/.profile file (replace $ICUB_REPOSITORY with the path of the directory created two steps above):
    • export ICUB_ROOT="$ICUB_REPOSITORY/iCub"
    • export ICUB_DIR="$ICUB_REPOSITORY/iCub/main/build"
  • Close and re-open the Terminal for the changes to the environment variables to be applied;
  • Run: mkdir $ICUB_DIR
  • Enter $ICUB_DIR (cd $ICUB_DIR) and run: ccmake ..
  • Configure the project (‘c‘ key) a few times, setting CMAKE_BUILD_TYPE to “Release” and USE_ODE_DOUBLE to “ON“. When it becomes available, press ‘g‘ to generate a Makefile and exit CMake
  • Compile the iCub simulator running the make command and install it with: sudo make install
  • Install the support applications running: sudo make install_applications
  • Enjoy! :)

Troubleshooting (compile and install YARP from the sources)

Many things might go wrong following the procedure outlined in this tutorial. One of the most common issues in which you could incur consists in the iCub simulator complaining about an incompatible version of YARP installed on your system. If this the case (and you have installed YARP on your computer via homebrew) you will have to download from the SVN the latest version of YARP and compile it by hand. The procedure for doing that is quite straightforward:

  • Uninstall the homebrew version of YARP running: brew uninstall yarp
  • Enter $ICUB_REPOSITORY and download the latest version of YARP via SVN, running the command: svn co https://yarp0.svn.sourceforge.net/svnroot/yarp0/trunk/yarp2
  • Add two new environment variables to your ~/.profile file:
    • export YARP_ROOT="$ICUB_REPOSITORY/yarp2"
    • export YARP_DIR="$ICUB_REPOSITORY/yarp2/build"
  • Close and re-open the Terminal for the changes to the environment variables to be applied;
  • Run: mkdir $YARP_DIR
  • Enter $YARP_DIR (cd $YARP_DIR) and run: ccmake ..
  • Configure the project (‘c‘ key) a few times, setting CMAKE_BUILD_TYPE to “Release, CREATE_GUIS to “ON“, CREATE_LIB_MATH to “ON“, CREATE_YMANAGER to “ON“, and (if available) CREATE_YMANAGER_GUI to “ON“. When it becomes available, press ‘g‘ to generate a Makefile and exit CMake
  • Compile YARP running the make command and install it with: sudo make install

For any question and/or feedback feel free to write me, or to post a message on the Robotcub Hackers mailing list.

Thanks, amongst the others, to Martin and Juxi for the work they have done on the subject in the past.

If anyone feels like preparing a PDF file out of the information contained in this tutorial, please give me a shout!

Share

Towards a Biologically-inspired Cognitive Architecture for Short-Term Memory in Humanoid Robots

A distanza di un bel po’ di tempo, complice un 2011 dedicato quasi esclusivamente alla tesi di PhD (nel quale metto infatti a referto una sola pubblicazione, frutto del periodo speso a Losanna nella seconda meta’ del 2010), si torna finalmente a pubblicare qualcosa. O, perlomeno, ci si prova. Ho infatti sottomesso a TAROS 2012 (che quest’anno si terra’ congiuntamente a FIRA) un articolo riguardante il lavoro portato avanti da quando ho iniziato il mio post-doc fino ad oggi.

Come il titolo del post lascia intendere, il lavoro verte sullo sviluppo di un’architettura cognitiva per robot umanoidi, avente il compito di dotare il suo “portatore” di un sistema di memoria a breve termine bio-inspirato. Chi volesse dare un’occhiata alla versione sottomessa dell’articolo può scaricarlo dal link qui sotto.

Share

Pagina successiva »