EAIBOT / ydlidar

The driver of ydlidar for ROS on the linux !
101 stars 61 forks source link

how to change the coordinates from my ydlidar? #22

Open yobertyosua opened 5 years ago

yobertyosua commented 5 years ago

Hello,

i am new in this programming. Now i am doing a project using ydlidar x4. I wanna change the coordinates from my scanner.

Here is my launch program:

launch node name="ydlidar_node" pkg="ydlidar" type="ydlidar_node" output="screen" respawn="false" param name="port" type="string" value="/dev/ydlidar"/ param name="baudrate" type="int" value="128000"/ param name="frame_id" type="string" value="odom"/ param name="low_exposure" type="bool" value="false"/ param name="resolution_fixed" type="bool" value="true"/ param name="auto_reconnect" type="bool" value="true"/ param name="reversion" type="bool" value="false"/ param name="angle_min" type="double" value="-180" / param name="angle_max" type="double" value="180" / param name="range_min" type="double" value="0.1" / 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 node pkg="tf" type="static_transform_publisher" name="laser_to_odom" args="1.0 0.0 0.0 0.0 0.0 0.0 /odom /laser_frame 40" / /launch

Here we can see that the reference point of my scanner is in the odom. How can i change it (for example a meter on the right side from my odom)? Maybe there is a file that include the information about my frame id so i can change the coordinates?

I've searched this problem but i still don't find the answer and i don't know where shall i post this question.

I hope you can understand what i mean. Sorry because my english not good.

Thank you very much before.