User Tools

Site Tools


software:tortugabot_ros2

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:tortugabot_ros2 [2025/04/03 09:06] – [Hokuyo Lidar] s_fuyedcsoftware:tortugabot_ros2 [2025/04/03 12:01] (current) – [Notes] s_fuyedc
Line 205: Line 205:
  
  
-=== Notes ===+===== Notes =====
  
 <code> <code>
Line 214: Line 214:
 sudo apt update sudo apt update
 sudo apt upgrade sudo apt upgrade
-sudo apt install vim +nano .bashrc
-vim .bashrc+
  
 # into .bashrc # into .bashrc
Line 229: Line 228:
 # Add user to dialout # Add user to dialout
 sudo adduser $USER dialout sudo adduser $USER dialout
 +sudo adduser $USER roscourse
 sudo adduser roscourse dialout sudo adduser roscourse dialout
  
Line 240: Line 240:
 ### ###
 </code> </code>
 +
 +Install ROS tools, init rosdep and give sudo user arthur access to roscourse files.
  
 <code> <code>
-Set up workspace on turtle+user: sudo 
 +sudo apt install ros-dev-tools ros-jazzy-topic-tools 
 +sudo rosdep init 
 +</code>
  
 +Set up workspace on turtle
 +
 +<code>
 +# user: roscourse 
 mkdir -p ~/tortugabot_ws/src mkdir -p ~/tortugabot_ws/src
 cd ~/tortugabot_ws/src cd ~/tortugabot_ws/src
 </code> </code>
  
-<code> +Get repositories
-# requires sudo user +
-sudo apt install ros-dev-tools +
-</code>+
  
 <code> <code>
-Get repositories+user: roscourse
 curl https://raw.githubusercontent.com/code-iai/tortugabot/refs/heads/ros2/tortugabot.repos > tortugabot.repos curl https://raw.githubusercontent.com/code-iai/tortugabot/refs/heads/ros2/tortugabot.repos > tortugabot.repos
-# Clone repositories 
 vcs import --recursive < tortugabot.repos vcs import --recursive < tortugabot.repos
 +rosdep update
 </code> </code>
  
 +Install dependencies
 <code> <code>
 # user: sudo # user: sudo
-# allow sudo user arthur to see roscourse directories +rosdep install -i --from-path /home/roscourse/tortugabot_ws/src --rosdistro jazzy
-sudo adduser arthur roscourse +
-# sudo +
-sudo rosdep init +
-rosdep update +
-rosdep install -i --from-path --rosdistro jazzy+
 </code> </code>
 +
 +Build the workspace and source the executables.
  
 <code> <code>
 # user: roscourse # user: roscourse
-# Build the workspace +cd ~/tortugabot_ws
-cd ..+
 colcon build colcon build
 source install/setup.bash source install/setup.bash
Line 290: Line 293:
 # laser # laser
 ros2 launch urg_node2 urg_node2.launch.py ros2 launch urg_node2 urg_node2.launch.py
 +
 +# Throttle laser frequency to 10 hz
 +ros2 run topic_tools throttle messages /scan 10.0
  
 # transform base_footprint < laser # transform base_footprint < laser
software/tortugabot_ros2.1743671166.txt.gz · Last modified: 2025/04/03 09:06 by s_fuyedc

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki