-
Notifications
You must be signed in to change notification settings - Fork 1
Networking
Bahrami edited this page May 29, 2023
·
6 revisions
ToDo
-
If you're connected to VOXL with Wi-Fi over a LAN, you should be able to ping to the VOXL's IP from your PC and vice versa (i.e. ping to your PC's IP from the VOXL)
-
setup ROS on the host PC and on the VOXL by updating
my_ros_env.shlocated in/home/rootinside VOXL. your PC's static IP (defined on the router) should be used for theROS_MASTER_IP, and 'ROS_IP' for each platform would be its IP on the router. Then,roscoreon the PC will make every rostopic available for all robots.
At this stage, if roscore is running in the host PC, rostopic list should show the available topics in the VOXL, and vice versa. It's a bi-directional connection. To test,
# in a terminal in the host pc
$ rostopic pub -r 10 /cmd_vel geometry_msgs/Twist '{linear: {x: 1.0, y: 2.0, z: 3.0}, angular: {x: 3.0,y: 2.0,z: 01.0}}'
# inside VOXL
voxl:~$ rostopic list
/cmd_vel
/rosout
/rosout_agg
voxl:~$ rostopic echo /cmd_vel
linear:
x: 1.0
y: 2.0
z: 3.0
angular:
x: 3.0
y: 2.0
z: 1.0
---
the test should also work the other way around i.e. from VOXL to the host PC.