Simulator
Simulator link is a link used when using AUTD simulator.
Before using this link, you need to start AUTD simulator.
Simulator link API
Contructor
Simulator link's constructor takes an IP address and a port number of AUTD simulator.
use autd3::prelude::*;
use autd3_link_simulator::Simulator;
#[allow(unused_variables)]
fn main() -> Result<(), Box<dyn std::error::Error>> {
let autd = Controller::builder([AUTD3::new(Point3::origin())])
.open(
Simulator::builder("127.0.0.1:8080".parse()?)
)?;
Ok(())
}
#include<autd3.hpp>
#include "autd3/link/simulator.hpp"
int main() {
auto autd = autd3::ControllerBuilder({autd3::AUTD3(autd3::Point3::origin())})
.open(
autd3::link::Simulator::builder("127.0.0.1:8080")
);
return 0; }
using AUTD3Sharp;
using System.Net;
using AUTD3Sharp.Link;
using AUTD3Sharp.Gain;
using AUTD3Sharp.Modulation;
using AUTD3Sharp.Utils;
var autd = Controller.Builder([new AUTD3(Point3.Origin)]).Open(
Simulator.Builder(new IPEndPoint(IPAddress.Parse("127.0.0.1"), 8080))
);
from pyautd3.link.simulator import Simulator
Simulator.builder("127.0.0.1:8080")