Cannot launch node of type [motoman_driver/robot_state]: cannot locate node of type [robot_state] in package [motoman_driver]
Hello,
We are currently working on establishing connection with a Yaskawa HC10DT robot using ROS Industrial. We have all the packages listed here https://github.com/ros-industrial/mot... and all ROS Industrial packages. However, when we want to follow the instructions listed here http://wiki.ros.org/motoman_driver/Tu..., we get the error seen in the attached picture. We would be thankful if someone could help us with this issue.
We are using Ubuntu 18.04 (Bionic) and ROS Melodic (version: 1.14.13).
Build workspace:
~$ source /opt/ros/melodic/setup.bash
~$ mkdir -p ~/catkin_ws/src
~$ cd ~/catkin_ws/
~$ catkin_make
~$ catkin_make -DPYTHON_EXECUTABLE=/usr/bin/python3
~$ source devel/setup.bash
Download Packages (packages we downloaded from https://github.com/ros-industrial/mot...):
~$ cd $HOME/catkin_ws/src
~$ git clone -b melodic-devel https://github.com/ros-industrial/motoman.git src/motoman
~$ rosdep update
~$ rosdep install --from-paths src/ --ignore-src --rosdistro melodic
~$ catkin build
~$ source $HOME/catkin_ws/devel/setup.bash
When trying to run this instruction (note: real robot IP address is not displayed below):
~$ source /home/student/catkin_ws/devel/setup.bash
# First we tried this command
~$ roslaunch motoman_driver robot_interface_streaming_yrc1000.launch robot_ip:=XX.XXX.XX.XX
# Second we tried this command
~$ roslaunch motoman_hc10_support robot_interface_streaming_hc10dt.launch robot_ip:=XXX.XXX.XXX.XXX controller:=yrc1000
We obtained the following error:
... logging to /home/student/.ros/log/18c3894e-d6be-11ec-92d2-3417ebabbff9/roslaunch-student-OptiPlex-9020-5457.log
Checking log directory for disk usage. This may take a while.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.
started roslaunch server http://student-OptiPlex-9020:39861/
SUMMARY
========
PARAMETERS
* /io_relay/port: 50242
* /robot_ip_address: XX.XXX.XX.XX
* /rosdistro: melodic
* /rosversion: 1.14.13
NODES
/
io_relay (motoman_driver/io_relay)
joint_state (motoman_driver/robot_state)
joint_trajectory_action (industrial_robot_client/joint_trajectory_action)
motion_streaming_interface (motoman_driver/motion_streaming_interface)
ROS_MASTER_URI=http://localhost:11311
ERROR: cannot launch node of type [motoman_driver/robot_state]: Cannot locate node of type [robot_state] in package [motoman_driver]. Make sure file exists in package path and permission is set to executable (chmod +x)
ERROR: cannot launch node of type [motoman_driver/motion_streaming_interface]: Cannot locate node of type [motion_streaming_interface] in package [motoman_driver]. Make sure file exists in package path and permission is set to executable (chmod +x)
ERROR: cannot launch node of type [motoman_driver/io_relay]: Cannot locate node of type [io_relay] in package [motoman_driver]. Make sure file exists in package path and permission is set to executable (chmod +x)
process[joint_trajectory_action-4]: started with pid [5472]
[ WARN] [1652887326.581429246]: Unable to find user-specified joint names in 'controller_joint_names'
[ WARN] [1652887326.582446633]: Unable to find URDF joint names in 'robot_description'
[ERROR] [1652887326.582477290]: Cannot find user-specified joint names. Tried ROS parameter 'controller_joint_names' and the URDF in 'robot_description'.
[ERROR] [1652887326.582503122]: Failed to initialize joint_names.
[ WARN] [1652887327.586912877]: Trajectory state not received for 1.000000 seconds
In order to solve the issue above, we performed the following actions:
~$ cd $HOME/catkin_ws
~$ sudo pip install empy
~$ catkin_make
The packages were then installed and built successfully without any errors.
This seems to have solved the previous problem that originated this post. However, now we are getting a new error when running the following commands:
~$ roslaunch motoman_hc10_support robot_interface_streaming_hc10dt.launch ...
Please update your post (use the
edit
button/link below it) with the steps you used to setup and build your workspace (ie:/home/student/catkin_ws
). How did you download the packages? Where did you get them? Which commands did you run? And in which order? What was their output? etc.Additionally:
Once you get the build issues sorted out, please don't use
motoman_driver robot_interface_streaming_yrc1000.launch
directly when you have a supported robot (in your case the HC10DT).Use the following command instead:
I've updated the Usage tutorial to include more relevant information.
Thank you for your feedback and help. The post has been updated with the requested information, I hope this will help you get a better understanding on the issue.