Giỏ hàng
Danh mục sản phẩm

Lập trình robot,robocon

Cài Đặt ROS Arduino Unbutu 18.04
Cài Đặt ROS Arduino Unbutu 18.04Ros:MelodicB1:Cài đặt pack sudo apt-get install ros-melodic-rosserial-arduinosudo apt-get install ros-melodic-rosserialB2:Đến thư mục thư viện Arduinocd [arduino_path]/librariess rm -rf ros_librosrun rosserial_arduino make_libraries.py . Chạy Arduino khởi động lại Nếu cổng USB Chưa phân quyền thì phân quyền cho cổng USBsudo chmod 666 /dev/ttyUSB1Tiếp tục đến thư mục ros_lib#include <ros.h> #include <std_msgs/String.h> ros::NodeHandle nh; std_msgs::String str_msg; ros::Publisher chatter("chatter", &str_msg); char hello[13] = "hello world!"; void setup() { nh.initNode(); nh.advertise(chatter); } void loop() { str_msg.data = hello; chatter.publish( &str_msg ); nh.spinOnce(); delay(1000); }# 1st terminal $...
Cài đặt Arduino Unbutu 18.04
Đầu tiên các bạn tải Arduino mới nhất Linux 32bit hoặc 64 bit Đến thư mục tải về giải nén Extract toTiếp tục đến thư mục Có file install.shDùng Lệnh  cd arduino-1.8.19/ có thể dùng cd arduino-1.8.19/  ls Liệt kê tất cả thử mục Tiếp theo:cd arduino-1.8.19/ sudo ./install.shSau khi mở Arduino Viết chương trình nháy led đơn giản Để nạp chương trình cần phân quyền cho Cổng USB  sudo chmod 666 /dev/ttyusb0Như vậy các bạn có thể...
Cài đặt ROS Melodic & Ubuntu 18.04
Để thêm repo ROS Melodic, hãy chạy lệnh sausudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu bionic main" > /etc/apt/sources.list.d/ros-melodic.list'B2:Thêm key cho ROSsudo apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654B3:cập nhật sudo apt updateB4:Cài đặt gói ROSsudo apt install ros-melodic-desktop-fullChọn Y để tiếp tục.Các gói phụ :sudo apt install ros-melodic-desktopsudo apt install ros-melodic-basesudo apt install ros-melodic-coreThiết lập môi trường cài đặtecho "source /opt/ros/melodic/setup.bash" >> ~/.bashrcsource ~/.bashrcChạy lệnh kiểm tra hoạt động :tail ~/.bashrcTiếp theo...
Cài đặt ROS AGV (Kinetic on Ubuntu 16.04)
Các bạn cài đặt sẵn Unbutu 16.04 (Kinetic on Ubuntu 16.04)Cài đặt B1: sudo apt install curl # if you haven't already installed curl curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -B3:Cài đặt :sudo apt-get updateDesktop-Full Install: (Recommended) : ROS, rqt, rviz, robot-generic libraries, 2D/3D simulators, navigation and 2D/3D perception sudo apt-get install ros-kinetic-desktop-fullDesktop Install: ROS, rqt, rviz, and robot-generic librariessudo apt-get install ros-kinetic-desktopor click hereROS-Base: (Bare Bones) ROS package, build, and communication libraries. No GUI tools.sudo apt-get install ros-kinetic-ros-baseor click hereIndividual...