Issac sim python example failed!

when I use python script to start an example, it threw an error:
from omni.isaac.kit import SimulationApp
import omni.appwindow
from omni.isaac.jetbot import Jetbot
from omni.isaac.jetbot.controllers import DifferentialController

no module named omni

how do I configure the module or python env so that to avoid these errors?

Hi @nvidiaAI

You need to instantiate the SimulationApp class before importing all other Omniverse packages/modules as indicated in the documentation

https://docs.omniverse.nvidia.com/app_isaacsim/app_isaacsim/manual_standalone_python.html?#simulationapp

Any Omniverse level imports must occur after the class is instantiated. Because APIs are provided by the extension/runtime plugin system, it must be loaded before they will be available to import.

I mean how to run python script through commandline on windows, like this:
D:\omniverse\pkg\isaac_sim-2022.1.1> D:\omniverse\pkg\isaac_sim-2022.1.1\python.bat examples.py
it threw an error : no module named ‘omni.isaac.jetbot’
the examples.py file is like:
from omni.isaac.kit import SimulationApp
import numpy as np
import carb
import omni.appwindow
simulation_app = SimulationApp({“headless”: False})
from omni.isaac.jetbot import Jetbot
from omni.isaac.jetbot.controllers import DifferentialController

now the app can start, but I got another error:
from omni.isaac.jiebot import jetbot,
ModuleNotFoundError:no module named ‘omni.isaac.jetbot’

Hi @nvidiaAI

I noticed I can not find any reference for the omni.isaac.jetbot in Isaac Sim 2022.1
All reference to Jetbot are current handled directly via omni.isaac.wheeled_robots.robots.WheeledRobot class

Last reference to omni.isaac.jetbot is in 2021.2.1 release notes

Take a look at
standalone_examples/api/omni.isaac.jetbot/jetbot_move.py

A jetbot is basically a wheeled robot, and currently we don’t have a jetbot specific interface outside of WheeledRobot

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]),
    )
)