From ros-users-bounces@code.ros.org  Fri Mar 18 20:35:48 2011
Return-Path: <ros-users-bounces@code.ros.org>
X-Original-To: www-data@code.ros.org
Delivered-To: www-data@code.ros.org
Received: from pub5.willowgarage.com (localhost [127.0.0.1])
	by pub5.willowgarage.com (Postfix) with ESMTP id CCE7425C499;
	Fri, 18 Mar 2011 20:35:48 -0700 (PDT)
X-Original-To: ros-users@code.ros.org
Delivered-To: ros-users@code.ros.org
Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com
	[209.85.216.181])
	by pub5.willowgarage.com (Postfix) with ESMTPS id 39FD425C038
	for <ros-users@code.ros.org>; Fri, 18 Mar 2011 20:35:47 -0700 (PDT)
Received: by qyg14 with SMTP id 14so3822671qyg.5
	for <ros-users@code.ros.org>; Fri, 18 Mar 2011 20:35:46 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.229.100.234 with SMTP id z42mr1585970qcn.250.1300505745442;
	Fri, 18 Mar 2011 20:35:45 -0700 (PDT)
Received: by 10.229.11.70 with HTTP; Fri, 18 Mar 2011 20:35:45 -0700 (PDT)
In-Reply-To: <AANLkTikRcuyxr4NJ+rKDeAia1cxCMX0t9EJhcqyOGMGZ@mail.gmail.com>
References: <AANLkTimj0RpjQT7_=aMU7RTu=Jddd0SdLNUTb1pCTjCO@mail.gmail.com>
	<AANLkTikRcuyxr4NJ+rKDeAia1cxCMX0t9EJhcqyOGMGZ@mail.gmail.com>
Date: Fri, 18 Mar 2011 23:35:45 -0400
Message-ID: <AANLkTin+rFhCXXMAbmz9OLsmZqCn6EttnPL4-5PNGXHH@mail.gmail.com>
From: Ryan Miller <rmiller4589@gmail.com>
To: Eric Perko <wisesage5001@gmail.com>
Cc: User discussions <ros-users@code.ros.org>
Subject: Re: [ros-users] Trouble connecting to SICK LMS 291 with
	sicktoolbox_wrapper
X-BeenThere: ros-users@code.ros.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: User discussions <ros-users@code.ros.org>
List-Id: User discussions <ros-users.code.ros.org>
List-Unsubscribe: <https://code.ros.org/mailman/listinfo/ros-users>,
	<mailto:ros-users-request@code.ros.org?subject=unsubscribe>
List-Archive: </lurker/list/ros-users.html>
List-Post: <mailto:ros-users@code.ros.org>
List-Help: <mailto:ros-users-request@code.ros.org?subject=help>
List-Subscribe: <https://code.ros.org/mailman/listinfo/ros-users>,
	<mailto:ros-users-request@code.ros.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============0867660164228538847=="
Mime-version: 1.0
Sender: ros-users-bounces@code.ros.org
Errors-To: ros-users-bounces@code.ros.org

--===============0867660164228538847==
Content-Type: multipart/alternative; boundary=0016364ee11cfc496d049ecd961d

--0016364ee11cfc496d049ecd961d
Content-Type: text/plain; charset=ISO-8859-1

To answer your question, the LIDAR is always powered. However, I was able to
narrow the problem down to Ubuntu. I figured out that the LIDAR worked on my
10.04 box, but failed on my 10.10 box. After downgrading the computer to
10.04, the LIDAR worked. I am still unsure of what was specifically causes
this problem, but I am now convinced it is unrelated to the
sicktoolbox_wrapper package.

-Ryan

On Thu, Mar 17, 2011 at 10:52 PM, Eric Perko <wisesage5001@gmail.com> wrote:

> Ryan,
>
> Are you running on a Pioneer (or other platform using either the SICK Laser
> Integration Board [1] or something like it that powers on the LIDAR only
> when a serial connection is attempted)?
>
> As far as this being a known bug, we've seen a number of people in the past
> have issues with the Sicktoolbox wrapper on systems where the LIDAR doesn't
> boot until a connection is opened, as the Sicktoolbox seems to be a bit...
> finicky... about this situation. If you'd like to see this problem fixed, I
> suggest you open a ticket (if there isn't one that already covers this
> problem) on the ros-pkg Trac against laser_drivers. That's the best way to
> make sure that this problem doesn't get forgotten about. However, I think we
> need a better solution than just always waiting for 30 seconds when the
> driver boots up (as Aravindhan's fix does), since people with always-on
> SICKs (my use case) shouldn't need to wait for the SICK to power up if it's
> already activated.
>
> If you do open a ticket, we can continue any further discussion regarding
> implementation there.
>
> - Eric
>
> [1] http://robots.mobilerobots.com/wiki/SICK_Laser_Integration_Board
> On Thu, Mar 17, 2011 at 5:57 PM, Ryan Miller <rmiller4589@gmail.com>wrote:
>
>> Hello,
>>
>> I am having trouble connecting to a SICK LMS 291. I did not have trouble
>> connecting to the device in cturtle, but I recently upgraded to diamondback
>> and am now having difficulties. It appears Aravindhan Krishnan found a
>> solution to this problem, and posted it on ROS answers [0]. However, I would
>> like to avoid using unstable packages. Is there a way to only install the
>> sicklms source without getting loads of other unstable dependencies?
>>
>> Also, is this a known bug? I could not find anything in the tracker, and
>> if Krishnan is right about this, it appears to be a serious problem. I have
>> pasted the output of `rosrun sicktoolbox_wrapper sicklms.` Please let me
>> know if there is a better solution than hacking the sicklms source.
>>
>> I set the baud rate to 38400 and the port to /dev/ttyS0. I know I am using
>> the correct serial port because when I remove the cable it hangs forever.
>> The permissions are also set correctly.
>> ------------- snip -------------
>> rmiller@obc:~$ ls -lah /dev/ttyS0
>> crw-rw-rw- 1 root dialout 4, 64 2011-03-17 17:36 /dev/ttyS0
>> rmiller@obc:~$ groups rmiller
>> rmiller : rmiller adm dialout cdrom plugdev lpadmin admin sambashare
>> ------------- snip -------------
>>
>> ------------- snip -------------
>> rmiller@obc:/opt/ros/diamondback/stacks/laser_drivers/sicktoolbox_wrapper$
>> rosrun sicktoolbox_wrapper sicklms
>>
>> *** Attempting to initialize the Sick LMS...
>> Attempting to open device @ /dev/ttyS0
>>  Device opened!
>> Attempting to start buffer monitor...
>> Buffer monitor started!
>>  Attempting to set requested baud rate...
>> A Timeout Occurred!  2 tries remaining
>> A Timeout Occurred!  1 tries remaining
>> A Timeout Occurred - SickLIDAR::_sendMessageAndGetReply: Attempted max
>> number of tries w/o success!
>>  Failed to set requested baud rate...
>> Attempting to detect LMS baud rate...
>>  Checking 19200bps...
>> A Timeout Occurred!  2 tries remaining
>> A Timeout Occurred!  1 tries remaining
>> A Timeout Occurred - SickLIDAR::_sendMessageAndGetReply: Attempted max
>> number of tries w/o success!
>>  Checking 38400bps...
>> ERROR: I/O exception - SickBufferMonitor::_readBytes: read() failed!
>> A Timeout Occurred!  2 tries remaining
>> ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!
>> ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!
>> ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!
>> ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!
>> SickLMS::_testBaudRate: Unknown exception!
>> ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!
>> ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!
>> [ERROR] [1300397794.610468157]: Initialize failed! are you using the
>> correct device path?
>> terminate called after throwing an instance of
>> 'SickToolbox::SickThreadException'
>> Aborted
>> ------------- snip -------------
>>
>> -Ryan
>>
>> [0] -
>> http://answers.ros.org/question/257/unable-to-get-data-from-sick-laser-on-pioneer
>>
>>
>> _______________________________________________
>> ros-users mailing list
>> ros-users@code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>>
>>
>

--0016364ee11cfc496d049ecd961d
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

To answer your question, the LIDAR is always powered. However, I was able t=
o narrow the problem down to Ubuntu. I figured out that the LIDAR worked on=
 my 10.04 box, but failed on my 10.10 box. After downgrading the computer t=
o 10.04, the LIDAR worked. I am still unsure of what was specifically cause=
s this problem, but I am now convinced it is unrelated to the sicktoolbox_w=
rapper package.<div>
<br></div><div>-Ryan<br><br><div class=3D"gmail_quote">On Thu, Mar 17, 2011=
 at 10:52 PM, Eric Perko <span dir=3D"ltr">&lt;<a href=3D"mailto:wisesage50=
01@gmail.com">wisesage5001@gmail.com</a>&gt;</span> wrote:<br><blockquote c=
lass=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;=
padding-left:1ex;">
Ryan,<div><br></div><div>Are you running on a Pioneer (or other platform us=
ing either the=A0SICK Laser Integration Board [1] or something like it that=
 powers on the LIDAR only when a serial connection is attempted)?</div>
<div><br></div><div>As far as this being a known bug, we&#39;ve seen a numb=
er of people in the past have issues with the Sicktoolbox wrapper on system=
s where the LIDAR doesn&#39;t boot until a connection is opened, as the Sic=
ktoolbox seems to be a bit... finicky... about this situation. If you&#39;d=
 like to see this problem fixed, I suggest you open a ticket (if there isn&=
#39;t one that already covers this problem) on the ros-pkg Trac against las=
er_drivers. That&#39;s the best way to make sure that this problem doesn&#3=
9;t get forgotten about. However, I think we need a better solution than ju=
st always waiting for 30 seconds when the driver boots up (as Aravindhan&#3=
9;s fix does), since people with always-on SICKs (my use case) shouldn&#39;=
t need to wait for the SICK to power up if it&#39;s already activated.</div=
>

<div><br></div><div>If you do open a ticket, we can continue any further di=
scussion regarding implementation there.</div><div><br></div><div>- Eric</d=
iv><div><br></div><div>[1]=A0<a href=3D"http://robots.mobilerobots.com/wiki=
/SICK_Laser_Integration_Board" target=3D"_blank">http://robots.mobilerobots=
.com/wiki/SICK_Laser_Integration_Board</a><br>

<div><div><div class=3D"gmail_quote"><div><div></div><div class=3D"h5">On T=
hu, Mar 17, 2011 at 5:57 PM, Ryan Miller <span dir=3D"ltr">&lt;<a href=3D"m=
ailto:rmiller4589@gmail.com" target=3D"_blank">rmiller4589@gmail.com</a>&gt=
;</span> wrote:<br>
</div></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex"><div><div></div><div class=3D"h5=
">
<div>Hello,</div><div><br></div><div>I am having trouble connecting to a SI=
CK LMS 291. I did not have trouble connecting to the device in cturtle, but=
 I recently upgraded to diamondback and am now having difficulties. It appe=
ars Aravindhan Krishnan found a solution to this problem, and posted it on =
ROS answers [0]. However, I would like to avoid using unstable packages. Is=
 there a way to only install the sicklms source without getting loads of ot=
her unstable dependencies?</div>


<div><br></div><div>Also, is this a known bug? I could not find anything in=
 the tracker, and if Krishnan is right about this, it appears to be a serio=
us problem. I have pasted the output of `rosrun sicktoolbox_wrapper sicklms=
.` Please let me know if there is a better solution than hacking the sicklm=
s source.</div>


<div><br></div><div>I set the baud rate to 38400 and the port to /dev/ttyS0=
. I know I am using the correct serial port because when I remove the cable=
 it hangs forever. The permissions are also set correctly.</div><div>------=
------- snip -------------</div>


<div>rmiller@obc:~$ ls -lah /dev/ttyS0</div><div>crw-rw-rw- 1 root dialout =
4, 64 2011-03-17 17:36 /dev/ttyS0</div><div>rmiller@obc:~$ groups rmiller</=
div><div>rmiller : rmiller adm dialout cdrom plugdev lpadmin admin sambasha=
re</div>


<div>------------- snip -------------</div><div><br></div><div>------------=
- snip -------------</div><div>rmiller@obc:/opt/ros/diamondback/stacks/lase=
r_drivers/sicktoolbox_wrapper$ rosrun sicktoolbox_wrapper sicklms=A0</div>


<div><br></div><div><span style=3D"white-space:pre-wrap">	</span>*** Attemp=
ting to initialize the Sick LMS...</div><div><span style=3D"white-space:pre=
-wrap">	</span>Attempting to open device @ /dev/ttyS0</div>
<div><span style=3D"white-space:pre-wrap">		</span>Device opened!</div><div=
><span style=3D"white-space:pre-wrap">	</span>Attempting to start buffer mo=
nitor...</div><div><span style=3D"white-space:pre-wrap">		</span>Buffer mon=
itor started!</div>


<div><span style=3D"white-space:pre-wrap">	</span>Attempting to set request=
ed baud rate...</div><div>A Timeout Occurred! =A02 tries remaining</div><di=
v>A Timeout Occurred! =A01 tries remaining</div><div>A Timeout Occurred - S=
ickLIDAR::_sendMessageAndGetReply: Attempted max number of tries w/o succes=
s!</div>


<div><span style=3D"white-space:pre-wrap">	</span>Failed to set requested b=
aud rate...</div><div><span style=3D"white-space:pre-wrap">	</span>Attempti=
ng to detect LMS baud rate...</div><div>
<span style=3D"white-space:pre-wrap">		</span>Checking 19200bps...</div><di=
v>A Timeout Occurred! =A02 tries remaining</div><div>A Timeout Occurred! =
=A01 tries remaining</div><div>A Timeout Occurred - SickLIDAR::_sendMessage=
AndGetReply: Attempted max number of tries w/o success!</div>


<div><span style=3D"white-space:pre-wrap">		</span>Checking 38400bps...</di=
v><div>ERROR: I/O exception - SickBufferMonitor::_readBytes: read() failed!=
</div><div>A Timeout Occurred! =A02 tries remaining</div>
<div>ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!</div><=
div>ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!</div><d=
iv>ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!</div>


<div>ERROR: I/O exception - SickLIDAR::_sendMessage: write() failed!</div><=
div>SickLMS::_testBaudRate: Unknown exception!</div><div>ERROR: I/O excepti=
on - SickLIDAR::_sendMessage: write() failed!</div><div>ERROR: I/O exceptio=
n - SickLIDAR::_sendMessage: write() failed!</div>


<div>[ERROR] [1300397794.610468157]: Initialize failed! are you using the c=
orrect device path?</div><div>terminate called after throwing an instance o=
f &#39;SickToolbox::SickThreadException&#39;</div><div>Aborted</div><div>


------------- snip -------------</div><div><br></div><div>-Ryan</div><div><=
br></div><div>[0] - <a href=3D"http://answers.ros.org/question/257/unable-t=
o-get-data-from-sick-laser-on-pioneer" target=3D"_blank">http://answers.ros=
.org/question/257/unable-to-get-data-from-sick-laser-on-pioneer</a></div>


<div><br></div>
<br></div></div>_______________________________________________<br>
ros-users mailing list<br>
<a href=3D"mailto:ros-users@code.ros.org" target=3D"_blank">ros-users@code.=
ros.org</a><br>
<a href=3D"https://code.ros.org/mailman/listinfo/ros-users" target=3D"_blan=
k">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br></div></div></div>
</blockquote></div><br></div>

--0016364ee11cfc496d049ecd961d--

--===============0867660164228538847==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
ros-users mailing list
ros-users@code.ros.org
https://code.ros.org/mailman/listinfo/ros-users

--===============0867660164228538847==--

