Ask Your Question
0

limit ros node to single cpu core [closed]

asked 2018-12-24 04:41:24 -0600

Alsing gravatar image

Hi!

I am using ORB_SLAM for a specific use case. In that use case, I don't need very good FPS. As it is now, ORB_SLAM is using approx 60% on all my cores, starving my other processes. I have seen in Unix there is a command 'taskset' to limit a process to a single CPU core, but I'm looking more of limiting a rosnode to a single core, makes it easier for me to deploy for multiple robots.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Alsing
close date 2019-03-21 03:44:35.834867

Comments

pls see this question

hamid gravatar imagehamid ( 2018-12-24 06:49:24 -0600 )edit

Thanks for posting the link to that Q&A @hamid, it indeed appears to be a duplicate of this question.

@Alsing: could you please check #q202712 and close your question if the solution posted there covers your use-case as well?

gvdhoorn gravatar imagegvdhoorn ( 2018-12-26 07:06:22 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-24 15:21:36 -0600

ahendrix gravatar image

A ROS node is a process, so using taskset works very nicely to limit the resources available to that node.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-12-24 04:41:24 -0600

Seen: 134 times

Last updated: Dec 24 '18