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

Example files do not work like the videos in README #3

Open
DEPhantom opened this issue Nov 13, 2021 · 3 comments
Open

Example files do not work like the videos in README #3

DEPhantom opened this issue Nov 13, 2021 · 3 comments

Comments

@DEPhantom
Copy link

Hello kostaskonkk,

I was interested in your package
But after installing and running it according to the README
I found out that it doesn't work
I have run "roslaunch ydlidar lidar.launch"

And,
I ran "roslaunch datmo example.launch bag:=overtakes"
the attach file is :
datmo example rosnode

datmo example rostopic

datmo example tf

example frames (1).pdf

I ran " roslaunch datmo datmo.launch "
the attach file is :
datmo datmo rosnode

datmo datmo rostopic

datmo datmo tf

datmo frames (1).pdf

my OS is Ubuntu 18.04, ROS version is Melodic.

Thank you,
DEPhantom

@kostaskonkk
Copy link
Owner

kostaskonkk commented Nov 14, 2021

Hi @DEPhantom, thanks a lot for trying out my package and for the detailed description of your problem.
I believe that the problem is caused because you are running roslaunch ydlidar lidar.launch in addition to roslaunch datmo example.launch bag:=overtakes.
The latter publishes lidar messages from a prerecorded ROS bag file and should be used by itself.
Can you try running only roslaunch datmo example.launch bag:=overtakes? The output should much the one displayed in the README.
After we confirm that roslaunch datmo example.launch bag:=overtakes, works properly in your computer you can try running:

  1. roslaunch datmo datmo.launch
  2. and the nodes for your LIDAR roslaunch ydlidar lidar.launch

@DEPhantom
Copy link
Author

DEPhantom commented Nov 30, 2021

Hello @kostaskonkk ,
I successfully run roslaunch datmo example.launch bag:=overtakes without running roslaunch ydlidar lidar.launch.
It works like your demo video.
like this:
Screenshot from 2021-11-29 01-02-53

And I run roslaunch datmo datmo.launch
like this
datmo single
It's frame is
frames.pdf

And I open rviz and add topic "MakerArray"
It occur error
rviz error:
rviz error
datmo error:
datmo error
This time I didn't run roslaunch ydlidar lidar.launch
If I run it, it will get same error.

So, I want to get the arrow like video, how should I do ?

Thank you,
DEPhantom

@kostaskonkk
Copy link
Owner

I believe that the issue stems from the fact that you are not publishing any transformation frames between the lidar and the world coordinate, as indicated by the empty frames.pdf that you have attached.
I suggest that you take a close look at the tf tutorials and hopefully they will help you understand which transformations you need to publish.

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

2 participants