hbp_nrp_cle.robotsim.RosRobotControlAdapter module

Implementation of the robot control adapter using ros and gazebo

class RosRobotControlAdapter[source]

Bases: hbp_nrp_cle.robotsim.RobotInterface.IRobotControlAdapter

Represents a robot adapter that basically does nothing

initialize()[source]

Initializes the robot control adapter

property is_alive

Queries the current status of the robotic hardware

Returns

always True, as the robot should always be alive

property is_paused

Queries the current status of the robotic hardware

Returns

always False, as the robot cannot be paused

reset()[source]

The robot cannot be reset by this and it should be reset manually

reset_world(models, lights)[source]

The environment should be reset by hand

run_step(dt)[source]

This function has no significance for the robot, and it just complies with the APIs

Parameters

dt – The CLE time step in seconds

run_step_async(dt)[source]

This function has no significance for the robot, and it just complies with the APIs

Parameters

dt – The CLE time step in seconds

set_robots(robots)[source]

Sets the list of robots

set_time_step(time_step)[source]

This function has no significance for the robot and should not be used

shutdown()[source]

The robot cannot be shut down by this

property time_step

This property has no significance for the robot and should not be used

unused(_)[source]

Marks an argument as unused