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

TypeError: Unexpected type for parameter value None

asked 2021-04-08 22:41:23 -0500

Ataraxy gravatar image

Recently, i learn moveit2 in ros2-foxy by following tutorials.But when i run ros2 launch moveit2_tutorials demo.launch.py rviz_tutorial:=true,an error happendTypeError: Unexpected type for parameter value None andlaunch.invalid_launch_file_error.InvalidLaunchFileError: Caught exception when trying to load file of format [py]: Unexpected type for parameter value None.however,i dont know how to fix it。This problem bothered me for several days。So,i would be thankful for your help. This is the code of 'demo.launch.py'link text

edit retag flag offensive close merge delete

Comments

Have you figured this out? I have the same issue

DRO gravatar image DRO  ( 2021-10-05 18:16:34 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2023-06-03 06:57:46 -0500

130s gravatar image

updated 2023-06-03 07:03:25 -0500

I have not seen the same error nor can replicate it using the same command ros2 launch moveit2_tutorials demo.launch.py but moveit2_tutorials#342 shows the exact command in use and the error it seems, which is resolved an year ago in 2022/05. I assume that is the fix.

Unfortunately in the referenced ticket there's no mention about what was the exact fix though, another ticket (again from moveit2_tutorials) moveit2_tutorials#385 that was resolved by moveit2!1271, and also from my personal experience, this error may happen when a key-value pair of the Parameter list in Node received an empty value. So fix the value that is not supposed to be None.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-04-08 22:41:23 -0500

Seen: 398 times

Last updated: Jun 03 '23