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

rosparam ERROR: Parameter is not set

asked 2017-07-14 17:15:14 -0600

moshimojo gravatar image

I am trying to convert from sdf to urdf robot model. I found this https://github.com/andreasBihlmaier/p... and i followed the steps in https://www.youtube.com/watch?v=8g5nM... . But when i do rosparam get robot_description i get the following error:

ERROR: Parameter [/robot_description] is not set

I guess something is wrong with my workspace structure but i can't figure out what. Any suggestions?

Thank you!

edit retag flag offensive close merge delete

Comments

1

Could I please ask you when referring to videos to explain which commands you used from that video and what the output was? This may be personal, but I'm not going to watch a 13 minute video just to see what could have gone wrong.

gvdhoorn gravatar image gvdhoorn  ( 2017-07-15 04:12:22 -0600 )edit

I used the url from github and did git clone https://github.com/andreasBihlmaier/pysdf.git in my working directory. It worked fine. Then catkin_make which also worked. In the parse.py file i changed the name of catkin_ws to robot_ws because thats my directory.

moshimojo gravatar image moshimojo  ( 2017-07-15 13:55:45 -0600 )edit

Then in my robot_gazebo folder i opened the launch file and add <param name="/robot_description" textfile="$(find robot_gazebo)/models/robot/robot.urdf" />. I changed to roscd robot_gazebo/models/robot and then rosrun pysdf sdf2urdf.py robot.sdf robot.urdf which gave me the urdf code.

moshimojo gravatar image moshimojo  ( 2017-07-15 14:01:37 -0600 )edit

I am able to relaunch the model with roslaunch robot_gazebo robot.launch with an error message in terminal Error [Param.hh:298] Unable to convert parameter[updateRate] whose type is[string], to type[d] , but my robot is still there and visible.

moshimojo gravatar image moshimojo  ( 2017-07-15 14:11:18 -0600 )edit

The problem is when i run rosparam get /robot_description (with or whithout an / ) it gives me ERROR: Parameter [/robot_description] is not set

moshimojo gravatar image moshimojo  ( 2017-07-15 14:13:02 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-07-14 19:43:58 -0600

Ed Venator gravatar image

updated 2017-07-14 19:44:38 -0600

The launch file syntax in that tutorial looks wrong to me. Try this:

<?xml version="1.0"?>
<launch>
    <param name="/robot_description" textfile="$(find your_package_name)/path/to/your/file.urdf"/>
    <!-- The rest of your launch configuration -->
</launch>
edit flag offensive delete link more

Comments

Thanks for the response. Still not working

moshimojo gravatar image moshimojo  ( 2017-07-15 13:44:01 -0600 )edit

If you run cat ($rospack find robot_gazebo)/models/robot/robot.urdf, does it print your URDF file?

Ed Venator gravatar image Ed Venator  ( 2017-07-15 15:03:10 -0600 )edit

It prints all of the CMakeLists.txt, launch, SDF, world and URDF files

moshimojo gravatar image moshimojo  ( 2017-07-15 16:58:38 -0600 )edit

Whoops, there was a typo in the command I sent. Try this instead. cat $(rospack find robot_gazebo)/models/robot/robot.urdf. Does that print your URDF file?

Ed Venator gravatar image Ed Venator  ( 2017-07-15 20:39:16 -0600 )edit

Don't worry, i corrected it first. So yes the output is all of these files that i wrote above.

moshimojo gravatar image moshimojo  ( 2017-07-16 05:23:13 -0600 )edit

The path in textfile should only point to your URDF file. Can you paste in the result of this pair of commands? It should list all of the files in the robot_gazebo package: roscd robot_gazebo; find

Ed Venator gravatar image Ed Venator  ( 2017-07-16 09:42:29 -0600 )edit

the command roscd robot_gazebo; find gave these: - . - ./CMakeLists.txt - ./launch - ./launch/robot.launch - ./src - ./worlds - ./worlds/robot.world - ./models - ./models/robot - ./models/robot/robot.urdf - ./models/robot/robot.sdf - ./include - ./include/robot_gazebo - ./package.xml

moshimojo gravatar image moshimojo  ( 2017-07-16 12:20:42 -0600 )edit

i added the dashes

moshimojo gravatar image moshimojo  ( 2017-07-16 12:22:30 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2017-07-14 17:15:14 -0600

Seen: 2,367 times

Last updated: Jul 14 '17