-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can not add a cude in vrep in poppy project #256
Labels
Comments
What is your creature ? What vrep scene are you using ? |
I meet the same bug
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when I add a cude in vrep,
I do this:
poppy.reset_simulation()
io = poppy._controllers[0].io
name = b'cube'
#position = goal_position # X, Y, Z
position = [0, 0, 0]
#position = [0, 0, 0]
sizes = [100, 100, 100] # in meters
mass = 0 # in kg
io.add_cube(name, position, sizes, mass)
And it shows this error:
VrepIOErrors Traceback (most recent call last)
in ()
8 mass = 0 # in kg
9
---> 10 io.add_cube(name, position, sizes, mass)
/usr/local/lib/python2.7/dist-packages/pypot/vrep/io.pyc in add_cube(self, name, position, sizes, mass)
232 """ Add Cube """
233 self._create_pure_shape(0, 239, sizes, mass, [0, 0])
--> 234 self.set_object_position("Cuboid", position)
235 self.change_object_name("Cuboid", name)
236
/usr/local/lib/python2.7/dist-packages/pypot/vrep/io.pyc in set_object_position(self, object_name, position)
179 def set_object_position(self, object_name, position=[0, 0, 0]):
180 """ Sets the object position. """
--> 181 h = self.get_object_handle(object_name)
182
183 return self.call_remote_api('simxSetObjectPosition',
/usr/local/lib/python2.7/dist-packages/pypot/vrep/io.pyc in get_object_handle(self, obj)
201 """ Gets the vrep object handle. """
202 if obj not in self._object_handles:
--> 203 self._object_handles[obj] = self._get_object_handle(obj=obj)
204
205 return self._object_handles[obj]
/usr/local/lib/python2.7/dist-packages/pypot/vrep/io.pyc in _get_object_handle(self, obj)
196
197 def _get_object_handle(self, obj):
--> 198 return self.call_remote_api('simxGetObjectHandle', obj)
199
200 def get_object_handle(self, obj):
/usr/local/lib/python2.7/dist-packages/pypot/vrep/io.pyc in call_remote_api(self, func_name, *args, **kwargs)
357 msg = ' '.join([vrep_error[2 ** i]
358 for i, e in enumerate(err) if e])
--> 359 raise VrepIOErrors(msg)
360
361 return res
VrepIOErrors: Remote error
The text was updated successfully, but these errors were encountered: