python remote api broken simxReadForceSensor
Posted: 15 May 2016, 16:07
I am using: V-REP version 3.03.00 (rev 1) (V-REP PRO EDU license)
on Ubuntu 16.04
I am trying to read from an accelerometer sensor. Obviously this is broken for my platform:
Connected to remote API server
Traceback (most recent call last):
File "bubbleRob_cont.py", line 107, in <module>
print read_forcesensor(accel)
File "bubbleRob_cont.py", line 64, in read_forcesensor
_, force, torque = vrep.simxReadForceSensor(handle[0], handle[1], vrep.simx_opmode_blocking)
File "/home/mark/PROJECTS/COPTER/simulator/workspace/vrep.py", line 246, in simxReadForceSensor
state=ord(state.value)
TypeError: ord() expected string of length 1, but int found
on Ubuntu 16.04
I am trying to read from an accelerometer sensor. Obviously this is broken for my platform:
Connected to remote API server
Traceback (most recent call last):
File "bubbleRob_cont.py", line 107, in <module>
print read_forcesensor(accel)
File "bubbleRob_cont.py", line 64, in read_forcesensor
_, force, torque = vrep.simxReadForceSensor(handle[0], handle[1], vrep.simx_opmode_blocking)
File "/home/mark/PROJECTS/COPTER/simulator/workspace/vrep.py", line 246, in simxReadForceSensor
state=ord(state.value)
TypeError: ord() expected string of length 1, but int found