-
Notifications
You must be signed in to change notification settings - Fork 196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add iCubCluster functionality to yarpmanager #1306
Conversation
70d9572
to
cf7e1f2
Compare
Sorry guys for spam, I tried to make codacy happy but every push it finds something new |
I've been busier that usual recently and the work slowed down a bit, but most of codacy warnings can be addressed automatically by setting up any clang-format. |
It is fine if there are a lot of inaccuracy in the code. The tool is there to catch them all for you. |
@barbalberto that is a valid point! There should be somewhere in settings a way to stop emails. Let me check! |
Ok, according to Codacy doc, this kind of option is on GitHub side, under Webhook and Services. I can't do anything more as I'm not enabled to change settings on robotology. Anyway, now let's go back on track with the PR :-) |
I wonder why it says "drdanz deleted a comment from codacy-bot", I didn't delete anything 😮 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, great addition, but please change all the methods passing a std::string
by value to passing by const reference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now for the nitpicks...
}; | ||
|
||
} // namespace yarp | ||
} // namespace manager |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is actually the opposite, i.e.
} // namespace manager
} // namespace yarp
} // namespace manager | ||
|
||
|
||
#endif // __YARP_MANAGER_XMLCLUSTERLOADER_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment here is wrong
#include <yarp/os/Value.h> | ||
#ifdef WITH_GEOMETRY | ||
#include <yarp/os/Property.h> // for parsing geometry information | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is this WITH_GEOMETRY
used for? I cannot find it anywhere else.
*/ | ||
|
||
|
||
#ifndef YARP_MANAGER_XMLCLUSTERLOADER |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to our policies this should be YARP_MANAGER_XMLCLUSTERLOADER_H
namespace yarp { | ||
namespace manager { | ||
|
||
struct ClusNode |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think that saving the ter
from cluster here is not really worth, I'd rename it ClusterNode
I changed the settings, codacy should now just send one message with a summary. |
cf7e1f2
to
1c41b23
Compare
"Type the command you wish to execute:" ... About the --ros option: Can you add an additional green tick to show if the nameserver has been started with --ros option? (just checking if a /ros port is active, I think..) |
"Type the command you wish to execute:" was already implemented also on the "old" cluster, in this one you can execute a command via The idea was to additionally check that the |
Merged, thanks! |
This PR import iCubCluster inside yarpmanager that looks like:

It has been successfully tested on
iCubGenova01
setup and it has (for now) the same functionalities oficub-cluster.py
.on
WIN32
the iCubCluster panel is for now disabled (sorry @randaz81 , @pattacini and @lornat75 😅 ).@traversaro you owe me a beer 😛.
We should discuss about the cross dependency with icub-main( it needs only the
cluster-config.xml
) and about the deployer for windows.We could keep it as it is for now and try to figure out later how to launch commands from and to windows machines.
@claudiofantacci @barbalberto @vtikha
Fixes #730.
TODO before merging:
More...
button, maybe in a smarter way...