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

configure the output from the ros node launch #87

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

configure the output from the ros node launch #87

wants to merge 3 commits into from

Conversation

amastrobera
Copy link

I added one the missing configuration option in the ros-node launch. Removed tabs in that file.

feature
being able to decide what output the sensor should publish (for example, mag.field + lin.accel.)

before
python mtdevice.py --configure "ad,mg"
roslaunch xsens_driver xsens_driver.launch

after
roslaunch xsens_driver xsens_driver.launch // the .launch file including that config

@amastrobera
Copy link
Author

amastrobera commented Aug 23, 2018

@fcolas @esteve @LukePhairatt @bdholt1 FYI I added this commit

Copy link
Contributor

@efernandez efernandez left a comment

Choose a reason for hiding this comment

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

LGTM, just a minor comment.

nodes/mtnode.py Outdated
@@ -57,6 +57,7 @@ def __init__(self):
baudrate = get_param('~baudrate', 0)
timeout = get_param('~timeout', 0.002)
initial_wait = get_param('~initial_wait', 0.1)
output_config = get_param('~output_config', '')
Copy link
Contributor

Choose a reason for hiding this comment

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

Any reason why you don't set the same default as in the launch file here? oq,ad,wd,mf

Copy link
Author

Choose a reason for hiding this comment

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

no particular reason ... so I added them in, to stick to your original style of default params

@fcolas
Copy link
Contributor

fcolas commented Sep 12, 2018

Many thanks for this contribution. However, I won't accept it as this since I don't want to needlessly update the configuration.

I assume that you're aware that the configuration is stored on the device and, unless you are switching configuration time, you need to do the mtdevice -c ... only once.
Please see discussion in #70 (especially this comment) for more details and what to do to actually set it in the node.

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