- Clone from github:
git clone [email protected]:Dksoren14/lab_boys.git
- Setup workspace:
cd lab_boys
colcon build
Remember that master is only for code we are completely sure works. When working on code, always push to development first, then when we are sure this works as intendet we merge with master.
- Check for development branch:
git branch -a
If the output is:
* master
remotes/origin/master
remotes/origin/development
remotes/origin/master
Move on to step 4, else contact nearest adult.
- Switch to development branch:
git switch development
Testing without the use of the control system
ros2 topic pub /model/r100/cmd_vel geometry_msgs/msg/Twist \
"{linear: {x: 0.5}, angular: {z: 0.0}}"
This opens Gazebo with a simulated environment of the lab, with the R100(Ridgeback)
- Build workspace (If the code has changed):
colcon build
- Source ros:
source install/setup.bash
- Use the launch script, to launch gazebo and rviz2:
ros2 launch claus_gazebo claus_sim.launch.py rviz:=true gui:=true lab_base:=true
- Manually moving the robot
In another terminal write, then tap on the original terminal to make the robot move using WASD
ros2 action send_goal /lab_base/chassis/base_command interfaces/action/BaseCommand "{command: 'manual', target_pose: [1.0, 1.0, 0.0]}"
- Save the map
In a new terminal. {mapname} is just a placeholder for the name of the file. This should just be changed when saving the map to "laboratory" fx.
ros2 run nav2_map_server map_saver_cli -f ~/lab_boys/src/claus_sim/claus_gazebo/maps/{mapname}
cd setup
chmod +x setup.sh
./setup.sh
tilføj sudo apt update
sudo apt install ros-${ROS_DISTRO}-unique-identifier-msgs
pip3 install --user pyrealsense2 --break-system-packages :: Den skal hjælpe med cam uden at skal lave virtuel environment
sudo apt install ros-jazzy-pcl-ros
To get simulation cam to intiate and work use command:
ros2 run aruco_sensor sim_aruco_node
Stop command:
ros2 action send_goal /lab_base/chassis/base_command interfaces/action/BaseCommand "{command: 'stop', target_pose: []}"