-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Carter Frost edited this page Feb 28, 2021
·
8 revisions
Welcome to the SC2 wiki!
If you want to develop on the host mod this file docker/scripts/run_srcp2_final
### replace
--network $srcp2net_name \
--network-alias $simalias_name \
### with
--network="host" \
### and
--env=ROS_MASTER_URI="http://127.0.0.1:11311" \
reminder in finals we use catkin_make not build
alias ro='cd /pathToRepo/SC2 && catkin clean -y && source ./srcp2-competitors/ros_workspace/install/setup.bash && catkin build && source ./devel/setup.bash && echo Done'
catkin clean -y
source ./srcp2-competitors/ros_workspace/install/setup.bash
catkin build
source ./devel/setup.bash
roslaunch ./launch/scoot.launch "search:=searchRandomWalk" "mode:=manual"
#other term
ROS_NAMESPACE="/scout_1" rosrun scoot repl.py
Here is some stuff that may be useful
tail -f /tmp/srcp2/simulation/runtime.log ~/.ros/log/latest/*
source the stuff
source /opt/ros/noetic/setup.bash
source ./srcp2-competitors/ros_workspace/install/setup.bash
install
sudo apt-get install ros-noetic-teleop-twist-keyboard
run the simulation when it opens click the play button
./srcp2-competitors/docker/scripts/launch/roslaunch_docker --run-round 1
then run in another terminal and do the same sourcing
rosrun teleop_twist_keyboard teleop_twist_keyboard.py cmd_vel:=/scout_1/skid_cmd_vel
Also in the container take a look at /ros_workspace/install/lib/srcp2_qual_control/scripts/scripts I uploaded the zip to slack https://bclabunm.slack.com/files/URYCKNNGM/F014KNLBS56/dockerrosworkspaceinstall.zip