Ask Your Question

C++ "basic_component" configuration files

asked 2018-02-04 07:11:03 -0500

rnicklas gravatar image

updated 2018-02-04 07:11:55 -0500


I'm trying to run the C++ basic_component example but after what seemed like a successful compilation of the JdeRobot src code and running cameraserver cameraserver.cfg successfully, trying to run

basic_component basic_component.cfg

results in

[Info] loaded YAML Config file: basic_component.cfg

terminate called after throwing an instance of 'YAML::BadSubscript'

what(): yaml-cpp: error at line 0, column 0: operator[] call on a scalar Aborted (core dumped)

I created the basic_component.cfg file with the contents shown in the example video:

basic_component.Camera1.Proxy=cameraA:default -h localhost -p 9999


as I couldn't find the .cfg file in the source code and the link in the wiki has 404'ed.

trying to run basic_component with the .yml file found in the source

basic_component basic_component.yml

results in :

[Info] loaded YAML Config file: basic_component.yml

Receiving Image from ICE interfaces

Network.cpp:2357: Ice::ConnectionRefusedException: connection refused: Connection refused /usr/include/IceUtil/Handle.h:46: IceUtil::NullHandleException

From these results I think the .yml is the correct one but needs to be properly configured? Maybe someone can help me figure out which file is the correct one, and maybe a working configuration for it.

Thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-02-06 01:48:20 -0500

aitormf gravatar image

updated 2018-02-06 01:49:38 -0500

Hi, Try to run the new instructions of this example. They are wrong, basic component not longer uses cameraserver like server, now uses simulated turtlebot

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2018-02-04 07:11:03 -0500

Seen: 40 times

Last updated: Feb 06

Related questions