I am workin with Ubuntu 16.04 - ROS Kinetic
I am having not success in launch a file: I am training the book "Mastering ROS for Robotics programming", In page 69, I am having a problem to visualize the pan and tilt mechanism in RViz....I have already checked the file urdf called viewdemo that I made, the check was well succed but when I give Ros launch viewdemo in masteringrosrobot_descritpion. The terminal gives me the following message error:
[view_demo.launch] is neither a launch file in package [mastering_ros_robot_descritption_pkg] nor is [mastering_ros_robot_descritption_pkg] a launch file name The traceback for the exception was written to the log file
What does this mean? How Can I solve this problem? Can someone help me please?
Asked by Vini71 on 2018-10-02 15:05:49 UTC
Answers
Sometimes I get this error when I forget to source the terminal first. Did you type
source ~/catkin_ws/devel/setup.bash
? (or whatever your ros workspace is called in lieu of "catkin_ws")
Sorry if unhelpful, I am new to ROS
Asked by chloe on 2018-10-02 16:24:55 UTC
Comments
- Please check if you have added ROS in bashrc file.
- If it is not added, then try sourcing
source /opt/ros/lunar/setup.bash
- Try running the launch file.
- If above 3 steps did not fix the issue, try sourcing
source ~/catkin_ws/devel/setup.bash
I hope this helpful.
Thank you, KK
Asked by kk2105 on 2018-10-02 23:27:54 UTC
Comments
Thanks guys I solved the problem! The Launch command was not working because I did not give the command to read the current directory, where the launch file were located. So I typed $ roscd mastering_ros_robot_description..." and later "cd urdf", then as an input I typed check pan_tilt_urdf....finally the check step was a succes! Later I entered with the command roslaunch in the directory launch...so the robot I have described in gedit.urdf appeared finally in RViz.... I am very happy, because I am new in using ROS. But now I have a doubt, several of you have suggested to me using the command "deverl/setup.bash", for what reasons are these commands used? Now I am facing a new problem, if you could help me, so I will be grateful! The problem is the following. I have constructed the robot not in URFD but in XACRO....so the tutorial says me to convert the Xacro in Urdf extension....well I tried but so the following error message appears to me on the terminal: xacro:
"Traditional processing is deprecated. Switch to --inorder processing! To check for compatibility of your document, use option --check-order. For more infos, see http://wiki.ros.org/xacro#Processing_Order"
So, I have clicked in the link, I have read the topics and later I tried the command "rosrun xacro xacro.py --inorder pan_tilt.xacro > pan_tilt_generated.urdf" instead the original command suggested by the book "rosrun xacro xacro.py pan_tilt.xacro > pan_tilt_generated.urdf" This last command was the command that generated the error depicted above, and the first command also didn't give me a correct feedback, in other words, the xacro was not converted again in urdf.
Could someone explain me what is happening? I am not understanding...
Thanks!
Asked by Vini71 on 2018-10-03 07:26:33 UTC
Comments
I'm glad your original problem was solved! This is a new problem, so you should start a new question. Please remember to cut & paste commands and errors directly into your correspondence. Resist the urge to re-type them: that introduces typos, and the answers you get will be: "that's a typo."
Asked by clyde on 2018-10-03 12:24:07 UTC
Comments
Hi, can you copy & paste the command and error exactly? That will help in debugging.
Asked by clyde on 2018-10-02 19:33:02 UTC
this seems like a typo. Notice the "descr*itpt*ion" instead of "description".
Asked by gvdhoorn on 2018-10-03 02:51:05 UTC