simulation.utils.basics.ros_cmd module

Summary

Classes:

ROSCmd

Holds data for a ROS command and makes it executable.

Reference

class ROSCmd(cmd_base: str, *, env_vars: Dict[str, Any], **ros_args)[source]

Bases: object

Holds data for a ROS command and makes it executable.

cmd_base: str

Command string without any arguments.

env_vars: Dict[str, Any] = None

Environment variables that should be set prior to running the command.

ros_args: Dict[str, Any] = None

ROS arguments passed when running the command.

get_cmd() → str[source]

Create the command string.

run() → Tuple[int, str][source]

Prepare and run the command.

Returns

Returncode and std output.