Baxter images examples
Next:
Setup ros_baxter_py2 and ros_baxter_py3 (source devel for control)
futurize or https://docs.python.org/3/library/2to3.html
Calibrate
Manually try to repeat lego experiment
Most likely wooden bricks
41conda deactivate
2./baxter.sh sim
3roslaunch baxter_gazebo baxter_world.launch
4
621TEMP_DEB="$(mktemp)" && wget -O "$TEMP_DEB" 'http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-msgs/ros-kinetic-gazebo-msgs_2.5.21-1xenial-20210503-112644-0800_amd64.deb' && sudo dpkg -i "$TEMP_DEB" && rm -f "$TEMP_DEB"
2
3
4TEMP_DEB="$(mktemp)" && wget -O "$TEMP_DEB" 'http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-ros-pkgs/ros-kinetic-gazebo-ros-pkgs_2.5.21-1xenial-20210503-155039-0800_amd64.deb' && sudo dpkg -i "$TEMP_DEB" && rm -f "$TEMP_DEB"
5
6
7TEMP_DEB="$(mktemp)" && wget -O "$TEMP_DEB" 'http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-ros/ros-kinetic-gazebo-ros_2.5.21-1xenial-20210503-130736-0800_amd64.deb' && sudo dpkg -i "$TEMP_DEB" && rm -f "$TEMP_DEB"
8
9TEMP_DEB="$(mktemp)" && wget -O "$TEMP_DEB" 'http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-plugins/ros-kinetic-gazebo-plugins_2.5.21-1xenial-20210503-130101-0800_amd64.deb' && sudo dpkg -i "$TEMP_DEB" && rm -f "$TEMP_DEB"
10
11TEMP_DEB="$(mktemp)" && wget -O "$TEMP_DEB" 'http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-dev/ros-kinetic-gazebo-dev_2.5.21-1xenial-20210405-102417-0800_amd64.deb' && sudo dpkg -i "$TEMP_DEB" && rm -f "$TEMP_DEB"
12
13
14
15TEMP_DEB="$(mktemp)" && wget -O "$TEMP_DEB" 'http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-effort-controllers/ros-kinetic-effort-controllers_0.13.6-1xenial-20210503-115251-0800_amd64.deb' && sudo dpkg -i "$TEMP_DEB" && rm -f "$TEMP_DEB"
16
17
1804 Not Found [IP: 64.50.236.52 80]
19Err:2 http://packages.ros.org/ros/ubuntu xenial/main amd64 ros-kinetic-effort-controllers amd64 0.13.4-0xenial-20180809-161302-0800
20404 Not Found [IP: 64.50.236.52 80]
21E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-forward-command-controller/ros-kinetic-forward-command-controller_0.13.4-0xenial-20180809-154640-0800_amd64.deb 404 Not Found [IP: 64.50.236.52 80]
22
23E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-effort-controllers/ros-kinetic-effort-controllers_0.13.4-0xenial-20180809-161302-0800_amd64.deb 404 Not Found [IP: 64.50.236.52 80]
24
25E: Unable to fetch some archives, maybe run
26E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-combined-robot-hw-tests/ros-kinetic-combined-robot-hw-tests_0.13.3-0xenial-20180809-161649-0800_amd64.deb 404 Not Found [IP: 64.50.236.52 80]
27
28E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-ros-control/ros-kinetic-ros-control_0.13.3-0xenial-20180809-162855-0800_amd64.deb 404 Not Found [IP: 64.50.236.52 80]
29
30E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
31
32
33
34-0-
35
36
37E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-dev
38
39E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-msgs
40
41E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-plugins
42
43E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-ros
44
45E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-ros-pkgs
46
47http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-realtime-tools/ros-kinetic-realtime-tools_1.11.0-0xenial-20180809-150023-0800_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
48
49E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-control-toolbox/ros-kinetic-control-toolbox_1.16.0-0xenial-20180809-160731-0800_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
50
51E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-hardware-interface/ros-kinetic-hardware-interface_0.13.3-0xenial-20180809-153122-0800_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
52
53E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-controller-interface/ros-kinetic-controller-interface_0.13.3-0xenial-20180809-153814-0800_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
54
55E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-controller-manager/ros-kinetic-controller-manager_0.13.3-0xenial-20180809-154656-0800_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
56
57E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-joint-limits-interface/ros-kinetic-joint-limits-interface_0.13.3-0xenial-20180809-154056-0800_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
58
59E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-transmission-interface/ros-kinetic-transmission-interface_0.13.3-0xenial-20180809-153821-0800_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
60
61E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/ros-kinetic-gazebo-ros-control/ros-kinetic-gazebo-ros-control_2.5.17-0xenial-20180809-193902-0800_amd64.deb 404 Not Found [IP: 64.50.233.100 80]
62
DHCP reset / renew
11sudo dhclient
Python3 adaption
41try:
2from builtins import object
3except ImportError:
4from __builtin__ import object
11micromamba env create -v -y -f ./environment.yml
51sudo apt-get install python3-catkin-pkg-modules
2
3mkdir -p ~/catkin_ws_py3/src
4cd ~/catkin_ws_py3/src
5catkin_init_workspace
11rosrun baxter_examples joint_position_keyboard.py
Head wobble
11rosrun baxter_examples head_wobbler.py
Laba grāmata: https://sceweb.sce.uhcl.edu/harman/CENG5437_MobileRobots/Webitems2020/ROS_ROBOTICS_BY_EXAMPLE_SECOND_EDITION.pdf
xxxxxxxxxx
21rosrun baxter_tools tuck_arms.py -u
2rosrun baxter_tools tuck_arms.py -t # aiz muguras
xxxxxxxxxx
11rosrun baxter_examples joint_recorder.py -f test.rec
IR range sensors uz rokām
Disable head sonar sensors (Sonar control - https://web.archive.org/web/20220930161154/https://sdk.rethinkrobotics.com/wiki/Sonar_Control)
xxxxxxxxxx
11rostopic pub /robot/sonar/head_sonar/set_sonars_enabled std_msgs/UInt16 0
Main wiki: https://web.archive.org/web/20230610211612/https://sdk.rethinkrobotics.com/wiki/Home
https://www.youtube.com/watch?v=qihq2jT-fAI
xxxxxxxxxx
61rosrun baxter_interface joint_trajectory_action_server.py
2
3roslaunch baxter_t_config demo_baxter.launch
4
5
6sudo apt install ros-kinetic-moveit
https://www.youtube.com/watch?v=Y3uAe0fKEVM
xxxxxxxxxx
81rosrun baxter_examples joint_recorder.py -h
2
3rosrun baxter_examples joint_recorder.py -f j.rec -r 10
4# record rate
5
6rosrun baxter_interface joint_trajectory_action_server.py
7
8rosrun baxter_examples joint_trajectory_file_playback.py -f j.rec -l 2
xxxxxxxxxx
171#!/usr/bin/env python
2import rospy
3from sensor_msgs.msg import JointState
4
5def joint_state_callback(msg):
6 print("Joint States: ")
7 for i, name in enumerate(msg.name):
8 print(f" {name}: {msg.position[i]}")
9
10rospy.init_node('joint_state_printer')
11rospy.Subscriber('/robot/joint_states', JointState, joint_state_callback)
12rospy.spin()
13
14
15# rosrun baxter_tools calibrate_arm.py -l left
16# rosrun baxter_tools calibrate_arm.py -l right
17
https://www.youtube.com/watch?v=k-Llz3zZ2hg
https://www.youtube.com/watch?v=Dynv9LEddA4
Jānoskrūvē gripperi, lai viņš sevi nesalauž
xxxxxxxxxx
81rosrun baxter_tools calibrate_arm.py -l left
2rosrun baxter_tools calibrate_arm.py -l right
3
4
5
6rosrun baxter_tools tare.py -l left
7rosrun baxter_tools tare.py -l right
8
TODO:
Izmērīt kompresora cauruli gan spraužamo, gan skrūvējamo
Wayback machine documentation: https://web.archive.org/web/20180708151310/http://sdk.rethinkrobotics.com/wiki/Main_Page
Baxter starup video
https://www.youtube.com/watch?v=DFXY5pyMhbA
Stop Button disengaged
Baxter SDK installation https://www.youtube.com/watch?v=J47SKs0QRyU&t=40s
SDK Demos
ZeroG: https://www.youtube.com/watch?v=KIe_MEuCxTo
Puppeteer: https://www.youtube.com/watch?v=lvLkFXuVLMU
Pre-configured VMs
Baxter demos:
Record and playback https://www.youtube.com/watch?v=Y3uAe0fKEVM
MoveIT + Rviz control https://www.youtube.com/watch?v=qihq2jT-fAI
Baxter facial animations
xxxxxxxxxx
51
2export PATH=$PATH:$(find /home/workstation/baxter_py2/src/baxter_facial_animation -type d | tr '\n' ':' | sed 's/:$//')
3rosrun merry_faces approval.py
4
5
Teorētiski viņu var updeitot update_robot.py
u: ros-industrial p: rosindustrial
xxxxxxxxxx
21sudo apt-get update --allow-unauthenticated --allow-downgrades
2sudo apt-get install python-wstool python-rosdep
Creating new workspace
xxxxxxxxxx
31mkdir -p ~/ros_ws/src
2cd ~/ros_ws/src
3wstool init .
Adding necessary packages
xxxxxxxxxx
51wstool merge https://raw.github.com/RethinkRobotics/baxter/master/baxter_sdk.rosinstall
2
3wstool merge https://raw.githubusercontent.com/RethinkRobotics/baxter_simulator/master/baxter_simulator.rosinstall
4
5wstool update
xxxxxxxxxx
51source /opt/ros/kinetic/setup.bash
2cd ~/ros_ws
3
4catkin_make
5catkin_make install
check env variables
xxxxxxxxxx
11env | grep ROS
xxxxxxxxxx
11cp ~/ros_ws/src/baxter/baxter.sh ~/ros_ws
xxxxxxxxxx
11gedit ~/ros_ws/baxter.sh
RUN
xxxxxxxxxx
11~/ros_ws/src/baxter/baxter.sh
left_s0 -> -1.19 .. 1.7 left_s1 -> -1.5 … 0.8
right_s0 -> -1.7 .. 1.7
right_s0 -> -1.2….1.0
Andris.Viduzs@rtu.lv
xxxxxxxxxx
31rosrun baxter_tools enable_robot.py -e
2rosrun baxter_tools enable_robot.py -d
3rosrun baxter_tools enable_robot.py -h
Enable baxter will put it in ZeroG mode
Trying collide arms - avoidance
xxxxxxxxxx
31cd ./sdk-samples
2
3./init.sh ROBOT_ID.local
Viena roka kustās līdi otrai
Kustina left, bet replicējas uz right
xxxxxxxxxx
31rosrun baxter_examples joint_velocity_puppet.py -l right
2
3-a amplification
xxxxxxxxxx
11rostopic list
xxxxxxxxxx
11rosnode list
pirmā rinda uzstāda variables otrā palaiž
http://wiki.ros.org/mallasrikanth/baxter
xxxxxxxxxx
21./baxter.sh
2rosrun baxter_tools enable_robot.py -e
Current state
./baxter.sh
http://share.yellowrobot.xyz/quick/2023-7-10-B9FAD050-B6EF-4B8D-8E1D-B322FF204BFA.zip
✅ SSH connection (caur router)
192.168.1.73
xxxxxxxxxx
11ping 011603P0010.local
u: ruser
p: rethink
Baxter IP
Caur router
Man iedotā adrese - izskatās, ka tā nav pareiza
https://www.reddit.com/r/robotics/comments/aa9c3z/anyone_who_worked_with_baxter_robot_is_it/
Daudz labāka instrukcvija
https://sceweb.sce.uhcl.edu/harman/CENG5931Baxter2015/Guides/BAXTER_Introduction_2_08_2016.pdf
Compatibility:
ROS Kinetic is compatible with Ubuntu Wily (15.10) and Ubuntu Xenial (16.04 LTS)
Official repo:
Guides:
https://pages.github.berkeley.edu/EECS-106/sp22-site/assets/lab/106B_Robot_Usage_Guide.pdf
https://sceweb.sce.uhcl.edu/harman/CENG5931Baxter2015/Guides/BAXTER_Introduction_2_08_2016.pdf
Simulation guide: https://wiki.ros.org/mallasrikanth/baxter
Kameru utt specifikācija:
Simulators:
Official Gazebo - https://sdk.rethinkrobotics.com/wiki/Baxter_Simulator
Official Movit + RViz - https://sdk.rethinkrobotics.com/wiki/MoveIt_Tutorial
Gazebo or RViz.
MoveIt V-REP (Virtual Robot Experimentation Platform)
Demo app:
Vasaras skolas projekta mērķis: Apgūt visu nepieciešamo un panākt, ka Baxter robots spēj salikt no Lego Duplo mājiņu.
17 jul Pirmdiena - Python basics and data processing (OOP, Numpy, Pandas, Matplotlib) - Evalds intro + Baxter demo, Pauls Purviņš tutor 18 jul Otrdiena - Deep machine learning basics (Backpropogation, Regression, Classification, PyTorch) - Māris Ancāns 19 jul Trešdiena - Image classifiers and segmentation (ConvNet, UNet, YOLO) - Betija Rudzite 20 jul Ceturdiena - Transformers and language models (GPT, LLMs) - Marcis Upenieks 21 jul Piektdiena - Prompt engineering, LLM based planning (OpenAI API) - Māris Ancāns 24 jul Pirmdiena - Robot operating System (Tools, actions, topics) - Evalds Urtans 25 jul Otrdiena - Baxter control in simulation environment- Pauls Purviņš 26 jul Trešdiena - Baxter control in real environment - Evalds Urtans 27 jul Ceturdiena - Baxter use-case for Lego building - Evalds Urtans 28 jul Piektdiena - Experimentation and final demo - Evalds Urtans
Vai jūs lūdzu varētu no RTU pievienot bankas karti un atsūtīt account pieeju http://platform.openai.com, lai vasaras skolas vajadzībām izmantotu vai arī kaut kādu rēkinu uz SIA ASYA, lai mēs varam to nosegt ?