So I think that you are asking two questions here.
The first is how do you integrate the laser data and the position data of the encoder, right? This is yet another job for TF (wiki.ros.org/tf). You can think of it like this...
If the lidar is sitting on top of a table and the encoder is set to be parallel with the table, then the transform between the laser data and the table will just be the height different between the table and the laser plane.
//\\ ----lidar plane---->
||||
----table-----
When the encoder is moved to some angle (theta), then the transform is a rotation of theta and a translation of the height difference explained above. The TF tutorials will explain all of this much better but I wanted to give you a quick idea of what to expect.
Your second question about the drivers. We purchased our SICKLMS5XX from a company called Adept so I pulled their drivers and wrapped them for ROS. I can tell you that the LMS5XX driver is based on the LMS1XX driver not the LMS2XX driver (believe it or not) so I do think that there are differences between LMS2XX and the LMS5XX. I personally did not have any luck with getting the sicktoolkit stuff to work with our lidar, which is why I wrapped the other driver.
sorry but your question does not make any sense. please elaborate
Hi Brice, tried to clarify the question. This is similar to the question http://ros-users.122217.n3.nabble.com/Driver-for-any-3D-Laser-Scanner-Available-td1679151.html