First time here? Check out the FAQ!


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

Navigation stack error while launching

asked Oct 18 '22

Kostas Tzias gravatar image

In my costmap_common_param.yaml file i've placed these two lines :

observation_sources: laser_scan_sensor
laser_scan_sensor: {sensor_frame:base_scan, data_type: LaserScan, topic: scan, marking: true, clearing: true}

When i am launching my nav_pkg i get this error :

load_parameters: unable to set parameters (last param was [/move_base/TrajectoryPlannerROS/holonomic_robot=False]): cannot marshal None unless allow_none is enabled

I've been searching for a while and i found a comment which says that this error means one of the parameters is null (undefined or an empty string). It also says to add the following line when roslaunching the nav_pkg :

--dump-params

Indeed when i did it i found this :

/move_base/global_costmap/laser_scan_sensor/sensor_frame:base_scan: null

But i have no ideas why is this happening and also i don't know how to fix it. Any suggestions ?

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
0

answered Oct 18 '22

ravijoshi gravatar image

Can you please try again after adding a space between sensor_frame: and base_scan as shown below:

laser_scan_sensor: {sensor_frame: base_scan, data_type: LaserScan, topic: scan, marking: true, clearing: true}

Please report if the problem persists.

Preview: (hide)

Comments

Yeah that worked i guess it is white space sensitive

Kostas Tzias gravatar image Kostas Tzias  ( Oct 19 '22 )edit

Well, it is a YAML file, so you must use space. Anyway, I am glad that it worked. You may upvote the answer by clicking on the ^ icon located on the left side of the answer.

ravijoshi gravatar image ravijoshi  ( Oct 19 '22 )edit

Question Tools

1 follower

Stats

Asked: Oct 18 '22

Seen: 83 times

Last updated: Oct 18 '22