You can synchronize your ROS projects developed in the ROS Development Studio with a git.
Sometimes, you must work in cooperation with other developers. Hence you will have to synchronize the work of the whole teamby means of a git. This video will show you how to use git with the ROS Development Studio
In a quick approach to make a robot move, we can start using some determined points or behaviors. In this post, we are going to test a simple algorithm that makes Turtlebot 2 performs a movement in a straight line, turn right and go straight again. In order to achieve a given point, we are going to use the Odometry, so the robot can localize itself while moves.
I have been playing around with the laser_assembler ROS package and managed to make it work for assembling several laser scans into a single point cloud, and publish that point cloud on a topic.
What I have done is the following:
1- I created a package that will handle all the logic
2- On the launch file of that package, I launch the laser_assembler properly configured and my own node
3- My node subscribes to the service of the laser_assembler that provides point clouds
4- Then it calls the service, gets the response, and then publishes on a topic as a single PointCloud2 message
Using Python to do the conversion simplifies a lot. Let’s see how to do that using the laser_geometry package.
First, you need to launch the laser_geometry package from a launch file, properly configured. Here a suggested launch file:
That file launches the laser_geometry package indicating that the frame from which the transform will be done is the my_robot_link_base (that is whatever tf link of your robot you want the point cloud to be refered from). Another parameter is the max_scans which indicates the max number of last scans that will be take into account for the computation of the point cloud ( this is useful in case your laser is rotating, so you can generate a full 3D cloud).
The launch file above also launches a second node that is the one you have to create to get the data and publish it into your selected topic. What should be the code of such a node? Check the following:
The code shows how to subscribe to the assemble_scans2 service. That is the one that will provide the point cloud on its answer. The code also shows that the point cloud will be published on a topic of type PoinCloud2. basically, the while loop what it does is, first, call to the service, then publish the answer of the service into a topic.
I have created a video describing step by step and code solution. In case you are interested, you can find it below
This post was created as an answer to the following question in ROS Answers Forum: Laserscan to PointCloud
There you will find all the code that we could post. Hope it was useful. Any questions just post them in the comments section or in the Gazebo Answers thread.