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

[gazebo_ros] Remove ROS remapping arguments from gazebo_ros launch scripts. #390

Merged

Conversation

peci1
Copy link
Contributor

@peci1 peci1 commented Feb 16, 2016

Solves issue #387 .

@j-rivero
Copy link
Contributor

j-rivero commented Mar 9, 2016

Could you please merge the current jade-devel branch so we get some testing from the travis service? Thanks.

@peci1
Copy link
Contributor Author

peci1 commented Mar 9, 2016

Here we go...

@@ -1,6 +1,10 @@
#!/bin/sh
final="$@"

# remove ros remapping arguments like "__name:=node_name"; otherwise, they'd
# be interpreted as a world name by gzserver, and it'd crash while loading it
final=`echo "$final" | sed 's/[^ ]*:=[^ ]* \?//g'`
Copy link
Contributor

Choose a reason for hiding this comment

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

we probably don't need the echo call, does sed 's/[^ ]*:=[^ ]* \?//g' <<< $final works for you?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it works. But I haven't known something like <<< exists. Isn't it more readable to do it with the echo call?

Copy link
Contributor

Choose a reason for hiding this comment

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

Isn't it more readable to do it with the echo call?

I would say that is a subjective matter but we are saving one extra call and only run grep. minimal minimal peformance impact but better use of tools, IMHO. I leave it up to you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Okay. Then you know my preference :)

j-rivero added a commit that referenced this pull request Mar 10, 2016
[gazebo_ros] Remove ROS remapping arguments from gazebo_ros launch scripts.
@j-rivero j-rivero merged commit c190bf6 into ros-simulation:jade-devel Mar 10, 2016
@j-rivero
Copy link
Contributor

Thanks for the patch!

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.

2 participants