-
Notifications
You must be signed in to change notification settings - Fork 11
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
Fixed camera failling to start and say text fixed #8
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,11 +25,14 @@ | |
|
||
else: | ||
async_robot = anki_vector.AsyncRobot() | ||
async_robot.camera.init_camera_feed() | ||
# async_robot.camera.init_camera_feed() | ||
|
||
# connect to Vector | ||
async_robot.connect() | ||
|
||
# Camera feed? | ||
async_robot.camera.init_camera_feed() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here, the client was not able to connect with the robot, it said that the client was doing something else and blocks after this. |
||
|
||
# start all using shared AsyncRobot object | ||
Vector(async_robot) | ||
Animation(async_robot) | ||
|
@@ -45,4 +48,4 @@ | |
tf_thread = threading.Thread(target=JointStatesPublisher, args=(async_robot,)) | ||
tf_thread.start() | ||
|
||
rospy.spin() | ||
rospy.spin() |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ def battery_state_service_cb(self, request): | |
return response | ||
|
||
def say_text_cb(self, request): | ||
self.robot.say_text(request.text) | ||
self.robot.behavior.say_text(request.text) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here, "behavior" was missing. |
||
|
||
return SayTextResponse() | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ROS was complaining about a deprecation for this publisher