Skip to content

ImportError: No module named baxter_interface #85

Open
@le-wei

Description

@le-wei

Hello, I followed the official steps to install the SDK and set up some items that need to be set. I get an error when I execute the code below. Since I have just been exposed to ROS and Baxter, it is not too clear what the reason is. Looking at some of the information did not solve the problem. I hope you can help me. Thank you

import  rospy
import baxter_interface
rospy.init_node('Hello_Baxter')
limb = baxter_interface.Limb('right')
angles = limb.joint_angles()
print angles
angles['right_s0']=0.0
angles['right_s1']=0.0
angles['right_e0']=0.0
angles['right_e1']=0.0
angles['right_w0']=0.0
angles['right_w1']=0.0
angles['right_w2']=0.0
print angles

limb.move_to_joint_positions(angles)
wave_1 = {'right_s0': -0.459, 'right_s1': -0.202, 'right_e0': 1.807, 'right_e1': 1.714, 'right_w0': -0.906, 'right_w1': -1.545, 'right_w2': -0.276}

wave_2 = {'right_s0': -0.395, 'right_s1': -0.202, 'right_e0': 1.831, 'right_e1': 1.981, 'right_w0': -1.979, 'right_w1': -1.100, 'right_w2': -0.448}
for _move in range(3):
    limb.move_to_joint_positions(wave_1)
    limb.move_to_joint_positions(wave_2)
quit()

Error is as follows:
$ python baxter.py
Traceback (most recent call last):
File "baxter.py", line 7, in
import baxter_interface
ImportError: No module named baxter_interface

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions