サイクロンメカナム
Known Bug: No GP chip inside
This package contain 2 nodes: mecanum_command
and mecanum_umd
.
This node reads several commands and take corrosponding actions.
/elevator_cont
- message:
cyclone_mecanum/ElevatorCont.h
- int32 elevator_id
- int16 vel_setpoint, v_setpoint passing to motor of elevator (around 140 is ok)
- message:
/em_cont
- message:
cyclone_mecanum/EmCont.h
- int32 em_id
- int16 release, true to release the electromagnetic, don't provide power for too long
- message:
/disk_spin
- service:
std_srvs/SetBool.h
- bool data, true to spin clockwise
- service:
/elevator_oneshot
- service:
cyclone_mecanum/ElevatorOneshot.h
- int32 elevator_id
- bool up
- NOT implemented!
- service:
disk_spin_angle
(default: 36)- The Angle of disk spin once
/disk_spin
is called
- The Angle of disk spin once
light_gate_IO_port
(default: {1, 2})em_IO_port
(default: {3})- The ports plugged to IO board
mecanum_umd
stepper_control
from package mechaduino_stepper
This node is copied from the package mecanum_top
, which handles the UMD boards.
umd_port
(default: /dev/ttyACM1)umd_baudrate
(default: 921600)
include/devices/PS4.*
is copied from omni_control
Slighty different as the constructor as ask for the topic name from joy node
umd_boards_ws/mecanum_top
from umd_boards_ws in branch wahaha
roscore
sudo ds4drv --hidraw --led 00ff00
- (according to the output from 2)
rosparam set joy_node/dev "/dev/input/js1"
rosrun joy joy_node
- (optional)
rostopic echo /joy
rosrun mecanum_top node /dev/ttyACM0
rosparam set /mecanum_command/ps4_topic /joy
rosrun cyclone_mecanum mecanum_command
roscore
sudo ds4drv --hidraw --led 00ff00
- (according to the output from 2)
roslaunch omni_control mecanum_controller.launch joy:=/dev/input/jsX umd:=/dev/ttyACMX
rosrun mecanum_top node /dev/ttyACMX
rosparam set /mecanum_command/ps4_topic /omni_base/joy
rosrun cyclone_mecanum mecanum_command
udevadm info --name=/dev/ttyACMX
UART Board E:ID_MODEL=54FF70065185545318341887
STM32F407Discovery ID_MODEL=50002C001951353235373431
Function Key | Precise Mode | |
---|---|---|
Options | Lift Both Rack | N/A |
Triangle | Elevator Up | Move 20x slower |
Cross | Elevator Down | Move 20x slower |
Rectangle | Rotate Rack anti-closewise by 18° | Rotate 1.8° |
Circle | Rotate Rack closewise by 18° | Rotate 1.8° |
Modification Key | |
---|---|
L1 | Golden Rack |
Share | Precise |