From: Richard V. <va...@sf...> - 2011-07-13 00:26:19
|
On Tue, Jul 12, 2011 at 2:48 PM, fdant <adr...@gm...> wrote: > > I can't change VEL_HEAD of the robot directly on the code that I'm working? No. the Stage plugin for Player supports these position commands: PLAYER_POSITION2D_CMD_POS PLAYER_POSITION2D_CMD_VEL PLAYER_POSITION2D_CMD_CAR PLAYER_POSITION2D_DATA_STATE PLAYER_POSITION2D_REQ_GET_GEOM PLAYER_POSITION2D_REQ_MOTOR_POWER PLAYER_POSITION2D_REQ_RESET_ODOM PLAYER_POSITION2D_REQ_SET_ODOM PLAYER_POSITION2D_REQ_POSITION_MODE As listed in the documentation for the plugin, which you can find here: http://rtv.github.com/Stage/group__player.html If you want to add support for more commands to the plugin, you can do so in <stage src>/libstageplugin/p_position.cc How's that for a definitive answer? Richard/ > > > Rich Mattes-2 wrote: >> >>> -----Original Message----- >>> From: fdant [mailto:adr...@gm...] >>> Sent: Monday, July 11, 2011 10:50 AM >>> To: pla...@li... >>> Subject: [Playerstage-users] Position2D SetVelHead() doesn't work on >>> player 3.0.2? >>> >>> >>> Hi, >>> >>> I'm trying to use this function, but it doesn't work. I send this >>> command: >>> >>> pp.SetVelHead(1, dtor(90)); >>> >>> and the robot don't move to any direction, and while the program is >>> running, >>> I receive this message: >>> >>> warn: stg_position doesn't support msg with type 2 subtype 4 >>> (/home/adrianodantas/Documents/Stage-3.2.2- >>> Source/libstageplugin/p_position.cc >>> ProcessMessage) >>> warning : Unhandled message for driver >>> device=16777343:6665:position2d:0 >>> type=command subtype=4 len=16 >>> >>> Thanks >> >> It's telling you that Stage doesn't support the velocity with heading >> command (PLAYER_POSITION2D_CMD_VEL_HEAD). Not all position2d drivers >> support all of the different commands, most implement only a subset. You >> can add support for it by modifying stageplugin's position2d code, or you >> can try using different commands. >> >> Rich >> >> >> ------------------------------------------------------------------------------ >> All of the data generated in your IT infrastructure is seriously valuable. >> Why? It contains a definitive record of application performance, security >> threats, fraudulent activity, and more. Splunk takes this data and makes >> sense of it. IT sense. And common sense. >> http://p.sf.net/sfu/splunk-d2d-c2 >> _______________________________________________ >> Playerstage-users mailing list >> Pla...@li... >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> >> > > -- > View this message in context: http://old.nabble.com/Position2D-SetVelHead%28%29-doesn%27t-work-on-player-3.0.2--tp32038136p32049528.html > Sent from the playerstage-users mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------------ > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |