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

ROS_ASSERT fails, ros parameter type invalid

asked 2020-03-09 14:40:54 -0500

jbeck28 gravatar image

I've been trying to load yaml files to the parameter server and process them with a C++ program. What I've found is that, even with simple yaml files such as:

chains: [5,6,7]

the lines of code:

XmlRpc::XmlRpcValue chains;
  nh.getParam("chains", chains);
  std::cout << chains.getType() << std::endl;

outputs a 0, which means the type is

XmlRpc::XmlRpcValue::TypeInvalid

I'm not exactly surewhy this is happening regardless of the parameter I place on the server... but I'm out of ideas.

Any help would be appreciated.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-03-09 14:59:40 -0500

tfoote gravatar image

If the type is irrespective of what you put on the parameter server I would guess that you're not reading the same parameter that you're setting.

Make sure that you don't have any namespaces or remapping rules applied to your node etc.

If you want more help than a guess please edit your question to provide enough to reproduce your problem.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-03-09 14:40:54 -0500

Seen: 170 times

Last updated: Mar 09 '20