ROBOTIS-GIT/OpenCR

Connecting a Servo to the OpenCR

pitosalas opened this issue · 6 comments

Looking around the source code and googling around, it seems to be that the Turtlebot3 / OpenCR board is set up to accept a servo connector. I see there's a package called servo etc. My question is where on the OpenCR board should we attach the servo connector? THank you!

Hi,
If it is meaning PWM servo, ROBOTIS e-manual has the Pin assign description.
https://emanual.robotis.com/docs/en/parts/controller/opencr10/#pwm

I see. Can you say whether how to enable the topic via rosserial on the OpenCR or does that happen "automatically"?

Hi,
This OpenCR ROS examples may help you to implement the publisher / subscriber for PWM motor control.
Similar sub/pubs are implemented in the TurtleBot3 ROS example.

@pitosalas
I'm sorry about the delayed response.
ROS examples in OpenCR board manager have those pub/sub implmentations.
For example, the bumper status is published via "bumper" topic in the example below.
https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/ROS/examples/02.%20Sensors/a_bumper/a_bumper.ino#L58

Similarly, the TurtleBot3 sensor state message is published in the below.
https://github.com/ROBOTIS-GIT/OpenCR/blob/master/arduino/opencr_arduino/opencr/libraries/turtlebot3/examples/turtlebot3_burger/turtlebot3_core/turtlebot3_core.ino#L258

Thank you.