robotology / yarp

YARP - Yet Another Robot Platform
http://www.yarp.it
Other
527 stars 195 forks source link

yarpserver --read doesn't set the correct socket #3091

Open dariosortino opened 8 months ago

dariosortino commented 8 months ago

Describe the bug As per title, --read is not enough to set the correct socket specified in the conf file. I still need to set manually like yarpserver --read --socket 10001. Otherwise it doesn't even start.

To Reproduce Set your .conf file with 127.0.0.1 10001 yarp and run yarpserver --read

Expected behavior yarp where should return the correct socket

Screenshots

(robenv) C:\GitHubProj\robotology-superbuild\build>yarpserver --read

     ==========================
    | __  __ ___  ____   ____  |
    | \ \/ //   ||  _ \ |  _ \ |
    |  \  // /| || |/ / | |/ / |
    |  / // ___ ||  _ \ |  _/  |
    | /_//_/  |_||_| \_\|_|    |
    |                          |
     ==========================

Call with --help for information on available options
Using port database: :memory:
Using subscription database: :memory:
IP address: default
Port number: 10000
PROBLEM: need to change settings in C:\Users\dsortino\AppData\Roaming\yarp\config\_darios.conf
  Current settings: host 192.168.16.1 port 10001 family yarp
  Desired settings:  host 192.168.16.1 port 10000 family yarp
Please specify '--write' if it is ok to overwrite current settings, or
Please specify '--read' to use the current settings, or
delete C:\Users\dsortino\AppData\Roaming\yarp\config\_darios.conf
[ERROR] Aborting.

Configuration (please complete the following information):

Additional context