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

Incorrect scanning frame with G4 model #21

Open
EwingKang opened this issue Jun 4, 2019 · 1 comment
Open

Incorrect scanning frame with G4 model #21

EwingKang opened this issue Jun 4, 2019 · 1 comment

Comments

@EwingKang
Copy link

The scanning frame, including the robot model is rotated by 180 degrees around Z axis.
In this picture, the wall corner is actually on the right-front direction, while the arrow pointing at the LIDAR is at its left-hand-side
Screenshot from 2019-06-04 17-54-01

@EwingKang
Copy link
Author

EwingKang commented Jun 5, 2019

It turns out that there's a parameter called reversion, you have to set those manually.

<node name="ydlidar_node"  pkg="ydlidar"  type="ydlidar_node" output="screen">
    <param name="port"         type="string" value="/dev/ydlidar"/>  
    <param name="baudrate"     type="int"    value="115200"/>
    <param name="frame_id"     type="string" value="laser_frame"/>
    <param name="angle_fixed"  type="bool"   value="true"/>
    <param name="low_exposure"  type="bool"   value="false"/>
    <param name="heartbeat"    type="bool"   value="false"/>
    <param name="resolution_fixed"    type="bool"   value="true"/>
	<param name="reversion"    type="bool"   value="true"/>
    <param name="angle_min"    type="double" value="-180" />
    <param name="angle_max"    type="double" value="180" />
    <param name="range_min"    type="double" value="0.08" />
    <param name="range_max"    type="double" value="16.0" />
    <param name="ignore_array" type="string" value="" />
    <param name="samp_rate"    type="int"    value="9"/>
    <param name="frequency"    type="double" value="7"/>
  </node>

But still, the scanning direction is reversed compare to the standard definition of ROS (http://docs.ros.org/melodic/api/sensor_msgs/html/msg/LaserScan.html) which, which will cause problem if vehicle is moving.
Screenshot from 2019-06-05 12-58-06

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