-
Notifications
You must be signed in to change notification settings - Fork 2
Network

Please make sure you have followed the Installation page on Setup .bashrc for multimachine, connected ethernet to the router, and have roscore running on the main computer.
in .bashrc make sure to have the following:
export ROS_MASTER_URI=http://192.168.1.100:11311/
export ROS_IP=192.168.1.100
Then, connect the main computer to the router via Ethernet and run roscore.
Remember to run
roscoreon the main computer after everything is connected.
Please make sure you have followed the InstallingRaspberryPi page and have setup the CAN hat for RPI.
Here, we use the Raspberry Pi as a node/interface between the SPI-linked CANBUS via the MCP2515 hat with ROS over ethernet. Other connections for converting ROS messages to CANBUS interfaces can also be used.
in .bashrc on the raspberry pi, make sure to have the following:
export ROS_MASTER_URI=http://192.168.1.100:11311/
export ROS_IP=192.168.1.102
Connect the Ethernet cables for the RPI and the main computer to the router. The router should automatically allocate the IP for each device accordingly.
Please ensure the router IP is also in the same domain of 192.168.1.xxx, ideally 192.168.1.1 should be the router's IP
Run rostopic list or rostopic echo \TEST_TOPIC_PUBLISHER from the raspberry pi terminal to check if the ROS network has successfully connected.
Do not start a second roscore on the raspberry pi
For further information, please check Running ROS across multiple machines
Please make sure you have followed the ArmModuleFirmware page and configured the arms correctly.
The arms are controlled by ESP32 dev modules, which can be connected to ROS on the main computer via USB with an optional WIFI connection currently unsupported.
To begin serial communication for both arms, use the following roslaunch command
roslaunch polhemus_glove serial_node_both.launch
or alternatively, use the rosserial module with a specific port
rosrun rosserial_python serial_node.py /dev/ttyUSB0
Useful command to check connected USB ports and connection with the cp210x chip on the ESP32 dev boards
dmesg | grep tty
lsusb
sudo modprobe cp210x
WIP