You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# For a direct USB cable connection, the port name is typically
# /dev/ttyACM# where is # is a number such as 0, 1, 2, etc
# For a wireless connection like XBee, the port is typically
# /dev/ttyUSB# where # is a number such as 0, 1, 2, etc.
port: /dev/ttyACM0
baud: 57600
timeout: 0.1
rate: 50
sensorstate_rate: 10
use_base_controller: False
base_controller_rate: 10
base_frame: base_link
sensors: {
right_encoder_A: {pin: 18, type: Digital, rate: 5, direction: output},
right_encoder_B: {pin: 19, type: Digital, rate: 5, direction: output}
}
# Joint name and configuration is an example only
joints: {
joint1: {pin: 3, init_position: 0, init_speed: 90, neutral: 90, min_angle: -90, max_angle: 90, invert: False, continous: False},
joint2: {pin: 5, init_position: 0, init_speed: 90, neutral: 90, min_angle: -90, max_angle: 90, invert: False, continous: False},
joint3: {pin: 6, init_position: 0, init_speed: 90, neutral: 90, min_angle: -90, max_angle: 90, invert: False, continous: False}
}
The text was updated successfully, but these errors were encountered:
@roboticsai You can not subscribe encoders' value in ros node, because no node publishes these data on some topic like "/arduino/sensor/left_encoder_#". The way you can get encoders' value is to fetch data from serial. You can call method get_encoder_counts in file "arduino_driver.py" in which it sends command to serial and returns data fetching from serial.
How can i subscribe the encoder value in ros node and than use it? I tried below code but its no use:
My arduino ros yaml file is:
The text was updated successfully, but these errors were encountered: