-
Notifications
You must be signed in to change notification settings - Fork 238
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting a Servo to the OpenCR #304
Comments
Hi, |
I see. Can you say whether how to enable the topic via rosserial on the OpenCR or does that happen "automatically"? |
Hi, |
Thank you. I cannot locate the OpenCR ROS examples. And the TB3 ROS example shows the ROS side. I am asking about the OpenCR side. For example:
`self.bumper_sub = rospy.Subscriber('sensor_state', SensorState, self.get_bumper, queue_size = 1)`
I need the code on the OpenCR side that would publish sensor_state
Any pointers?
Pito Salas
Faculty, Computer Science
Brandeis University
… On Apr 12, 2022, at 5:06 AM, Will Son ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.
|
@pitosalas Similarly, the TurtleBot3 sensor state message is published in the below. Thank you. |
Thanks… Is there a developer guide for OpenCR? Because I understand the code you linked me to but I dont know where the “main loop” is for opencr where I would add rosserial code to subscribe to a topic and send the right commands to the servo.
Pito Salas
Faculty, Computer Science
Brandeis University
… On Apr 20, 2022, at 10:45 PM, Will Son ***@***.***> wrote:
@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
Thank you.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.
|
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!
The text was updated successfully, but these errors were encountered: