ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

ImportError: No module named joy.msg [closed]

asked 2012-01-24 11:31:33 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I'm trying to do remote controll to my pioneer 2 robot, but when i run the launch file, i have this mistake "line 6, in <module> from joystick.msg import joy ImportError: No module named joy.msg" and I don't know how to solve that; I have the teleop_base, Rosaria and the app in the ipad.

thanks for all

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Kryuchcov
close date 2019-06-20 10:27:13.062998

Comments

Pls update the question with the details for the launch file you are using and the complete error to get quick help
karthik gravatar image karthik  ( 2012-01-24 13:00:57 -0500 )edit
<launch> <node name="RosAria" pkg="ROSARIA" type="RosAria"> <param name="port" value="/dev/ttyS0" /> </node> <group ns="RosAria"> <node name="iPhone" pkg="pyoj" type="pyoj.py" /> <node name="teleop_base" pkg="teleop_base" type="teleop_base" /> </group> </launch>
Kryuchcov gravatar image Kryuchcov  ( 2012-01-25 05:53:59 -0500 )edit
that is the launch file pioneer-iphone.launch,, I put more information down,,, thanks
Kryuchcov gravatar image Kryuchcov  ( 2012-01-25 05:55:54 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
3

answered 2012-01-24 19:09:01 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I assume you're using electric (otherwise please update your question with the necessary information)?

Since electric, the "joy" msg is in sensor_msgs, so you need to change from joystick.msg import joy into:

  from sensor_msgs.msg import joy

in the affected code.

edit flag offensive delete link more

Comments

thaks for the help, it solve one mistake, unfortunately I have others that I explain in my answer, down the question, if you can and have time, your help will be good received,, thanks
Kryuchcov gravatar image Kryuchcov  ( 2012-01-26 09:52:10 -0500 )edit

For anyone using hydro joy ought to be capitalized: from sensor_msgs.msg import Joy

lucasw gravatar image lucasw  ( 2014-03-27 07:00:08 -0500 )edit
-1

answered 2012-01-25 05:48:53 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

before all thanks for answer, sorry I forgot put some information, I'm using electric in ubuntu 11.04, and I'm tryin to do the remote controll whit and ipad to the pioneer2, when I changed the line of the code i had other problem, it shows "from sensor_msgs.msg import joy ImportError: cannot import name joy"

and just a line before that error, appears "ERROR: cannot launch node of type [teleop_base/teleop_base]: Cannot locate node of type [teleop_base] in package [teleop_base]"

does it maybe appear because it needs others files in teleop_base directory? I downloaded the teleop_base from "ubuntu software center" and used rosmake to make the teleop_base

thanks for all

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-01-24 11:31:33 -0500

Seen: 1,630 times

Last updated: Jan 25 '12