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

Can't see /vectornav/INS messages #128

Open
kozinofsky opened this issue Jul 25, 2023 · 2 comments
Open

Can't see /vectornav/INS messages #128

kozinofsky opened this issue Jul 25, 2023 · 2 comments

Comments

@kozinofsky
Copy link

Hello everyone!

I have a problem using this driver
Can't see the messages with "roll" "pitch" and "yaw" angles information (in degrees, as i says in msg/Ins.msg file)

My device is VN100
according to this I've modified /launch/vectornav.launch file to:
image

After running the commands:
sudo chmod a+rw /dev/ttyUSB0
and
roscore
and after that
roslaunch vectornav vectornav.launch

Using rostopic list
I can see the following topics:
~/catkin_ws$ rostopic list
/rosout
/rosout_agg
/vectornav/GPS
/vectornav/IMU
/vectornav/INS
/vectornav/Mag
/vectornav/Odom
/vectornav/Pres
/vectornav/Temp

image

and most of them works and shows me the messages:
IMU for example:
image
or temperature:
image

But the only one I need, with pitch, roll and yaw information, as I understand, should be in /vectornav/INS
and when I run the command:
rostopic echo /vectornav/INS
it just give me nothing:
image

Please, advise, what can be the issue here?

Thanks in advance!

Best,
Andrey

@kozinofsky
Copy link
Author

Sorry, forgot to mention, the board computer has Ubuntu 18.04 and ROS1 melodic (right now trying the driver on an x86 computer, but the goal is to make it work on Nvidia TX2)

@kozinofsky
Copy link
Author

Found a solution for my particular problem.

I just commented "if" condition for the INS publishing part of the C++ script, see the screenshot below.

In the file /vectornav/src/main.cpp I've commented lines 814-816 and 820
So, basically, I just removed an if condition for the INS part.
Seems like for some reason it doesn't get "True" and the publishing INS part of the code just skipped.

Didn't try it before, because it is absolutely the same condition as for IMU data, or temperature data.
Maybe because these are (IMU and temperature) default ROS messages, publishing IMU/temperature data didn't have the same problem as INS publishing (which is processed data I believe, so it is not raw data, like IMU for instance)
vectornav_ins_issue

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

No branches or pull requests

1 participant