ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Subhash's profile - activity

2013-09-17 12:03:29 -0500 received badge  Famous Question (source)
2013-05-22 13:21:14 -0500 received badge  Notable Question (source)
2013-05-22 13:21:14 -0500 received badge  Popular Question (source)
2012-12-13 03:55:40 -0500 asked a question How to read message from ros::MessageEvent object

I am trying to extract content of the message from ros::MessageEvent object.

The parameter ros::MessageEvent<topic_tools::shapeshifter const=""> msg_event is passed to subscription callback function. We know the message type and definition. How can we extract the content of message from ShapeShifter object?

I am trying to do this. But I am stuck about how extract the information further. boost::shared_ptr<topic_tools::shapeshifter const=""> pose = msg_event.getMessage();

Thanks

2012-08-28 01:32:48 -0500 received badge  Notable Question (source)
2012-08-28 01:32:48 -0500 received badge  Famous Question (source)
2012-08-28 01:32:48 -0500 received badge  Popular Question (source)
2012-06-26 01:34:36 -0500 answered a question Ros topics over different computer

Thanks Lorenz, Ben. I changed ROS_HOSTNAME from localhost to 10.0.0.xx and it is working. Message published on remote laptop is received on turtlebot laptop. Also, in Eclipse, I added ROS_HOSTNAME environment variable, in order to run the program within Eclipse IDE.

2012-06-25 04:51:49 -0500 asked a question Ros topics over different computer

We have a turtlebot running ROS-Electric, and remote laptop also running ROS-Electric.

I was trying to publish message to rostopic /cmd_vel, in order to control velocity of turtlebot from remote laptop. However I noticed that, messages published in remote laptop is visible (via rostopic echo) only in remote laptop and not on turtlebot laptop. However I can read the data published by keyboard_teleop running turtlebot, on remote laptop. keyboard_teleop works when it is run on turtlebot laptop, and not on remote laptop. Why is this so? Here ROS_MASTER_URI has been properly configured to point turtlebot laptop.

I was expecting the communication to happen across multiple computer as ROS master is running on turtlebot, and takes care of the networking for ROS topics. Can anybody kindly explain how we can publish to a rostopic subscribed on another computer?

Thanks Subhash

2012-06-12 02:58:18 -0500 received badge  Supporter (source)