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

How to use my own laser? #4

Open
Jingjinganhao opened this issue Nov 20, 2020 · 6 comments
Open

How to use my own laser? #4

Jingjinganhao opened this issue Nov 20, 2020 · 6 comments

Comments

@Jingjinganhao
Copy link

Hi, I want to use RPLIDAR A3 on mini cheetah, and I change the gazebo parameter of hokuyo in yobotics.urdf, but it doesn't work .
How can I use RPLIDAR A3 ?

@grassjelly
Copy link
Member

Hi,

The easiest way to do this is to just model RPLIDAR's specifications here https://github.com/HitSZwang/mini-cheetah-gazebo-urdf/blob/7f8ae920903084db6971c3de618cb710d6da8f4d/yobo_model/yobotics_description/xacro/accessories.urdf.xacro#L7-L13 . Otherwise, you can just replace the UTM sensor with RPLidar's xacro tag, just don't forget to define the parent frame and its translation/orientation of the sensor

@Jingjinganhao
Copy link
Author

Hi,
I set ray_count="10" in accessories.urdf.xacro for testing, but it still doesn't work .

@grassjelly
Copy link
Member

sorry forgot to mention you have to regenerate the URDF for every changes you make:

roscd yobotics_description/urdf
./gen_urdf

@Jingjinganhao
Copy link
Author

Jingjinganhao commented Nov 24, 2020

Hi,
thank you very much, I did what you said and when I run:
roslaunch mini_cheetah_config gazebo.launch
that works for me .
but I want to use my own world file, and when I change the "gazebo_world" in gazebo.launch,
it doesn't work.
I still get ray_count="1040"

@grassjelly
Copy link
Member

that's strange, because the world file does not contain anything related to your LIDAR. Have you tried the default.world?

@Jingjinganhao
Copy link
Author

Which default.world? When I use outdoor.world, it works.
When I use my own world file test.world , even I set ray_count="10" in accessories.urdf.xacro and make
roscd yobotics_description/urdf
./gen_urdf
I also get ray_count="1040"

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