-
Notifications
You must be signed in to change notification settings - Fork 3
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
AsyncRobotState consumes too much CPU #8
Comments
Maybe not related. But there may be some polling problems of GRPC calling which has significant effect on CPU usages. |
I develop some Spot demos in spot-core-io.
And build the docker container below FROM ros:noetic-robot-focal
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update && apt install -y -qq python3-catkin-tools python3-pip
RUN rosdep update
# pre-install some ros packages commonly used to reduce build time
RUN apt install -y -qq ros-noetic-jsk-pr2eus ros-noetic-jsk-recognition ros-noetic-jsk-model-tools
RUN pip3 install protobuf==3.20 bosdyn-client==4.0.3 bosdyn-mission==4.0.3 bosdyn-api==4.0.3 bosdyn-core==4.0.3 bosdyn-choreography-client==4.0.3
COPY src src
RUN rosdep install -iqry --from-paths src || true
RUN rm -rf src cd rocker/spot_ws
docker build . -t jsk-spot-core-io
rocker --nvidia --user --home --network host --host 133.11.216.108 --privileged jsk-spot-core-io:latest /bin/bash # exec shell in docker In rocker container source /opt/ros/noetic/setup.bash
catkin build spoteus jsk_spot_startup
source ./devel/setup.bash
roslaunch jsk_spot_startup jsk_spot_bringup.launch credential_config:=/home/obinata/spot_credential.yaml 2>&1 | grep -v "TF_REPEATED_DATA" | grep -v " at line 278" It seems that the topics stable. In my laptop
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AsyncRobotState consumes too much CPU load.
The strange thing is that just stopping the call to
get_robot_state_async()
does not work, but stopping the call toAsyncPeriodcQuery.__init__()
does.--
stop calling
AsyncPeriodcQuery.__init__()
stop calling
get_robot_state_async()
Profiling results
cc: @sktometometo
The text was updated successfully, but these errors were encountered: