ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
Hi Eric, thank you. I tried "rosmake --pre-clean sicktoolbox_wrapper" and it worked.
Here is the steps I followed.(In case any one is having trouble)
1) download sicktoolbox
2)rosmake sicktoolbox
3)open this file (your_ros_installation_directory)/ros/diamondback/stacks/sicktoolbox/build/sicktoolbox-1.0/c++/drivers/lms/sicklms-1.0/SickLMS.cc . Go to line 2319. 3) In this line, add the O_NDELAY flag as shown here:
if((_sick_fd = open(_sick_device_path.c_str(), O_RDWR | O_NOCTTY| O_NDELAY)) < 0) { throw SickIOException("SickLMS::_setupConnection: - Unable to open serial port"); }
4)After this line, add a system sleep call for 30 seconds. This is required so as to allow the sick laser to start up and start scanning.
sleep(30); // actually It worked fine for me without adding this line as well, but it didn't for my friend
5)go to ros/diamondback/stacks/sicktoolbox/build/sicktoolbox-1.0/c++/drivers/lms/sicklms-1.0/
and
$ make all 6)$rosmake sicktoolbax
7)$rosmake sicktoolbox_wrapper
8)rosmake --pre-clean sicktoolbox_wrapper
9) then continue with the tutorials
10)you should see the scan in RVIZ..
once again thank you Eric and all the best for for others.
2 | No.2 Revision |
Hi Eric, thank you. I tried "rosmake --pre-clean sicktoolbox_wrapper" and it worked.
Here is the steps I followed.(In case any one is having trouble)
1) download sicktoolbox
2)rosmake sicktoolbox
3)open this file (your_ros_installation_directory)/ros/diamondback/stacks/sicktoolbox/build/sicktoolbox-1.0/c++/drivers/lms/sicklms-1.0/SickLMS.cc . Go to line 2319.
2317.
3) In this line, add the O_NDELAY flag as shown here:
if((_sick_fd = open(_sick_device_path.c_str(), O_RDWR | O_NOCTTY| O_NDELAY)) < 0) {
{
throw SickIOException("SickLMS::_setupConnection: - Unable to open serial port");
port");
}
4)After this line, add a system sleep call for 30 seconds. This is required so as to allow the sick laser to start up and start scanning.
sleep(30); // actually It worked fine for me without adding this line as well, but it didn't for my friend
5)go to ros/diamondback/stacks/sicktoolbox/build/sicktoolbox-1.0/c++/drivers/lms/sicklms-1.0/
and
$ make all 6)$rosmake sicktoolbax
7)$rosmake sicktoolbox_wrapper
8)rosmake --pre-clean sicktoolbox_wrapper
9) then continue with the tutorials
10)you should see the scan in RVIZ..
once again thank you Eric and all the best for for others.