Created
February 23, 2018 00:48
-
-
Save n1ckfg/c9734b2f7ae9409f1cbe678875640803 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> gps() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "<stdin>", line 4, in gps | |
File "/home/nick/GitHub/ros_unreal/tools/AirSimClient/AirSimClient.py", line 563, in getGpsLocation | |
return GeoPoint.from_msgpack(self.client.call('getGpsLocation')) | |
File "/home/nick/.local/lib/python3.5/site-packages/msgpackrpc/session.py", line 41, in call | |
return self.send_request(method, args).get() | |
File "/home/nick/.local/lib/python3.5/site-packages/msgpackrpc/future.py", line 45, in get | |
raise error.RPCError(self._error) | |
msgpackrpc.error.RPCError: rpclib: server could not find function 'getGpsLocation' with argument count 0. | |
>>> getGpsLocation() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'getGpsLocation' is not defined | |
>>> client | |
<AirSimClient.CarClient object at 0x7fbe424b5f28> | |
>>> client.getGpsLocation() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
File "/home/nick/GitHub/ros_unreal/tools/AirSimClient/AirSimClient.py", line 563, in getGpsLocation | |
return GeoPoint.from_msgpack(self.client.call('getGpsLocation')) | |
File "/home/nick/.local/lib/python3.5/site-packages/msgpackrpc/session.py", line 41, in call | |
return self.send_request(method, args).get() | |
File "/home/nick/.local/lib/python3.5/site-packages/msgpackrpc/future.py", line 45, in get | |
raise error.RPCError(self._error) | |
msgpackrpc.error.RPCError: rpclib: server could not find function 'getGpsLocation' with argument count 0. | |
>>> client.getGpsLocation(0) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: getGpsLocation() takes 1 positional argument but 2 were given | |
>>> client.getGpsLocation(0,0) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: getGpsLocation() takes 1 positional argument but 3 were given | |
>>> client.getGpsLocation(client) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: getGpsLocation() takes 1 positional argument but 2 were given | |
>>> client.getGpsLocation(self) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'self' is not defined | |
>>> client.getGpsLocation(pos()) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: getGpsLocation() takes 1 positional argument but 2 were given | |
>>> client.getCarStat() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
AttributeError: 'CarClient' object has no attribute 'getCarStat' | |
>>> client.getCarState() | |
<CarState> { 'collision': <CollisionInfo> { 'has_collided': False, | |
'impact_point': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'normal': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'object_id': -1, | |
'object_name': '', | |
'penetration_depth': 0.0, | |
'position': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'time_stamp': 0}, | |
'gear': 1, | |
'kinematics_true': <KinematicsState> { 'angular_acceleration': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'angular_velocity': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'linear_acceleration': <Vector3r> { 'x_val': 1.0961229435224595e-07, | |
'y_val': 1.3772146090218484e-08, | |
'z_val': -4.577196250465931e-06}, | |
'linear_velocity': <Vector3r> { 'x_val': 1.4612247412060242e-08, | |
'y_val': 1.8191874673334496e-09, | |
'z_val': -6.10300673997699e-07}, | |
'orientation': <Quaternionr> { 'w_val': 0.3506077527999878, | |
'x_val': 1.2844050615967717e-05, | |
'y_val': -3.430825745454058e-05, | |
'z_val': -0.9365224242210388}, | |
'position': <Vector3r> { 'x_val': -0.20458495616912842, | |
'y_val': -6.307081699371338, | |
'z_val': 0.8909250497817993}}, | |
'speed': -1.2978737196078782e-08, | |
'timestamp': 2676001000} | |
>>> go() | |
>>> client.getCarState() | |
<CarState> { 'collision': <CollisionInfo> { 'has_collided': False, | |
'impact_point': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'normal': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'object_id': -1, | |
'object_name': '', | |
'penetration_depth': 0.0, | |
'position': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'time_stamp': 0}, | |
'gear': 3, | |
'kinematics_true': <KinematicsState> { 'angular_acceleration': <Vector3r> { 'x_val': -1.7373303174972534, | |
'y_val': 0.23804108798503876, | |
'z_val': -3.1050124168395996}, | |
'angular_velocity': <Vector3r> { 'x_val': -0.030550632625818253, | |
'y_val': 0.0630987286567688, | |
'z_val': 1.8221698999404907}, | |
'linear_acceleration': <Vector3r> { 'x_val': 12.1807279586792, | |
'y_val': -5.84550666809082, | |
'z_val': -0.8797884583473206}, | |
'linear_velocity': <Vector3r> { 'x_val': 3.2864255905151367, | |
'y_val': 5.466422080993652, | |
'z_val': 0.009890654124319553}, | |
'orientation': <Quaternionr> { 'w_val': 0.8310967087745667, | |
'x_val': 0.012048356235027313, | |
'y_val': 0.008328013122081757, | |
'z_val': 0.5559351444244385}, | |
'position': <Vector3r> { 'x_val': -3.918779134750366, | |
'y_val': -1.1112394332885742, | |
'z_val': 0.8902822732925415}}, | |
'speed': 6.313971519470215, | |
'timestamp': 2676001000} | |
>>> go() | |
>>> client.getCarState() | |
<CarState> { 'collision': <CollisionInfo> { 'has_collided': False, | |
'impact_point': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'normal': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'object_id': -1, | |
'object_name': '', | |
'penetration_depth': 0.0, | |
'position': <Vector3r> { 'x_val': 0.0, | |
'y_val': 0.0, | |
'z_val': 0.0}, | |
'time_stamp': 0}, | |
'gear': 4, | |
'kinematics_true': <KinematicsState> { 'angular_acceleration': <Vector3r> { 'x_val': -2.1527042388916016, | |
'y_val': 0.2691797614097595, | |
'z_val': -4.232812404632568}, | |
'angular_velocity': <Vector3r> { 'x_val': 0.011903026141226292, | |
'y_val': 0.047335460782051086, | |
'z_val': 1.9059041738510132}, | |
'linear_acceleration': <Vector3r> { 'x_val': 7.469916820526123, | |
'y_val': 13.120075225830078, | |
'z_val': -1.2713795900344849}, | |
'linear_velocity': <Vector3r> { 'x_val': -5.3205461502075195, | |
'y_val': 3.423219919204712, | |
'z_val': 0.02304955944418907}, | |
'orientation': <Quaternionr> { 'w_val': 0.2293642908334732, | |
'x_val': 0.002910887124016881, | |
'y_val': 0.01425103284418583, | |
'z_val': 0.9732319116592407}, | |
'position': <Vector3r> { 'x_val': -3.1963231563568115, | |
'y_val': -5.989890098571777, | |
'z_val': 0.8900134563446045}}, | |
'speed': 6.292133808135986, | |
'timestamp': 2676001000} | |
>>> stop() | |
>>> steer(1) | |
>>> go() | |
>>> steer(0) | |
>>> steer(1) | |
>>> steer(-1) | |
>>> stop() | |
>>> steer(-1) | |
>>> go() | |
>>> steer(1) | |
>>> steer(-1) | |
>>> stop() | |
>>> reverse() | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
NameError: name 'reverse' is not defined | |
>>> go(-1) | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: go() takes 0 positional arguments but 1 was given | |
>>> | |
>>> go() | |
>>> quit() | |
nick@Itinerant-ROS:~/GitHub/ros_unreal/tools/AirSimClient$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment