abr / abr_control

Robotic arm control in Python
Other
416 stars 99 forks source link

TypeError: argument is not an mpz #25

Closed niudong1001 closed 5 years ago

niudong1001 commented 6 years ago

Hi, friends, i installed abr_control and run the code below:

from abr_control.arms import jaco2
from abr_control.controllers import OSC
from abr_control.interfaces import VREP

robot_config = jaco2.Config()
ctrlr = OSC(robot_config)
interface = VREP(robot_config)

interface.connect()

target_xyz = [.2, .2 .5]  # in metres
for ii in range(1000)
    feedback = interface.get_feedback()  # returns a dictionary with q, dq
    u = ctrlr.generate(feedback['q'], feedback['dq'], target_xyz)
    interface.send_forces(u)  # send forces and step VREP sim forward

interface.disconnect()

I got this error: TypeError: argument is not an mpz Hope to find a solution~

p3jawors commented 6 years ago

Hi,

The first issue I see is how you set target_xyz, there is a missing comma between the second and third entry. Secondly, you do not have a : after your for loop. If that doesn't fix it can you please send the full stack trace, it will be make debugging a bit easier.

Cheers

niudong1001 commented 6 years ago

Hello, thanks for your reply, and i find the same problem in your repo's readme.rst file. I fixed that and gave a pull. image

studywolf commented 5 years ago

thanks for the heads up! we will correct that!