| 
      
      
      From: Billy O. O. <bil...@df...> - 2011-02-11 14:00:36
      
     | 
| 
Dear Opengraspers,
 
I am trying to access tactile sensor data from the simulated tactile sensors I
attached on a shadow hand.
I keep getting
 
openravepy.openravepy_ext.openrave_exception: OpenRAVE: unknown sensor data
type: 6
whenever I try to access the data. I did some digging and noticed that the
SimTactileSensor.h file only defines ST-Invalid type, but changing this to
tactile didn't fix my problem. Here is how I access the data
 
print 'List of attached sensors: '
        print self.sensors
        for sen in self.robot.GetSensors():
            if sen.GetSensor() is not None:
                sendata = sen.GetSensor().GetSensorData()
                if sendata is not None and sendata.type ==
Sensor.SensorType.Tactile:
                    name = sen.GetName()
                    force = sen.GetSensor().SendCommand('force')
                    print force
 
 
I also noticed that the file TactileSensorData.h which is supposedly used in the
tactile sensor is nowhere that I can find it.
Please help
 
Best regards,
billy 
 
 Billy Okal
 Research Assistant(Hiwi)
 
 DFKI Bremen
 Robotics Innovation Center
 Robert-Hooke-Straße 5
 28359 Bremen, Germany
 
 Phone: +49 (0)176 89042726
 E-Mail: billy_omondi.okal(at)dfki.de
 
 Weitere Informationen: http://www.dfki.de/robotik
 -----------------------------------------------------------------------
 Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
 Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
 Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster
 (Vorsitzender) Dr. Walter Olthoff
 Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes
 Amtsgericht Kaiserslautern, HRB 2313
 Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
 USt-Id.Nr.:    DE 148646973
 Steuernummer:  19/673/0060/3
 ----------------------------------------------------------------------- |