Bgerbger Posted March 19, 2017 Share Posted March 19, 2017 Whenever I run any python scripts I get an attribute error. The example below is trying to get the position of the arm. I am able to ping sawyer just fine and my system did work a week ago. I tried re-installing the sdk once this problem occurred. Is there any way to fix this issue? python GetPose.py Traceback (most recent call last): File "GetPose.py", line 6, in <module> limb = intera_interface.limb('right') AttributeError: 'module' object has no attribute 'Limb' Link to comment Share on other sites More sharing options...
Ian McMahon Posted March 20, 2017 Share Posted March 20, 2017 I'm not 100% sure, as I do not know the contents of GetPose.py, but your issue might be that 'Limb' needs to be capitalized when instantiating the class. Does something like this work in your environment? import rospy import intera_interface rospy.init_node("getpose") r = intera_interface.Limb('right') Link to comment Share on other sites More sharing options...
Bgerbger Posted March 20, 2017 Author Share Posted March 20, 2017 That is essentially what GetPose.py is doing. I inserted the code below that gives me the error. It does what you asked then prints the output into the terminal. The error happens when it gets to limb = intera_interface.Limb('right') import rospy import intera_interface rospy.init_node('GetPose') limb = intera_interface.Limb('right') robotPose = limb.endpoint_pose() print robotPose Link to comment Share on other sites More sharing options...
Bgerbger Posted March 23, 2017 Author Share Posted March 23, 2017 Just wanted to follow up and ask if anyone has gotten any ideas on what is going on? Link to comment Share on other sites More sharing options...
josh_jhu Posted March 27, 2017 Share Posted March 27, 2017 Has it always been like this? Link to comment Share on other sites More sharing options...
Bgerbger Posted March 30, 2017 Author Share Posted March 30, 2017 I was able to get it working by completely re-imaging my computer and starting it completely over. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.