Take a picture in IPGMovie
cm_movie_snapshotCaptures an image of IPGMovie’s 3D view during or after a CarMaker run, or replays a saved result file to show vehicle motion at a chosen time.
Instructions
A picture of IPGMovie's 3D view, returned as an image. After a run it shows any moment of the last run (time_s), provided IPGMovie was open during that run. During a run, without time_s, it shows the IPGMovie window as it is at that moment (in the window's own size). With erg it replays a saved result file, which must hold the vehicle's motion (cm_output_quantities_edit(preset='movie') before that run). Do not pass time_s during a run: that makes IPGMovie stop following the run. Needs the MATLAB session's IPGMovie (cm_movie_open); a standalone IPGMovie (movie=true) has no pictures.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "cm_movie_snapshot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| erg | No | Replay this result file instead of the last run (absolute path, or relative to the project) | |
| width | No | Picture width in pixels (not during a run) | |
| camera | No | Camera view: 'DEFAULT', "Bird's Eye View", 'Left Side', 'Right Side', 'Sitting In Vehicle (A)', or one from the project (default: keep the view) | |
| height | No | Picture height in pixels (not during a run) | |
| time_s | No | Simulation time of the picture in s (default: the latest moment IPGMovie holds) |