Visualizing rviz in another computer
Hi guys,
I am doing amcl on my robot and running rviz on another pc by using the publisher and listener method. But I am having a problem which I can't set estimated pose of my robot on the rviz. But I have no problem visualizing rviz on the pc of robot itself.
Fixed frame is set to /map.
Anyone face the same problem before? How do you solve it?
In rviz terminal:
[ INFO] [1389077566.411670728]: Setting pose: 10.008 -3.034 3.142 [frame=/map]
[ INFO] [1389077610.967860311]: Setting pose: 10.044 -3.009 3.142 [frame=/map]
[ INFO] [1389077693.039567267]: Setting pose: 10.044 -3.048 3.142 [frame=/map]
rostopic echo /initialpose:
WARNING: topic [/intialpose] does not appear to be published yet
rosnode ping amcl
rosnode: node is [/amcl]
pinging /amcl with a timeout of 3.0s
xmlrpc reply from http://192.168.2.23:60919/ time=35.322905ms
xmlrpc reply from http://192.168.2.23:60919/ time=61.383009ms
xmlrpc reply from http://192.168.2.23:60919/ time=17.130852ms
xmlrpc reply from http://192.168.2.23:60919/ time=8.926868ms
xmlrpc reply from http://192.168.2.23:60919/ time=34.075022ms
xmlrpc reply from http://192.168.2.23:60919/ time=122.500896ms
xmlrpc reply from http://192.168.2.23:60919/ time=297.618866ms
xmlrpc reply from http://192.168.2.23:60919/ time=98.872900ms
xmlrpc reply from http://192.168.2.23:60919/ time=44.198036ms
xmlrpc reply from http://192.168.2.23:60919/ time=26.680946ms
xmlrpc reply from http://192.168.2.23:60919/ time=21.116018ms
xmlrpc reply from http://192.168.2.23:60919/ time=15.140057ms
xmlrpc reply from http://192.168.2.23:60919/ time=24.788141ms
xmlrpc reply from http://192.168.2.23:60919/ time=14.788866ms
^Cping average: 58.753099ms
ping 192.168.18.25
PING 192.168.18.25 (192.168.18.25) 56(84) bytes of data.
^C
--- 192.168.18.25 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss, time 4032ms
I can see rostopic list and rosnode list.
Second trial
Finally can see rostopic echo initialpose, but pose in rviz still couldnt be moved. Rostopic echo amcl_pose give me the x,y,z of robot initial position of amcl preset parameters, fixed frame /map.
/initialpose
position:
x: 10.0245828629
y: -4.04667043686
z: 0.0
/amcl_pose
position:
x: 3.54064865611
y: -3.84750589878
z: 0.0
roswtf:
Asked by FuerteNewbie on 2014-01-06 16:31:17 UTC
Answers
Hello!
A quick comment first: you spelled "initialpose" incorrectly in the rostopic command, I assume you get the same result with the correct spelling?
This problem usually inicates a networking problem between the two nodes. I'd suggest setting ROS_IP to the IP address of the computer you're setting it on, for example with export ROS_IP=192.168.1.2
.
To test your network configuration, on the Rviz computer type rosnode ping amcl
, you should hope to get valid ping replies, but if not then your problem is definitely with your network setup. In that case you should try just a regular ping 192.168.1.xxx
on the rviz computer using the IP address of the robot computer and debug the network configuration from there. There's some good tutorials and troubleshooting at http://wiki.ros.org/ROS/NetworkSetup
Finally, the command roswtf (AKA ros where's the fire) can give you hints. If the above doesnt help could you edit your post with the output of roswtf?
-Tim
Asked by Tim Sweet on 2014-01-06 20:21:15 UTC
Comments
I have no problem doing ping, so this mean nothing wrong with my network setup. But I can't do roswtf somehow. Post updated.
Asked by FuerteNewbie on 2014-01-06 22:25:01 UTC
The regular ping did not work, so this is probably the issue. I see your nodes are on different subnets (192.168.2.x and 192.168.18.x), are you sure the two devices can communicate? Do you have firewalls in between subnets? And what about "rosnode ping rviz" from the robot computer?
Asked by Tim Sweet on 2014-01-07 05:21:41 UTC
Okay I have already make sure ping to robot and ping myself has no problem right now, rosnode ping amcl as well. I have updated my post.
Asked by FuerteNewbie on 2014-01-07 19:49:45 UTC
Why do this happen when i can see changes in initialpose but no change in rviz and amcl_pose? amcl is not updated to the pose ?
Asked by FuerteNewbie on 2014-01-07 20:35:41 UTC
Comments