[ros-users] rosjava xmlRpcPort issue

Abhishek Verma toabhishekverma at gmail.com
Wed Jun 8 14:19:09 UTC 2011


Sorry Damon, My Mistake
NodeConfiguration has member xmlRpcPort which is 0 by default.
Its not set any where and is used to creare tcpRosBindAddress and passed to
SlaveServer as a parameter.(See internal node constructor)
SlaveServer is later using it to create TcpRosServer. and so on.

Thanks and Regards
Abhishek Verma


On Wed, Jun 8, 2011 at 3:02 PM, Damon Kohler <damonkohler at google.com> wrote:

> On Wed, Jun 8, 2011 at 3:56 PM, Abhishek Verma
> <toabhishekverma at gmail.com> wrote:
> > Hi Damon,
> > There are no errors.
>
> Ok.
>
> > Talker is publishing message but Listener is not getting it.
>
> Can you see the messages using rostopic echo? What about if you use
> roscore instead of the RosCore class in rosjava?
>
> > They are not in same channel I mean Listener and Talker cant reach each
> > other.
> > I suppose by giving same master uri, both should be able to communicate.
>
> Correct.
>
> > is xmlRpcPort is used in this communication?
>
> Which argument is it exactly you're asking about? I don't see it
> specified in your code snippet.
>
> In general, a port argument of 0 means that the OS should pick an
> available port to bind to.
>
> > Thanks and Regards
> > Abhishek Verma
> >
> >
> > On Wed, Jun 8, 2011 at 2:06 PM, Damon Kohler <damonkohler at google.com>
> wrote:
> >>
> >> Hi,
> >>
> >> Could you add some additional information?
> >>
> >> Are you getting any errors? How about stack traces?
> >>
> >> Thanks,
> >> Damon
> >>
> >> On Wed, Jun 8, 2011 at 2:59 PM, Abhishek Verma
> >> <toabhishekverma at gmail.com> wrote:
> >> > Hi Friends,
> >> > I am new to Ros an rosjava and tying to do something on my PC.
> >> > I am not sure its correct or not.
> >> > I am using rosjava on my Linux (ubuntu 10.4).
> >> > Currently I am trying to run rosjava alone. and trying to use Talker
> and
> >> > Listener example available in source.
> >> > I am starting Ros core and talker and listener by following commands
> >> > RosCore --
> >> > rosCore = new RosCore(11311);
> >> > nodeRunner = NodeRunner.createDefault();
> >> > nodeRunner.run(rosCore, Lists.newArrayList("RosCore",
> >> > "__master:=http://localhost:11311"));
> >> > Talker
> >> >  nodeRunner.run(new Talker(),Lists.newArrayList("talker",
> >> > "__ip:=127.0.0.1",
> >> > "__master:=http://localhost:11311"));
> >> > Listener
> >> >  nodeRunner.run(new Listener(),Lists.newArrayList("listener",
> >> > "__ip:=127.0.0.1", "__master:=http://localhost:11311"));
> >> > Publisher and subscriber are not able to communicate. AndI am trying
> to
> >> > understand why..
> >> > I found that value of xmlRpcPort is 0 and not changed anywhere.
> >> > Am I doing right thing by running rosjava alone?
> >> > Is xmlRpcPort port need to set? whats is it for? I suppose it might be
> >> > for
> >> > remote communication with RcpCore (or MasterServer)
> >> > in my case rosroot and ros package paths are empty...is that ok?
> >> > Thanks and Regards
> >> > Abhishek Verma
> >> >
> >> > _______________________________________________
> >> > ros-users mailing list
> >> > ros-users at code.ros.org
> >> > https://code.ros.org/mailman/listinfo/ros-users
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> ----------------------------------------------
> >> Damon Kohler
> >> Software Engineer
> >>
> >> Google Germany GmbH
> >> Dienerstr. 12
> >> 80331 München
> >> ----------------------------------------------
> >> AG Hamburg, HRB 86891
> >> Sitz der Gesellschaft: Hamburg
> >> Geschäftsführer: John Herlihy, Graham Law, Lloyd Martin, Kent Walker
> >> ----------------------------------------------
> >> Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat
> >> sind, leiten Sie diese bitte nicht weiter, informieren den Absender
> >> und löschen Sie die E-Mail und alle Anhänge. Vielen Dank.
> >>
> >> This email is confidential. If you are not the right addressee please
> >> do not forward it, please inform the sender, and please erase this
> >> e-mail including any attachments. Thanks.
> >> _______________________________________________
> >> ros-users mailing list
> >> ros-users at code.ros.org
> >> https://code.ros.org/mailman/listinfo/ros-users
> >
> >
> > _______________________________________________
> > ros-users mailing list
> > ros-users at code.ros.org
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> >
>
>
>
> --
> ----------------------------------------------
> Damon Kohler
> Software Engineer
>
> Google Germany GmbH
> Dienerstr. 12
> 80331 München
> ----------------------------------------------
> AG Hamburg, HRB 86891
> Sitz der Gesellschaft: Hamburg
> Geschäftsführer: John Herlihy, Graham Law, Lloyd Martin, Kent Walker
> ----------------------------------------------
> Diese E-Mail ist vertraulich. Wenn Sie nicht der richtige Adressat
> sind, leiten Sie diese bitte nicht weiter, informieren den Absender
> und löschen Sie die E-Mail und alle Anhänge. Vielen Dank.
>
> This email is confidential. If you are not the right addressee please
> do not forward it, please inform the sender, and please erase this
> e-mail including any attachments. Thanks.
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110608/9f926edd/attachment-0002.html>


More information about the ros-users mailing list