Skip to content
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

Merged
merged 13 commits into from
Aug 2, 2017

Conversation

Nicogene
Copy link
Member

@Nicogene Nicogene commented Jul 31, 2017

This PR import iCubCluster inside yarpmanager that looks like:
image

It has been successfully tested on iCubGenova01 setup and it has (for now) the same functionalities of icub-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:

  • Implement the More... button, maybe in a smarter way...
  • Make ui nicer
  • Fix the cross dipendence with iCub..
  • Fix codacy

@Nicogene Nicogene added PR Status: Changelog - Not OK This PR does not have a changelog entry, or the changelog needs to be fixed Component: GUI - yarpmanager Platform: Linux Platform: macOS Target: YARP v2.3.72 PR Type: Feat/Enh This PR adds some new feature or enhances some part of YARP Issue Type: Feat/Enh Req This issue requests some new feature or enhancement labels Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@robotology robotology deleted a comment Jul 31, 2017
@Nicogene Nicogene force-pushed the ImportICubCluster branch from 70d9572 to cf7e1f2 Compare August 1, 2017 15:09
@Nicogene
Copy link
Member Author

Nicogene commented Aug 1, 2017

Sorry guys for spam, I tried to make codacy happy but every push it finds something new

@diegoferigo
Copy link
Member

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.

@barbalberto
Copy link
Collaborator

barbalberto commented Aug 1, 2017

It is fine if there are a lot of inaccuracy in the code. The tool is there to catch them all for you.
My point was simply: can we have a single mail with all the messages?
Or even better: a single mail with "codacy found some issue, go on github and check them out"
Too many mail are just spam.

@claudiofantacci
Copy link
Collaborator

@barbalberto that is a valid point! There should be somewhere in settings a way to stop emails. Let me check!

@claudiofantacci
Copy link
Collaborator

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.
@drdanz should look into this.

Anyway, now let's go back on track with the PR :-)

@robotology robotology deleted a comment Aug 1, 2017
@robotology robotology deleted a comment Aug 1, 2017
@robotology robotology deleted a comment Aug 1, 2017
@robotology robotology deleted a comment Aug 1, 2017
@robotology robotology deleted a comment Aug 1, 2017
@drdanz drdanz changed the title Import iCubCluster Add iCubCluster functionality to yarpmanager Aug 2, 2017
@drdanz
Copy link
Member

drdanz commented Aug 2, 2017

I wonder why it says "drdanz deleted a comment from codacy-bot", I didn't delete anything 😮

@drdanz drdanz removed the Issue Type: Feat/Enh Req This issue requests some new feature or enhancement label Aug 2, 2017
Copy link
Member

@drdanz drdanz left a 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

Copy link
Member

@drdanz drdanz left a 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
Copy link
Member

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_
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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
Copy link
Member

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

@drdanz
Copy link
Member

drdanz commented Aug 2, 2017

I changed the settings, codacy should now just send one message with a summary.
I'll try it for a while, but to be honest I don't see a good reason for not having the comments on the pull request, so if I don't like the new setting I'll switch back! 💪

@Nicogene Nicogene force-pushed the ImportICubCluster branch from cf7e1f2 to 1c41b23 Compare August 2, 2017 08:09
@randaz81
Copy link
Member

randaz81 commented Aug 2, 2017

"Type the command you wish to execute:" ...
super! what is the syntax? can I execute the command on a generic machine (one of the machines listed above?) It could be useful to start roscore, if needed.

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..)

@Nicogene
Copy link
Member Author

Nicogene commented Aug 2, 2017

"Type the command you wish to execute:" was already implemented also on the "old" cluster, in this one you can execute a command via ssh -f on the nodes you selected in the list.

The idea was to additionally check that the /ros port is up if --ros is checked when you check if the nameserver is up, but it is more difficult than expected. NetworkBase::exists() sends to the port an admin rpc cmd ver, the /ros port that it is not a yarp port throws an exception: Response: dict (faultCode 1) (faultString "<type 'exceptions.Exception'>:method \"ver\" is not supported").
For now I think we will merge without the ros check and will add it later as improvement

@Nicogene Nicogene changed the title Add iCubCluster functionality to yarpmanager [WIP] Add iCubCluster functionality to yarpmanager Aug 2, 2017
@Nicogene Nicogene changed the title [WIP] Add iCubCluster functionality to yarpmanager Add iCubCluster functionality to yarpmanager Aug 2, 2017
@drdanz drdanz merged commit 208cc3c into robotology:devel Aug 2, 2017
@drdanz
Copy link
Member

drdanz commented Aug 2, 2017

Merged, thanks!

@Nicogene Nicogene deleted the ImportICubCluster branch August 2, 2017 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants