Skip to content

Indigo msa author info - #1

Closed
rhaschke wants to merge 4 commits into
v4hn:indigo-message-about-author-informationfrom
rhaschke:indigo-msa-author-info
Closed

rhaschke wants to merge 4 commits into
v4hn:indigo-message-about-author-informationfrom
rhaschke:indigo-msa-author-info

Conversation

@rhaschke

@rhaschke rhaschke commented Sep 5, 2016

Copy link
Copy Markdown

Thinking a little bit more about moveit#187, I came to the conclusion, that we shouldn't bother the user with even more warning messages, but instead fix the reason for the not-generated .setup_assistant file.
The reason is that .setup_assistant file is by default disabled for generation, because it's file timestamp is more recent than the generation timestamp stored in the file. However, ignoring that fact, the file should always be written when the package is generated.

This PR removes your additional warning message, but instead simply enables file generation for .setup_assistant in any case.

@v4hn

v4hn commented Sep 6, 2016

Copy link
Copy Markdown
Owner

Please file this request against upstream.
I thought about that solution too, but I'm unsure it is a good idea to regenerate this file every time automatically.
I would like to have this reviewed by dave.

// Boost file system
namespace fs = boost::filesystem;

const std::string g_setup_assistant_file = ".setup_assistant";

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moveit does not use the g_ convention anywhere and it seems really out of place here. instead:

static const std::string SETUP_ASSISTANT_FILE = 

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@davetcoleman

Copy link
Copy Markdown

+1

@rhaschke

rhaschke commented Sep 9, 2016

Copy link
Copy Markdown
Author

Please file this request against upstream.

@v4hn I wanted to draw on your original commits. Please merge.

I thought about that solution too, but I'm unsure it is a good idea to regenerate this file every time automatically.

As this is a config file of setup assistant, it should by default reflect the latest changes made.
I even thought about enforcing recreation, i.e. not allowing the user to disable file generation...

@v4hn

v4hn commented Sep 9, 2016

Copy link
Copy Markdown
Owner

On Thu, Sep 08, 2016 at 11:31:59PM -0700, Robert Haschke wrote:

@v4hn I wanted to draw on your original commits. Please merge.

I will hopefully remember to look at it when I'm back home next week.

@davetcoleman

Copy link
Copy Markdown

ping @v4hn


install(DIRECTORY launch DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(DIRECTORY config DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})
install(FILES .setup_assistant DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION})

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why install the .setup_assistant file? There's no need for a template of this one, is there?
The code currently works fine without this files being installed, doesn't it?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try a roslaunch <moveit_config_package> setup_assistant.launch on an installed moveit config package.
Loading the existing package config will fail, because the .setup_assistant file is missing:

screenshot_2016-09-13_15-11-21

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow, I didn't even know there was such a launch file.

Actually, I would like to propose to remove the installation rule for the launch file instead of adding .setup_assistant.
Installation workspaces should not be edited and I would prefer not to encourage that.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see you point. Not installing setup_assistant.launch would be a clean solution, I think.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to not allowing binary-installed moveit config packages to be edited with setup assistant via removing roslaunch file

@rhaschke

Copy link
Copy Markdown
Author

Recreated in moveit#221.

@rhaschke rhaschke closed this Sep 15, 2016
@rhaschke
rhaschke deleted the indigo-msa-author-info branch September 25, 2016 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants