my python script are as follows:
from omni.isaac.kit import SimulationApp
import numpy as np
import carb
import omni.appwindow
simulation_app = SimulationApp({“headless”: True})
from omni.isaac.jetbot import Jetbot
from omni.isaac.jetbot.controllers import DifferentialController
how to find jetbot module?
Hi @nvidiaAI. I moved this topic to the Isaac Sim forum. The folks there are more knowledgeable of Isaac Sim developer workflows.
Take a look at standalone_examples/api/omni.isaac.jetbot/jetbot_move.py
A jetbot is basically created using:
jetbot_asset_path = assets_root_path + "/Isaac/Robots/Jetbot/jetbot.usd"
my_jetbot = my_world.scene.add(
WheeledRobot(
prim_path="/World/Jetbot",
name="my_jetbot",
wheel_dof_names=["left_wheel_joint", "right_wheel_joint"],
create_robot=True,
usd_path=jetbot_asset_path,
position=np.array([0, 0.0, 2.0]),
)
)
Create a differential controller
my_controller = DifferentialController(name="simple_control", wheel_radius=0.03, wheel_base=0.1125)
And then apply actions during simulation
my_jetbot.apply_wheel_actions(my_controller.forward(command=[0.05, 0]))