Skip to content
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

collision_state.py occupies 100% CPU #782

Open
garaemon opened this issue Jul 29, 2015 · 7 comments
Open

collision_state.py occupies 100% CPU #782

garaemon opened this issue Jul 29, 2015 · 7 comments

Comments

@garaemon
Copy link
Member

collision_state.py looks heavy but I believe it just read collision detector's sate.

screenshot_from_2015-07-29 11 52 05

@garaemon
Copy link
Member Author

50Hz -> 100%
10Hz -> 20%
1Hz -> 2%

OTH, HrpsysSeqStateROSBridge is 40% in 100Hz

@k-okada
Copy link
Member

k-okada commented Jul 29, 2015

please check other process, too. I think everynode is very heavy than we
expected.
#408 (comment)

◉ Kei Okada

On Wed, Jul 29, 2015 at 11:52 AM, Ryohei Ueda [email protected]
wrote:

collision_state.py looks heavy but I believe it just read collision
detector's sate.

[image: screenshot_from_2015-07-29 11 52 05]
https://cloud.githubusercontent.com/assets/40454/8948964/49d625b0-35e8-11e5-9ffd-df34ba851a3c.png


Reply to this email directly or view it on GitHub
#782.

@garaemon
Copy link
Member Author

screenshot_from_2015-07-29 12 00 27

The top python is collision_state.py

@k-okada
Copy link
Member

k-okada commented Jul 29, 2015

so you're using everything in same machine without using /clock, that's
different than my use case.

Please check if CPU usage if rtcd decrease, when you kill
collision_state.py,

◉ Kei Okada

On Wed, Jul 29, 2015 at 12:01 PM, Ryohei Ueda [email protected]
wrote:

[image: screenshot_from_2015-07-29 12 00 27]
https://cloud.githubusercontent.com/assets/40454/8949060/77133c42-35e9-11e5-8c07-44c7bc6c611c.png

The top python is collision_state.py


Reply to this email directly or view it on GitHub
#782 (comment)
.

@k-okada
Copy link
Member

k-okada commented Jul 29, 2015

also I'd like to know all command line arguments when you started
collsion_state.py

◉ Kei Okada

On Wed, Jul 29, 2015 at 12:07 PM, Kei Okada [email protected]
wrote:

so you're using everything in same machine without using /clock, that's
different than my use case.

Please check if CPU usage if rtcd decrease, when you kill
collision_state.py,

◉ Kei Okada

On Wed, Jul 29, 2015 at 12:01 PM, Ryohei Ueda [email protected]
wrote:

[image: screenshot_from_2015-07-29 12 00 27]
https://cloud.githubusercontent.com/assets/40454/8949060/77133c42-35e9-11e5-8c07-44c7bc6c611c.png

The top python is collision_state.py


Reply to this email directly or view it on GitHub
#782 (comment)
.

@garaemon
Copy link
Member Author

so you're using everything in same machine without using /clock, that's
different than my use case.
Our situation is

  • no /clock
  • everything run in same machine

Please check if CPU usage if rtcd decrease, when you kill
collision_state.py,

  • rtcd load slightly decreased when i killed collision_state.py but it's really small amount. (75 -> 73) It looks a noise.

also I'd like to know all command line arguments when you started
collsion_state.py

$ roslaunch jaxon_ros_bridge jaxon_ros_bridge.launch --args /collision_state
LANG=C SIMULATOR_NAME=RobotHardware0 ORBgiopMaxMsgSize=2147483648 /home/leus/ros/hydro/src/rtm-ros-robotics/rtmros_common/hrpsys_ros_bridge/scripts/collision_state.py /home/leus/ros/hydro/src/rtm-ros-robotics/rtmros_hrp2/jsk_models/JAXON_RED/JAXON_REDmain.wrl -ORBInitRef NameService=corbaloc:iiop:localhost:15005/NameService __name:=collision_state

@k-okada
Copy link
Member

k-okada commented Jul 30, 2015

collisoin_state.py should output something like follows; I'd like to know
the number of collision state in your case.

[INFO] [WallTime: 1438238930.107318] check 4 collision status, 0.796812 Hz

◉ Kei Okada

On Wed, Jul 29, 2015 at 12:13 PM, Ryohei Ueda [email protected]
wrote:

so you're using everything in same machine without using /clock, that's
different than my use case.
Our situation is

  • no /clock
  • everything run in same machine

Please check if CPU usage if rtcd decrease, when you kill
collision_state.py,

  • rtcd load slightly decreased when i killed collision_state.py but
    it's really small amount. (75 -> 73) It looks a noise.

    also I'd like to know all command line arguments when you started
    collsion_state.py

$ roslaunch jaxon_ros_bridge jaxon_ros_bridge.launch --args /collision_state
LANG=C SIMULATOR_NAME=RobotHardware0 ORBgiopMaxMsgSize=2147483648 /home/leus/ros/hydro/src/rtm-ros-robotics/rtmros_common/hrpsys_ros_bridge/scripts/collision_state.py /home/leus/ros/hydro/src/rtm-ros-robotics/rtmros_hrp2/jsk_models/JAXON_RED/JAXON_REDmain.wrl -ORBInitRef NameService=corbaloc:iiop:localhost:15005/NameService __name:=collision_state


Reply to this email directly or view it on GitHub
#782 (comment)
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants