Aug 31, 2012 - Colloquium of Robotics and Cybernetics

Comments


In 1998, Kevin Warwick connected his own nervous system to a computer. The deed transformed the expert in Cybernetics of the University of Reading in the world's first cyborg. The unusual and sometimes controversial English Professor is one of the presences at the Colloquium of Robotics and Cybernetics that the University of Aveiro (UA) organizes on October 13, 2012.

Para a versão portuguesa: Colóquio de Robótica e Cibernética.

The meeting will also bring to Aveiro scientists from FESTO, the German enterprise which has been surprising the world by showing the excellence of their robots. To seduce and motivate students for the scientific areas of robotics and cybernetics is the main goal of the colloquium organized by the Union of Students of Computer and Telematics Engineering (NEECT – Núcleo de Estudantes de Engenharia de Computadores e Telemática) of UA.

Another important highlight of the event is the solidarity campaign which will promote the collecting of plastic covers to aid financing a bionic hand to Rodrigo Hipólito, a boy who was born without the right-hand. The child's mother initiated months ago a help request buy a myoelectric hand (much cheaper than a bionic hand), whose price is over 8500 €. The organization is also going to deliver part of the inscriptions' income to the child.

Schedule


10:00
Opening Ceremony
      Higino Vieira, Coordinator of NEECT
      Tiago Alves, President of AAUAv
      Prof. Arnaldo Martins, Director of Department of Electronics, Telecommunications and Informatics
      Prof. Manuel Assunção, Rector of the University of Aveiro

11:00 The Cyborg Experiments
      Prof. Kevin Warwick, University of Reading (UK)
      The World's first cyborg!

12:00 Lunch

13:00 Joana Ferreira, GoBionic
      Responsible for the maintenance of bionic and mioelectrical limbs

14:00 Human-machine cooperation and Bionic-learning from nature
      Elias Knubben and Alexander Hildebrandt, FESTO
      Creators of SmartBirt, CognoGame, ExoHand, AirJelly, amongst others.

15:30 Coffee break

16:00 CAMBADA Project, Univ. of Aveiro
      Former World Champion Team of Robotic Football

17:00 The Portuguese Society of Robotics and the Robotics in Portugal
      Prof. Pedro Fonseca, Univ. of Aveiro


18:00 Workshops CAMBADA 
      ATLASCar
      CAMBADA Multiagent
      CAMBADA @Home
      Humanoids
      CAMBADA robotics soccer team


19:00 Closing Ceremony


Aug 31, 2012 - Colóquio de Robótica e Cibernética

Comments


Em 1998, Kevin Warwick ligou o próprio sistema nervoso a um computador. O feito tornou o especialista em Cibernética da Universidade de Reading no primeiro ciborgue do mundo. O invulgar e, por vezes, polémico professor universitário inglês é uma das presenças do Colóquio de Robótica e Cibernética que a Universidade de Aveiro (UA) organiza a 13 de Outubro de 2012.

For the english version: Colloquium of Robotics and Cybernetics.
O encontro vai trazer também a Aveiro cientistas da FESTO, a empresa alemã que tem deixado o mundo boquiaberto com a excelência dos seus robots. Seduzir e motivar os estudantes para as áreas científicas da robótica e cibernética é o grande objetivo do colóquio preparado pelo Núcleo de Estudantes de Engenharia de Computadores e Telemática (NEECT) da UA.

É ainda de destacar a realização de uma campanha solidária associada ao evento e que vai promover a recolha de tampas de plástico para ajudar a financiar uma mão biónica a ser entregue ao Rodrigo Hipólito, que nasceu sem a mão direita.. A mãe da criança tem em curso já há alguns meses um pedido de ajuda para comprar uma mão mioelétrica (mais barata do que uma mão biónica), cujo custo ascende os 8500 €. A organização vai entregar também à criança parte das verbas obtidas com as inscrições dos participantes no colóquio.

Programa


10:00 Cerimónia de Abertura
      Higino Vieira, Coordenador do Núcleo de Estudantes de Engenharia de Computadores e Telemática (NEECT)
      Tiago Alves, Presidente da Associação Académica da Universidade de Aveiro (AAUAv)
      Prof. Arnaldo Martins, Director do Departamento de Electrónica, Telecomunicações e Informática
      Prof. Manuel Assunção, Reitor da Universidade de Aveiro

11:00 A Experiência de um Ciborgue
      Prof. Kevin Warwick, Univ. Warwick (Reino Unido)
      O 1º Ciborgue do Mundo!

12:00 Almoço

13:00 Joana Ferreira, GoBionic

      Responsável pela manutenção de membros mioeléctricos e biónicos.
14:00 Interação humano-máquina e Aprendizagem biónica através da natureza
      Elias Knubben e Dr. Alexander Hildebrandt, FESTO (empresa alemã)
      Responsáveis pela criação do SmartBirt, CognoGame, ExoHand, AirJelly, entre outros.

15:30 Coffee break

16:00 Projecto CAMBADA, Univ. Aveiro
      Equipa campeã mundial de futebol robótico

17:00 A Sociedade Portuguesa de Robótica e a Robótica em Portugal
      Prof. Pedro Fonseca, Univ. Aveiro

18:00 Workshops CAMBADA
      ATLASCar
      CAMBADA Multiagentes
      CAMBADA @Home
      Humanóides
      CAMBADA equipa de futebol robótico

19:00 Cerimónia de Encerramento


Jun 6, 2012 - Getting PrimeFaces mix of Selects, Objects and Converters to work

Comments

If you are having problems with the AJAX Select components from PrimeFaces when selecting Java objects, inside a DataTable or not, this solution might work for you.

If you have something like the following:
<p:selectOneMenu value="#{deviceBean.currentLocation}"
converter="locationConverter">

<f:selectItem itemLabel="#{deviceBean.currentLocation.name}"
itemValue="#{deviceBean.currentLocation}" />
<f:selectItems
value="#{deviceBean.locations}"
var="location"
itemLabel="#{location.place}"
itemValue="#{location}" />
<f:ajax event="change" execute="@this" render="@this" />

</p:selectOneMenu>

Your managed bean is something like my DeviceBean:
@ManagedBean
@SessionScoped
public class DeviceBean implements Serializable {

@EJB
private Backend backend;

private List locations;
private Location currentLocation;

public DeviceBean() {
locations = backend.getLocations();
}

public List getCurrentLocation() {
return currentLocation;
}

public Location getCurrentLocation() {
return currentLocation;
}
}

Your converter is something like:
@FacesConverter(forClass=Location.class,value="locationConverter")
public class LocationConverter implements Converter {

@Override
public Object getAsObject(FacesContext context, UIComponent component, String value) {
Location location = new Location()
// some operations to set the parameters of Location based on the String
return location;
}

@Override
public String getAsString(FacesContext context, UIComponent component, Object value) {
Location location = (Location) value;
String string;
// some operations to save the parameters of Location into a String
return string;
}
}

And the object you want to change is something like my Location:
public class Location {
private String name;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}
}


And your Select doesn't work, e.g. it doesn't respond to the accept button nor gives any error or logging, then probably it's just discarding the new element you just selected (in my case, of type Location).

It discards it because the object returned by the converter's getAsObject method may not match any of the objects allowed in the locations list from the DeviceBean. If this is the cause, then it means Location doesn't have proper hashCode and equals methods, which are required by Java to check if two objects of the same type have different contents or not, among other things. Because the selectOneMenu requires an object that is on the list, as defined in value="#{deviceBean.currentLocation}", it just fails to do anything.

So, don't forget, get hashCode and equals to the data structures you need to check for equality, explicitily or not, like this (as generated by my NetBeans):
public class Location {
private String name;

public String getName() {
return name;
}

public void setName(String name) {
this.name = name;
}

@Override
public boolean equals(Object obj) {
if(obj == null)
return false;
if(getClass() != obj.getClass())
return false;
final LocationTest other = (LocationTest)obj;
if(!Objects.equals(this.name, other.name))
return false;
return true;
}

@Override
public int hashCode() {
int hash = 7;
hash = 83 * hash + Objects.hashCode(this.name);
return hash;
}
}