DistanceView.html 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <!--NewPage-->
  3. <HTML>
  4. <HEAD>
  5. <!-- Generated by javadoc (build 1.6.0_20) on Thu Apr 26 18:24:30 CEST 2012 -->
  6. <TITLE>
  7. DistanceView
  8. </TITLE>
  9. <META NAME="date" CONTENT="2012-04-26">
  10. <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
  11. <SCRIPT type="text/javascript">
  12. function windowTitle()
  13. {
  14. if (location.href.indexOf('is-external=true') == -1) {
  15. parent.document.title="DistanceView";
  16. }
  17. }
  18. </SCRIPT>
  19. <NOSCRIPT>
  20. </NOSCRIPT>
  21. </HEAD>
  22. <BODY BGCOLOR="white" onload="windowTitle();">
  23. <HR>
  24. <!-- ========= START OF TOP NAVBAR ======= -->
  25. <A NAME="navbar_top"><!-- --></A>
  26. <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
  27. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  28. <TR>
  29. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  30. <A NAME="navbar_top_firstrow"><!-- --></A>
  31. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  32. <TR ALIGN="center" VALIGN="top">
  33. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  34. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  35. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  36. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  37. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  38. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  39. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  40. </TR>
  41. </TABLE>
  42. </TD>
  43. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  44. </EM>
  45. </TD>
  46. </TR>
  47. <TR>
  48. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  49. &nbsp;<A HREF="../../../../org/ros/android/view/CameraPreviewView.html" title="class in org.ros.android.view"><B>PREV CLASS</B></A>&nbsp;
  50. &nbsp;<A HREF="../../../../org/ros/android/view/PanTiltView.html" title="class in org.ros.android.view"><B>NEXT CLASS</B></A></FONT></TD>
  51. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  52. <A HREF="../../../../index.html?org/ros/android/view/DistanceView.html" target="_top"><B>FRAMES</B></A> &nbsp;
  53. &nbsp;<A HREF="DistanceView.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  54. &nbsp;<SCRIPT type="text/javascript">
  55. <!--
  56. if(window==top) {
  57. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  58. }
  59. //-->
  60. </SCRIPT>
  61. <NOSCRIPT>
  62. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  63. </NOSCRIPT>
  64. </FONT></TD>
  65. </TR>
  66. <TR>
  67. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  68. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  69. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  70. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  71. </TR>
  72. </TABLE>
  73. <A NAME="skip-navbar_top"></A>
  74. <!-- ========= END OF TOP NAVBAR ========= -->
  75. <HR>
  76. <!-- ======== START OF CLASS DATA ======== -->
  77. <H2>
  78. <FONT SIZE="-1">
  79. org.ros.android.view</FONT>
  80. <BR>
  81. Class DistanceView</H2>
  82. <PRE>
  83. java.lang.Object
  84. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by ">GLSurfaceView
  85. <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>org.ros.android.view.DistanceView</B>
  86. </PRE>
  87. <DL>
  88. <DT><B>All Implemented Interfaces:</B> <DD>org.ros.message.MessageListener&lt;sensor_msgs.LaserScan&gt;, org.ros.node.NodeListener, org.ros.node.NodeMain</DD>
  89. </DL>
  90. <HR>
  91. <DL>
  92. <DT><PRE>public class <B>DistanceView</B><DT>extends GLSurfaceView<DT>implements org.ros.node.NodeMain, org.ros.message.MessageListener&lt;sensor_msgs.LaserScan&gt;</DL>
  93. </PRE>
  94. <P>
  95. An OpenGL view that displayed data from a laser scanner (or similar sensors
  96. like a kinect). This view can zoom in/out based in one of three modes. The
  97. user can change the zoom level through a pinch/reverse-pinch, the zoom level
  98. can auto adjust based on the speed of the robot, and the zoom level can also
  99. auto adjust based on the distance to the closest object around the robot.
  100. <P>
  101. <P>
  102. <HR>
  103. <P>
  104. <!-- ======== CONSTRUCTOR SUMMARY ======== -->
  105. <A NAME="constructor_summary"><!-- --></A>
  106. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  107. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  108. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  109. <B>Constructor Summary</B></FONT></TH>
  110. </TR>
  111. <TR BGCOLOR="white" CLASS="TableRowColor">
  112. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#DistanceView(Context)">DistanceView</A></B>(Context&nbsp;context)</CODE>
  113. <BR>
  114. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Initialize the rendering surface.</TD>
  115. </TR>
  116. <TR BGCOLOR="white" CLASS="TableRowColor">
  117. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#DistanceView(Context, AttributeSet)">DistanceView</A></B>(Context&nbsp;context,
  118. AttributeSet&nbsp;attrs)</CODE>
  119. <BR>
  120. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  121. </TR>
  122. </TABLE>
  123. &nbsp;
  124. <!-- ========== METHOD SUMMARY =========== -->
  125. <A NAME="method_summary"><!-- --></A>
  126. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  127. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  128. <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
  129. <B>Method Summary</B></FONT></TH>
  130. </TR>
  131. <TR BGCOLOR="white" CLASS="TableRowColor">
  132. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  133. <CODE>&nbsp;void</CODE></FONT></TD>
  134. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#currentSpeed(double)">currentSpeed</A></B>(double&nbsp;speed)</CODE>
  135. <BR>
  136. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Updates the current speed in <A HREF="../../../../org/ros/android/view/DistanceView.html#distanceRenderer"><CODE>distanceRenderer</CODE></A> which then can
  137. adjust the zoom level in velocity mode.</TD>
  138. </TR>
  139. <TR BGCOLOR="white" CLASS="TableRowColor">
  140. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  141. <CODE>&nbsp;org.ros.namespace.GraphName</CODE></FONT></TD>
  142. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#getDefaultNodeName()">getDefaultNodeName</A></B>()</CODE>
  143. <BR>
  144. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  145. </TR>
  146. <TR BGCOLOR="white" CLASS="TableRowColor">
  147. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  148. <CODE>&nbsp;void</CODE></FONT></TD>
  149. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#lockZoom()">lockZoom</A></B>()</CODE>
  150. <BR>
  151. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Prevents changes to the zoom level.</TD>
  152. </TR>
  153. <TR BGCOLOR="white" CLASS="TableRowColor">
  154. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  155. <CODE>&nbsp;void</CODE></FONT></TD>
  156. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#onError(org.ros.node.Node, java.lang.Throwable)">onError</A></B>(org.ros.node.Node&nbsp;node,
  157. java.lang.Throwable&nbsp;throwable)</CODE>
  158. <BR>
  159. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  160. </TR>
  161. <TR BGCOLOR="white" CLASS="TableRowColor">
  162. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  163. <CODE>&nbsp;void</CODE></FONT></TD>
  164. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#onNewMessage(sensor_msgs.LaserScan)">onNewMessage</A></B>(sensor_msgs.LaserScan&nbsp;message)</CODE>
  165. <BR>
  166. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  167. </TR>
  168. <TR BGCOLOR="white" CLASS="TableRowColor">
  169. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  170. <CODE>&nbsp;void</CODE></FONT></TD>
  171. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#onShutdown(org.ros.node.Node)">onShutdown</A></B>(org.ros.node.Node&nbsp;node)</CODE>
  172. <BR>
  173. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  174. </TR>
  175. <TR BGCOLOR="white" CLASS="TableRowColor">
  176. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  177. <CODE>&nbsp;void</CODE></FONT></TD>
  178. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#onShutdownComplete(org.ros.node.Node)">onShutdownComplete</A></B>(org.ros.node.Node&nbsp;node)</CODE>
  179. <BR>
  180. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  181. </TR>
  182. <TR BGCOLOR="white" CLASS="TableRowColor">
  183. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  184. <CODE>&nbsp;void</CODE></FONT></TD>
  185. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#onStart(org.ros.node.ConnectedNode)">onStart</A></B>(org.ros.node.ConnectedNode&nbsp;connectedNode)</CODE>
  186. <BR>
  187. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  188. </TR>
  189. <TR BGCOLOR="white" CLASS="TableRowColor">
  190. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  191. <CODE>&nbsp;boolean</CODE></FONT></TD>
  192. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#onTouch(View, MotionEvent)">onTouch</A></B>(View&nbsp;v,
  193. MotionEvent&nbsp;event)</CODE>
  194. <BR>
  195. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
  196. </TR>
  197. <TR BGCOLOR="white" CLASS="TableRowColor">
  198. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  199. <CODE>&nbsp;void</CODE></FONT></TD>
  200. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#setTopicName(java.lang.String)">setTopicName</A></B>(java.lang.String&nbsp;topicName)</CODE>
  201. <BR>
  202. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the topic that the distance view node should subscribe to.</TD>
  203. </TR>
  204. <TR BGCOLOR="white" CLASS="TableRowColor">
  205. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  206. <CODE>&nbsp;void</CODE></FONT></TD>
  207. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#setZoomMode(org.ros.android.view.ZoomMode)">setZoomMode</A></B>(<A HREF="../../../../org/ros/android/view/ZoomMode.html" title="enum in org.ros.android.view">ZoomMode</A>&nbsp;mode)</CODE>
  208. <BR>
  209. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Sets the zoom mode to one of the modes in <A HREF="../../../../org/ros/android/view/ZoomMode.html" title="enum in org.ros.android.view"><CODE>ZoomMode</CODE></A>.</TD>
  210. </TR>
  211. <TR BGCOLOR="white" CLASS="TableRowColor">
  212. <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
  213. <CODE>&nbsp;void</CODE></FONT></TD>
  214. <TD><CODE><B><A HREF="../../../../org/ros/android/view/DistanceView.html#unlockZoom()">unlockZoom</A></B>()</CODE>
  215. <BR>
  216. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Unlocks the zoom allowing it to be changed.</TD>
  217. </TR>
  218. </TABLE>
  219. &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
  220. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  221. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  222. <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
  223. </TR>
  224. <TR BGCOLOR="white" CLASS="TableRowColor">
  225. <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
  226. </TR>
  227. </TABLE>
  228. &nbsp;<A NAME="methods_inherited_from_class_org.ros.message.MessageListener"><!-- --></A>
  229. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  230. <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
  231. <TH ALIGN="left"><B>Methods inherited from interface org.ros.message.MessageListener</B></TH>
  232. </TR>
  233. <TR BGCOLOR="white" CLASS="TableRowColor">
  234. <TD><CODE>onNewMessage</CODE></TD>
  235. </TR>
  236. </TABLE>
  237. &nbsp;
  238. <P>
  239. <!-- ========= CONSTRUCTOR DETAIL ======== -->
  240. <A NAME="constructor_detail"><!-- --></A>
  241. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  242. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  243. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  244. <B>Constructor Detail</B></FONT></TH>
  245. </TR>
  246. </TABLE>
  247. <A NAME="DistanceView(Context)"><!-- --></A><H3>
  248. DistanceView</H3>
  249. <PRE>
  250. public <B>DistanceView</B>(Context&nbsp;context)</PRE>
  251. <DL>
  252. <DD>Initialize the rendering surface.
  253. <P>
  254. <DL>
  255. <DT><B>Parameters:</B><DD><CODE>context</CODE> - </DL>
  256. </DL>
  257. <HR>
  258. <A NAME="DistanceView(Context, AttributeSet)"><!-- --></A><H3>
  259. DistanceView</H3>
  260. <PRE>
  261. public <B>DistanceView</B>(Context&nbsp;context,
  262. AttributeSet&nbsp;attrs)</PRE>
  263. <DL>
  264. </DL>
  265. <!-- ============ METHOD DETAIL ========== -->
  266. <A NAME="method_detail"><!-- --></A>
  267. <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
  268. <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
  269. <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
  270. <B>Method Detail</B></FONT></TH>
  271. </TR>
  272. </TABLE>
  273. <A NAME="setTopicName(java.lang.String)"><!-- --></A><H3>
  274. setTopicName</H3>
  275. <PRE>
  276. public void <B>setTopicName</B>(java.lang.String&nbsp;topicName)</PRE>
  277. <DL>
  278. <DD>Sets the topic that the distance view node should subscribe to.
  279. <P>
  280. <DD><DL>
  281. </DL>
  282. </DD>
  283. <DD><DL>
  284. <DT><B>Parameters:</B><DD><CODE>topicName</CODE> - Name of the ROS topic.</DL>
  285. </DD>
  286. </DL>
  287. <HR>
  288. <A NAME="getDefaultNodeName()"><!-- --></A><H3>
  289. getDefaultNodeName</H3>
  290. <PRE>
  291. public org.ros.namespace.GraphName <B>getDefaultNodeName</B>()</PRE>
  292. <DL>
  293. <DD><DL>
  294. <DT><B>Specified by:</B><DD><CODE>getDefaultNodeName</CODE> in interface <CODE>org.ros.node.NodeMain</CODE></DL>
  295. </DD>
  296. <DD><DL>
  297. </DL>
  298. </DD>
  299. </DL>
  300. <HR>
  301. <A NAME="onStart(org.ros.node.ConnectedNode)"><!-- --></A><H3>
  302. onStart</H3>
  303. <PRE>
  304. public void <B>onStart</B>(org.ros.node.ConnectedNode&nbsp;connectedNode)</PRE>
  305. <DL>
  306. <DD><DL>
  307. <DT><B>Specified by:</B><DD><CODE>onStart</CODE> in interface <CODE>org.ros.node.NodeListener</CODE></DL>
  308. </DD>
  309. <DD><DL>
  310. </DL>
  311. </DD>
  312. </DL>
  313. <HR>
  314. <A NAME="onShutdown(org.ros.node.Node)"><!-- --></A><H3>
  315. onShutdown</H3>
  316. <PRE>
  317. public void <B>onShutdown</B>(org.ros.node.Node&nbsp;node)</PRE>
  318. <DL>
  319. <DD><DL>
  320. <DT><B>Specified by:</B><DD><CODE>onShutdown</CODE> in interface <CODE>org.ros.node.NodeListener</CODE></DL>
  321. </DD>
  322. <DD><DL>
  323. </DL>
  324. </DD>
  325. </DL>
  326. <HR>
  327. <A NAME="onShutdownComplete(org.ros.node.Node)"><!-- --></A><H3>
  328. onShutdownComplete</H3>
  329. <PRE>
  330. public void <B>onShutdownComplete</B>(org.ros.node.Node&nbsp;node)</PRE>
  331. <DL>
  332. <DD><DL>
  333. <DT><B>Specified by:</B><DD><CODE>onShutdownComplete</CODE> in interface <CODE>org.ros.node.NodeListener</CODE></DL>
  334. </DD>
  335. <DD><DL>
  336. </DL>
  337. </DD>
  338. </DL>
  339. <HR>
  340. <A NAME="onError(org.ros.node.Node, java.lang.Throwable)"><!-- --></A><H3>
  341. onError</H3>
  342. <PRE>
  343. public void <B>onError</B>(org.ros.node.Node&nbsp;node,
  344. java.lang.Throwable&nbsp;throwable)</PRE>
  345. <DL>
  346. <DD><DL>
  347. <DT><B>Specified by:</B><DD><CODE>onError</CODE> in interface <CODE>org.ros.node.NodeListener</CODE></DL>
  348. </DD>
  349. <DD><DL>
  350. </DL>
  351. </DD>
  352. </DL>
  353. <HR>
  354. <A NAME="onNewMessage(sensor_msgs.LaserScan)"><!-- --></A><H3>
  355. onNewMessage</H3>
  356. <PRE>
  357. public void <B>onNewMessage</B>(sensor_msgs.LaserScan&nbsp;message)</PRE>
  358. <DL>
  359. <DD><DL>
  360. </DL>
  361. </DD>
  362. <DD><DL>
  363. </DL>
  364. </DD>
  365. </DL>
  366. <HR>
  367. <A NAME="setZoomMode(org.ros.android.view.ZoomMode)"><!-- --></A><H3>
  368. setZoomMode</H3>
  369. <PRE>
  370. public void <B>setZoomMode</B>(<A HREF="../../../../org/ros/android/view/ZoomMode.html" title="enum in org.ros.android.view">ZoomMode</A>&nbsp;mode)</PRE>
  371. <DL>
  372. <DD>Sets the zoom mode to one of the modes in <A HREF="../../../../org/ros/android/view/ZoomMode.html" title="enum in org.ros.android.view"><CODE>ZoomMode</CODE></A>.
  373. <P>
  374. <DD><DL>
  375. </DL>
  376. </DD>
  377. <DD><DL>
  378. <DT><B>Parameters:</B><DD><CODE>mode</CODE> - The zoom mode that must be set.</DL>
  379. </DD>
  380. </DL>
  381. <HR>
  382. <A NAME="lockZoom()"><!-- --></A><H3>
  383. lockZoom</H3>
  384. <PRE>
  385. public void <B>lockZoom</B>()</PRE>
  386. <DL>
  387. <DD>Prevents changes to the zoom level.
  388. <P>
  389. <DD><DL>
  390. </DL>
  391. </DD>
  392. <DD><DL>
  393. </DL>
  394. </DD>
  395. </DL>
  396. <HR>
  397. <A NAME="unlockZoom()"><!-- --></A><H3>
  398. unlockZoom</H3>
  399. <PRE>
  400. public void <B>unlockZoom</B>()</PRE>
  401. <DL>
  402. <DD>Unlocks the zoom allowing it to be changed.
  403. <P>
  404. <DD><DL>
  405. </DL>
  406. </DD>
  407. <DD><DL>
  408. </DL>
  409. </DD>
  410. </DL>
  411. <HR>
  412. <A NAME="currentSpeed(double)"><!-- --></A><H3>
  413. currentSpeed</H3>
  414. <PRE>
  415. public void <B>currentSpeed</B>(double&nbsp;speed)</PRE>
  416. <DL>
  417. <DD>Updates the current speed in <A HREF="../../../../org/ros/android/view/DistanceView.html#distanceRenderer"><CODE>distanceRenderer</CODE></A> which then can
  418. adjust the zoom level in velocity mode.
  419. <P>
  420. <DD><DL>
  421. </DL>
  422. </DD>
  423. <DD><DL>
  424. <DT><B>Parameters:</B><DD><CODE>speed</CODE> - The linear velocity of the robot.</DL>
  425. </DD>
  426. </DL>
  427. <HR>
  428. <A NAME="onTouch(View, MotionEvent)"><!-- --></A><H3>
  429. onTouch</H3>
  430. <PRE>
  431. public boolean <B>onTouch</B>(View&nbsp;v,
  432. MotionEvent&nbsp;event)</PRE>
  433. <DL>
  434. <DD><DL>
  435. </DL>
  436. </DD>
  437. <DD><DL>
  438. </DL>
  439. </DD>
  440. </DL>
  441. <!-- ========= END OF CLASS DATA ========= -->
  442. <HR>
  443. <!-- ======= START OF BOTTOM NAVBAR ====== -->
  444. <A NAME="navbar_bottom"><!-- --></A>
  445. <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
  446. <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
  447. <TR>
  448. <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
  449. <A NAME="navbar_bottom_firstrow"><!-- --></A>
  450. <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
  451. <TR ALIGN="center" VALIGN="top">
  452. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
  453. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  454. <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  455. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  456. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  457. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  458. <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  459. </TR>
  460. </TABLE>
  461. </TD>
  462. <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
  463. </EM>
  464. </TD>
  465. </TR>
  466. <TR>
  467. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  468. &nbsp;<A HREF="../../../../org/ros/android/view/CameraPreviewView.html" title="class in org.ros.android.view"><B>PREV CLASS</B></A>&nbsp;
  469. &nbsp;<A HREF="../../../../org/ros/android/view/PanTiltView.html" title="class in org.ros.android.view"><B>NEXT CLASS</B></A></FONT></TD>
  470. <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  471. <A HREF="../../../../index.html?org/ros/android/view/DistanceView.html" target="_top"><B>FRAMES</B></A> &nbsp;
  472. &nbsp;<A HREF="DistanceView.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
  473. &nbsp;<SCRIPT type="text/javascript">
  474. <!--
  475. if(window==top) {
  476. document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
  477. }
  478. //-->
  479. </SCRIPT>
  480. <NOSCRIPT>
  481. <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>
  482. </NOSCRIPT>
  483. </FONT></TD>
  484. </TR>
  485. <TR>
  486. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  487. SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
  488. <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  489. DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
  490. </TR>
  491. </TABLE>
  492. <A NAME="skip-navbar_bottom"></A>
  493. <!-- ======== END OF BOTTOM NAVBAR ======= -->
  494. <HR>
  495. </BODY>
  496. </HTML>