Asctec Pelican Basics - Basic WiFi Communication Setup Part 2
Asctec Pelican Basics - Basic WiFi Communication Setup Part 2
More NextBlog
AsctecPelicanBasics
jueves,4dejuliode2013
BasicWiFicommunicationsetuppart2
Thisisacontinuationfromthepreviouspost:http://asctecbasics.blogspot.com/2013/06/basicwifi
communicationsetuppart1.html
TestingeverythingisOK
Archivodelblog
2013(3)
julio(2)
CommunicatingwiththeLLPvia
XBee
BasicWiFicommunicationsetup
part2
junio(1)
First,let'scheckthepreviousstepsareOK.Let'sassumeyouassigned192.168.0.15toyour
computerand192.168.0.16toyourquad.
Fromyourcomputeryoushouldbeabletopingyourquad,runinaterminal:
Datospersonales
Pino
ping 192.168.0.16
ThesameshouldworkfromyourquadtoyourcomputerchangingtheIPaddresscorrespondingly.
SettingupSSH
Thispartisbasedontheinstructionsfoundhere:
http://teamprincipia.wordpress.com/2008/05/29/beginningsshonubuntu/
YouneedtoinstallSSHclientandserveronbothmachines(clientusuallycomeswithUbuntubut
checkingisalwaysgood):
MappingIPaddressestohostnames
Thispartisbasedoninformationfoundhere:http://nootrix.com/2012/06/rosnetworking/
TheideaistoassociatetheIPaddresstoaname,soitisn'tnecessarytowritetheIPaddress
everytimeyouwishtologinthroughSSH.
Todothis,firsteditthe/etc/hostsfilesonthecomputerbeingusedasgroundstation(assuming
youareusingthesameIPsmentionedbefore):
Thenaddthefollowinglineattheendofthefile:
192.168.0.16 quad
Dothesameonthequadrotor,addingthislineinstead:
192.168.0.15 groundstation
Nowyoushouldbeabletoopenaterminalonthecomputerandpingthequadrotorusingthe
followingcommand:
ping quad
Thisshouldhaveasimilarresultasdoingapingfromthequadrotorfromthecomputer.Checkboth
pingsarepossibletobesureeverythingisok.
RunningROS
Aftersettingupsshandmappingthenames,youshouldbeabletorunROSonthequadrotorusing
commandsfromthegroundstation,andstartnodesonthegroundstationtocommunicatewiththe
Vertodomiperfil
quadrotor.
Tocheckthiswewillrunalistenernodeonthequadrotorandtrytocommunicatetoitfromthe
computer.
Youshouldchooseifthegroundstationorthequadrotorwillruntheroscoreservice.Inthiscasethe
quadrotorwillberunningroscore.
Todothis,fromthegroundstationcomputerlogintothequadrotor.Assumingtheusernameonthe
quadrotoris"user",openaterminalonyourcomputerandtype:
ssh user@quad
Yourpasswordwillberequiredforthis.Typeitandnowyoushouldhaveaterminalloggedintothe
quadrotor.Inthisterminaltype:
roscore
Nowrepeatthisprocess,openninganewterminalandloggingintothequadrotorandstartalistener
nodeonittyping:
Nowyoushouldsetupthegroundstation.Openanewterminalonyourcomputerandtype:
export ROS_MASTER_URI=http://quad:11311
rosrun rospy_tutorials talker.py
Nowyoushouldseetheansweronthelistenerterminal,showingthecommunicationisworking
betweenboth.
What'snext?
Noweverythingissetup,youshouldtrytoruntheasctec_mav_frameworkpackageonthe
quadrotorandcommunicatetoitfromthegroundstation.
PublicadoporPinoen10:28
Recomendar esto en Google
Nohaycomentarios:
Publicaruncomentarioenlaentrada
Introduce tu comentario...
Comentarcomo:
Publicar
AhmedKhalifa(Google)
Vistaprevia
Salir
Avisarme
Entradamsreciente
Pginaprincipal
Entradaantigua
Suscribirsea:Enviarcomentarios(Atom)
PlantillaAwesomeInc..ConlatecnologadeBlogger.