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

Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code[1]

asked 2015-10-06 05:00:41 -0500

queue gravatar image

updated 2015-10-06 07:28:19 -0500

gvdhoorn gravatar image

while executing ros4mat I am getting this error:

tanisha@tanisha-HS:~$ roslaunch ros4mat ros4mat.launch
WARNING: unable to configure logging. No log files will be generated
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion roslaunch] returned with code [1].

Param xml is <param command="rosversion roslaunch" name="rosversion"/>

edit retag flag offensive close merge delete

Comments

What do you get for rosversion roslaunch on the command line?

dornhege gravatar image dornhege  ( 2015-10-06 05:03:40 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2020-11-09 10:29:56 -0500

rgov gravatar image

roslaunch tries to start the roscore nodes by loading the roscore launch file from your ROS distribution, for instance /opt/ros/melodic/etc/ros/roscore.xml. This launch file instructs roslaunch to execute rosversion roslaunch.

If rosversion roslaunch fails for some reason, this error will occur. You should try to run this command separately to see what error is displayed.

A reason why it might fail is if your ROS environment variables are not correct. You should be using source /opt/ros/melodic/setup.bash or similar (see this tutorial), plus a separate Catkin workspace file, to populate variables.

I encountered this issue myself because I was overriding ROS_PACKAGE_PATH incorrectly. Once I fixed it, the error went away.

edit flag offensive delete link more
0

answered 2018-10-20 13:06:41 -0500

bxl gravatar image

Look in your packages if package.xml are correctly.
That was my error when I had this issue.

edit flag offensive delete link more

Comments

i had a similar issue. I found this description which might help: https://gist.github.com/whateverforev...

fabian gravatar image fabian  ( 2021-08-20 08:07:32 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-10-06 05:00:41 -0500

Seen: 10,731 times

Last updated: Nov 09 '20