Skip to content
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

Error when executing move_robot.py #4

Closed
vrontos opened this issue Mar 24, 2020 · 2 comments
Closed

Error when executing move_robot.py #4

vrontos opened this issue Mar 24, 2020 · 2 comments

Comments

@vrontos
Copy link

vrontos commented Mar 24, 2020

Hello,

I followed all the installation steps and i do the following:

1st shell: $ roslaunch panda_gazebo panda_world.launch
2nd shell: cd ~/catkin_ws/src/panda_simulator/panda_simulator_examples/scripts and $ python move_robot.py.

I get the following error:

Traceback (most recent call last):
  File "move_robot.py", line 4, in <module>
    from franka_core_msgs.msg import JointCommand, RobotState
ImportError: No module named franka_core_msgs.msg 

P.S.
At the beginning i was getting an error when launching the panda_world.launch:
[ERROR] [1585070496.558123479, 0.613000000]: Could not load controller 'panda_simulator/joint_state_controller' because controller type 'joint_state_controller/JointStateController' does not exist.
now it works because i did the following (is it wrong?): sudo apt-get install ros-melodic-joint-state-controller
Thanks

@justagist
Copy link
Owner

It looks like you haven't built the frank_ros_interface package correctly, or is not sourced. The franka_core_msgs package should automatically be installed if you built franka_ros_interface. Try rebuilding your catkin workspace after making sure that franka_ros_interface is present in your src folder along with all other dependent packages (listed in README).
Yes, the joint-state-controller package should be installed as well.

@vrontos vrontos closed this as completed Mar 24, 2020
@TracyLestrade
Copy link

yes,he is right. when u open new terminal. before run python script. do this.
source devel/setup.bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants