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

Cannot launch node of type with joystick tutorial

asked 2012-11-17 01:57:45 -0500

Morpheus gravatar image

updated 2012-11-24 03:23:49 -0500

joq gravatar image

I am trying to run the tutorial "joy/Tutorials/Writing/TeleopNode. I am running Ubuntu 11.10 with fuerte. I am trying to use a Logtech Rumble Pad joystick. Here is a copy of my launch file:

<launch>

 <!-- Turtlesim Node-->
  <node pkg="turtlesim" type="turtlesim_node" name="sim"/>


 <!-- joy node -->
  <node respawn="true" pkg="joy"
        type="joy" name="turtle_joy" >
   <param name="dev" type="string" value="/dev/input/js1" />
   <param name="deadzone" value="0.12" />
 </node>

<!-- Axes -->
 <param name="axis_linear" value="1" type="int"/>
 <param name="axis_angular" value="0" type="int"/>
 <param name="scale_linear" value="2" type="double"/>
 <param name="scale_angular" value="2" type="double"/>

 <node pkg="turtle_teleop" type="turtle_teleop_joy" name="teleop"/>

</launch>

I am getting an error:

ERROR: cannot launch node of type [turtle_teleop/turtle_teleop_joy]: turtle_teleop
ROS path [0]=/opt/ros/fuerte/share/ros
ROS path [1]=/home/brent/ros_workspace
ROS path [2]=/home/brent/ros
ROS path [3]=/opt/ros/fuerte/share
ROS path [4]=/opt/ros/fuerte/stacks

Turtlesim does come up, but I am not getting any movement with my joystick. I do get a reading from echo joy.

Any help would be appreciated,

Morpheus

edit retag flag offensive close merge delete

Comments

Here is my launch file: 1 <launch> 2 3 <!-- Turtlesim Node--> 4 <node pkg="turtlesim" type="turtlesim_node" name="sim"/> 5 6 7 <!-- joy node --> 8 <node respawn="true" pkg="joy" 9 type="joy" name="turtle_joy" > 10 <param name="dev" type="string" value

Morpheus gravatar image Morpheus  ( 2012-11-17 02:03:51 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-11-25 01:55:39 -0500

Morpheus gravatar image

Looking more carefully at the tutorial I noticed last line after the launch file, "Since we built everything in package learning_joy, you may need to change the package in the last line from turtle_teleop to learning_joy." I made the change to my launch file, and everything works fine.

Thanks for your help, Morpheus

edit flag offensive delete link more
1

answered 2012-11-18 09:03:39 -0500

Lorenz gravatar image

Please edit your question and provide the complete launch file, correctly formatted (mark the code and press Ctrl-k). Did you maybe copy-paste the line numbers?

edit flag offensive delete link more

Comments

Deleting line numbers. I am getting, ERROR: cannot launch node of type [turtle_teleop/turtle_teleop_joy]: turtle_teleop ROS path [0]=/opt/ros/fuerte/share/ros ROS path [1]=/home/brent/ros_workspace ROS path [2]=/home/brent/ros ROS path [3]=/opt/ros/fuerte/share ROS path [4]=/opt/ros/fuerte/stacks

Morpheus gravatar image Morpheus  ( 2012-11-19 16:26:29 -0500 )edit

As I said before, please edit your question. Reading error messages or code in comments is really hard. As your error clearly says, you are missing the node you are trying to launch. Did you install it?

Lorenz gravatar image Lorenz  ( 2012-11-19 21:55:19 -0500 )edit
1

I hope that I have edited my question a little better.

Morpheus gravatar image Morpheus  ( 2012-11-22 05:57:07 -0500 )edit

Question Tools

Stats

Asked: 2012-11-17 01:57:45 -0500

Seen: 2,774 times

Last updated: Nov 25 '12