Gazebo | Ignition | Community
Ask Your Question
2

Setting up a TCP server on gazebo ::Unable to use the gazebo::transport::Conection::listen() function

asked 2014-12-09 12:38:11 -0500

Mohnish gravatar image

updated 2014-12-09 12:39:52 -0500

I am a beginner on gazebo I am trying to figure out how to use the gazebo::transport::Connection::Listen() function

Im unable to understand how to write the accept callback function I would be grateful if any one could post an example or guide me on how to write the accept callback function What ive written so far is : //In the load function transport::ConnectionPtr IMUcomm; IMUcomm = transport::ConnectionPtr(new transport::Connection); IMUcomm->Listen(30000,acceptME);

//Outside the load but in the gazebo namespace void acceptME(const transport::ConnectionPtr& comm) {}

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-12-11 13:08:05 -0500

nkoenig gravatar image

Gazebo's Connection class is fairly low level, and not intended for direct use outside of Gazebo.

Here are some tutorials on using Gazebo's transport mechanisms.

There is also publisher example code, and subscriber example code

edit flag offensive delete link more

Comments

Then what do you suggest I should use to communicate with a program that is running the mission control code (Written in java) via TCP/IP

Mohnish gravatar imageMohnish ( 2014-12-12 04:49:26 -0500 )edit
1

I believe zeromq has a java interface.

nkoenig gravatar imagenkoenig ( 2014-12-16 10:33:26 -0500 )edit

Question Tools

Stats

Asked: 2014-12-09 12:38:11 -0500

Seen: 792 times

Last updated: Dec 11 '14