Cannot use ps3joy with turtlesim (can't locate node [ps3_joy_node])
Hi everyone,
I am new to ROS. I was following the on using a ps3 controller to operate turtlesim but unfortunately I have encountered the following error after I use "roslaunch learning_ps3joy turtle_ps3joy.launch":
ERROR: cannot launch node of type [ps3joy/ps3_joy_node]: can't locate node [ps3_joy_node] in package [ps3joy]
I can see the turtlesim window with its turtle in it. I completed the tutorial to configure a ps3 controller and I was able to see it work with no errors.
Any ideas on why this is happening?
Edit 1:
I have a feeling the problem is in the launch file when executing the ps3joy node. Here is the code as it is shown in the tutorial:
<node respawn="true" pkg="ps3joy" type="ps3_joy_node" name="PS3_turtle_joy" >="" <param="" name="dev" type="string" value="/dev/input/js2"/> </node>
Edit 2:
One thing that I have noticed is when I run roscd joy
or roscd ps3joy
the directory lies in /opt/ros/groovy/share/joy and /opt/ros/groovy/share/ps3joy. I have found the joy_node file in /opt/ros/groovy/lib/joy and the ps3joy_node.py in /opt/ros/groovy/lib/ps3joy directories.
Under the /opt/ros/groovy/share/joy directory all I see are: cmake migration_rules package.xml
And for /opt/ros/groovy/share/ps3joy cmake diagnostics.yaml launch package.xml
Which ROS version are you using?
Groovy, sorry for not including that.