-
Notifications
You must be signed in to change notification settings - Fork 28
Pool testing
Maxwell Lin edited this page Sep 2, 2023
·
4 revisions
A collection of frequently used commands during pool tests.
Launch our pool-test setup:
scripts/docker-pool-test.sh
NOTE: If the onboard and landside docker containers are already running, instead use
scripts/pool-test.sh
docker run -td --privileged --net=host -v /home/robot/robosub-ros:/root/dev/robosub-ros -v /dev:/dev dukerobotics/robosub-ros:onboard
NOTE: For joystick, landside must be running on the Linux laptop
docker run --privileged --net=host -td -p 2201:2201 -v ${PWD}:/root/dev/robosub-ros dukerobotics/robosub-ros:landside
hostname
nano etc/hosts
ping {hostname}
roslaunch offboard_comms serial.launch
rostopic pub -r 10 /offboard/thruster_speeds custom_msgs/ThrusterSpeeds '{speeds: [10,10,10,10,10,10,10,10]}'
NOTE: This must be done with serial.launch
instead of motion.launch
because motion.launch
launches
test_state_publisher.py
which also publishes to offboard/thruster_speeds
.
roslaunch execute motion.launch
rosservice call /enable_controls true
rosrun controls test_state_publisher.py
Start the raw joystick node on the landside computer by executing
roslaunch joystick_raw.launch
Start the joystick pulishing node on either computer by executing
roslaunch pub_joy.launch