Skip to content

Moises981/PointCLoud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

PointCloud

Installation's steps:

First it's important to compile the packages.

Compile the ros's packages

catkin_make
source devel/setup.bash

Upload sketch to arduino

Now we have to upload the skectch of arduino named ROS_PUB. image

Launch the rviz and PointCloud message

Once uploaded the sketch , we have to launch the main.launch located in the rviz_visual package Copy this command in your terminal:

roslaunch rviz_visual main.launch

After that we'll see the RVIZ interface and the pointcloud.

v

Launch the laser_assembler service client to get response of the service server

Then we can accumulate the pointcloud while the servo is rotating , we will send 180 messages by each degree. To use the laser_assemble we have to put this in the terminal , but don' forget to put the following command everytime you use a new terminal.

source devel/setup.bash

Then we call to the service assemble_scans2 with the following command:

roslaunch rviz_visual get_cloud.launch

After that we have to change the topic of the pointcloud for "/cloud_data". vs Now we can see the points that we generate when the servo of the robot was rotating.

PointCLoud reduction:

We can create a topic that subscribes to our pointcloud assemble , then we can ignore some points with the variable resample , while the resample is bigget than befores , we will have less points. Lets's see that. Open another terminal and copy the following command:

roslaunch rviz_visual cloud_reduction.launch

Then let's change the topic of the pointcloud on rviz.

Resample=10:

Peek 20-05-2020 19-09

Resample=100:

Peek 20-05-2020 19-10

Resample=1000:

Peek 20-05-2020 19-11

Notes:

Previously I had a PointCloud2 publisher we a lot of bugs , I couldn't control the points for that I create a list we the values in float32 (value 7). When you launch a laser_assemble service server you should have a fixed_frame of reference , maybe the base_link. To change the value of resample you have to enter to the src folder and then open the pointcloud_reduction.py and change the value of the variable of paso_resample.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published