ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

What's the importance of defining .machine file?

asked 2012-04-21 22:19:35 -0600

Albert K gravatar image

I'm working on pr2_arm_navigation and there is a launch file that includes another launch file "right_arm_collision_free_ik.launch." In the launch file there is a line as follow:

<include file="$(find pr2_machine)/$(env ROBOT).machine" />

I would like to know what the .machine file is used for. Is that related to command such as "export ROBOT=sim", which is for the purpose of discrimination of a real physical world Robot and a simulation Robot?

Appreciate for any help.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-04-22 08:09:33 -0600

Lorenz gravatar image

The machine file is a launch file that contains definitions for the two computers on the PR2. It allows for distributing nodes across the two machines by using the machine tag in nodes.

When running in simulation, the user normally wants to launch only on one machine, his own computer. The machine file sim.machine sets both machine definitions (names are c1 and c2) to localhost. pr2.machine adds definitions for the actual machines on the pr2.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-04-21 22:19:35 -0600

Seen: 303 times

Last updated: Apr 22 '12