rb5_advanced_programming
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rb5_advanced_programming [2023/01/20 14:16] – [External Script Control API] bskim | rb5_advanced_programming [2023/02/07 14:22] (current) – [Exercise] bskim | ||
---|---|---|---|
Line 29: | Line 29: | ||
| 0x24 | Size& | | 0x24 | Size& | ||
The format of the data is shown below. Depending on the system version, the size of the data may be different. However, the order is consistent, please refer to the table below. | The format of the data is shown below. Depending on the system version, the size of the data may be different. However, the order is consistent, please refer to the table below. | ||
- | *[[rb5_advanced_programming# | + | |
+ | |||
+ | [[rb5_advanced_programming# | ||
+ | |||
+ | ==== Exercise ==== | ||
+ | * Print out the RB5's current Position using script command. | ||
+ | |||
+ | * Print out the RB5's current Joint angle using script command. | ||
+ | |||
+ | * Move RB5 from joint angle(0, | ||
+ | |||
+ | * Move RB5 from joint Position(0.4, | ||
====Example==== | ====Example==== | ||
Line 124: | Line 136: | ||
def get_data_thread(sock, | def get_data_thread(sock, | ||
print(' | print(' | ||
- | ft_calib=calib_ft_data() | ||
while True: | while True: | ||
cmd=q_in.get() | cmd=q_in.get() | ||
if cmd == 1: | if cmd == 1: | ||
rb5_data_ = Rb5_getdata(sock) | rb5_data_ = Rb5_getdata(sock) | ||
- | ft_data_ = read_ft_data()-ft_calib | ||
- | q_out.put(ft_data_) | ||
q_out.put(rb5_data_) | q_out.put(rb5_data_) | ||
| | ||
Line 327: | Line 336: | ||
=====reqdata format===== | =====reqdata format===== | ||
+ | |||
+ | ^ | ||
+ | | 0x24 | Size& | ||
+ | |||
{{ : | {{ : | ||
{{ : | {{ : |
rb5_advanced_programming.1674252988.txt.gz · Last modified: by bskim