Zum Hauptinhalt springen
LIVE
CVSS 4.8CVE-2026-141538 | Addressable is an alternative implementation to the URI implementation that is part of Ruby's standard library. From 2.0.0 until 2.10.0, Addressable::URI#user=, #password=, #userinfo=, and matching Addressable::URI.new options store userinfo values without rejecting or encoding host-changing delimiters. Values containing /, ?, or # can end userinfo early when Addressable::URI#to_s serializes the URI. An application that validates the URI object but sends theCVSS 7.0CVE-2026-141540 | External control of file path in trino-storage plugin for trinodb by ebyhr versions through 477 allows remote authenticated attackers to read arbitrary files and retrieve arbitrary HTTP/HTTPS URLs and view contents via collecting data from common resource locations and server-side request forgeryCVSS 8.1CVE-2026-59033 | In multiple locations, there is a possible use-after-free due to a race condition. This could lead to remote escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.CVSS 8.4CVE-2026-59036 | In postNotification of ServiceRecord.java, there is a possible permission bypass due to a confused deputy. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.CVSS 8.4CVE-2026-59040 | In multiple functions of RemoteViews.java, there is a possible permission bypass due to a logic error in the code. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.CVSS 8.4CVE-2026-59041 | In setRequestedApplicationGrammaticalGender of GrammaticalInflectionService.java, there is a possible permission bypass due to a confused deputy. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.CVSS 8.4CVE-2026-58999 | In multiple locations, there is a possible permission bypass due to a confused deputy. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.CVSS 8.4CVE-2026-59025 | In multiple functions of ConnectionServiceWrapper.java, there is a possible permission bypass due to a confused deputy. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is needed for exploitation.
Alle im Drawer
Intelligence View
⚡ tsecurity.de Intelligence

AI ROBOTICS Coding Discourse

🤖 Deep Reinforcement Learning for Robotic Trajectory Planning Inspired by frontier AI robotics research at Stanford and UC Berkeley. This tutorial breaks down h…

Beitrag
0
Seite
0
↗ Quelle (dev.to)
Cloud & Tech-Stack · 4 Min. Lesezeit
Quelle: dev.to
Rubrik: Sichere Programmierung




🤖 Deep Reinforcement Learning for Robotic Trajectory Planning Inspired by frontier AI robotics research at Stanford and UC Berkeley. This tutorial breaks down how to train an autonomous AI agent to control a 2-degree-of-freedom (2-DOF) physical robotic arm using Deep Q-Networks (DQN). --- ## 🔬 The Conceptual Framework ### 1. Markov Decision Process (MDP) in Robotics Top roboticists view physical movement as a continuous Markov Decision Process. We define our robotic workspace using three core pillars: * State (S): The current joint angles (θ₁, θ₂) and angular velocities (θ̇₁, θ̇₂). * Action (A): The directional torque applied directly to the robotic joints. * Reward (R): A continuous negative Euclidean distance metric from the arm's tip to the target destination. Minimizing the distance maximizes the reward. ### 2. The Policy Network Traditional geometric trajectory calculations are fragile. Instead, we use a Deep Neural Network to approximate the optimal action-value function via the Bellman Equation: [Q(s, a) \approx R(s, a) + \gamma \max_{a'} Q(s', a')] --- ## 🛠️ Step 1: The Physics Simulation Environment Create a file named robot_env.py. This script simulates the physical dynamics, forward kinematics, and reward shaping of a 2-joint robotic arm.





python import numpy as np class RobotArmEnv: def __init__(self): # State: [theta1, theta2, angular_velocity1, angular_velocity2] self.state = np.zeros(4) # Target coordinates in 2D space self.target = np.array([1.0, 1.0]) def reset(self): # Reset the arm to a random starting position near zero self.state = np.random.uniform(-0.1, 0.1, size=4) return self.state def step(self, action): # Map discrete actions to joint motor torques (-1, 0, 1) torques = np.array([-1.0, 0.0, 1.0]) t1, t2 = torques[action // 3], torques[action % 3] # Physics update via simplified Euler integration self.state[2] += t1 * 0.1 # Update velocity 1 self.state[3] += t2 * 0.1 # Update velocity 2 self.state[0] += self.state[2] * 0.1 # Update angle 1 self.state[1] += self.state[3] * 0.1 # Update angle 2 # Calculate end-effector position using Forward Kinematics x = np.cos(self.state[0]) + np.cos(self.state[0] + self.state[1]) y = np.sin(self.state[0]) + np.sin(self.state[0] + self.state[1]) # Reward shaping: Negative distance to target distance = np.linalg.norm(np.array([x, y]) - self.target) reward = -distance # Terminate episode if the arm successfully reaches the target zone done = distance < 0.1 return self.state, reward, done



--- ## 🧠 Step 2: The Deep Q-Network Agent Create a file named dqn_agent.py. This script defines the PyTorch neural network that acts as the "brain" of our robot, learning from its physical mistakes.



python import torch import torch.nn as nn import torch.optim as optim import random class QNetwork(nn.Module): def __init__(self, state_dim, action_dim): super(QNetwork, self).__init__() # Multi-Layer Perceptron to process joint states into action torques self.network = nn.Sequential( nn.Linear(state_dim, 64), nn.ReLU(), nn.Linear(64, 64), nn.ReLU(), nn.Linear(64, action_dim) ) def forward(self, x): return self.network(x) class DQNAgent: def __init__(self, state_dim, action_dim): self.policy_net = QNetwork(state_dim, action_dim) self.optimizer = optim.Adam(self.policy_net.parameters(), lr=0.001) self.action_dim = action_dim self.epsilon = 0.1 # Exploration rate def select_action(self, state): # Epsilon-greedy action selection for exploration vs. exploitation if random.random() < self.epsilon: return random.randint(0, self.action_dim - 1) state_t = torch.FloatTensor(state) with torch.no_grad(): return self.policy_net(state_t).argmax().item()



--- ## 🚀 Step 3: Complete Training Loop Execution Create a file named train.py. This orchestrates the interaction between the neural network agent and the robotic simulation environment across 1,000 learning episodes.



python from robot_env import RobotArmEnv from dqn_agent import DQNAgent import torch def train_agent(): env = RobotArmEnv() agent = DQNAgent(state_dim=4, action_dim=9) # 3x3 torque combinations episodes = 1000 print("🤖 Initiating AI Robotics Training Loop...") for episode in range(episodes): state = env.reset() total_reward = 0 done = False while not done: action = agent.select_action(state) next_state, reward, done = env.step(action) # Simple policy update step target_q = reward if done else reward + 0.99 * torch.max(agent.policy_net(torch.FloatTensor(next_state))).item() current_q = agent.policy_net(torch.FloatTensor(state))[action] # Compute Mean Squared Error Loss loss = torch.nn.functional.mse_loss(current_q, torch.tensor(target_q, dtype=torch.float32)) agent.optimizer.zero_grad() loss.backward() agent.optimizer.step() state = next_state total_reward += reward if (episode + 1) % 100 == 0: print(f"Episode {episode + 1}/{episodes} | Moving Average Reward: {total_reward:.2f}") print("🎉 Training Complete! The AI has mastered trajectory optimization.") if __name__ == "__main__": train_agent()



--- ## 🔮 Future Horizons in Robotics To scale this foundational script into enterprise or academic-grade deployments, top-tier research focuses on solving these open problems: 1. Domain Randomization: Altering mass, friction, and link lengths mid-simulation so the agent can adapt to manufacturing flaws in real physical hardware. 2. Sim-to-Real (S2R) Transfer: Deploying models trained in zero-gravity or digital environments straight onto physical industrial arms without safety failures. 3. Sparse Reward Mechanisms: Adapting deep learning architectures to figure out multi-stage tasks (like opening a latch and picking a block) when success feedback is only given at the absolute end.

Information ergänzen Fachhinweis, Update, Korrektur oder Quelle zur Meldung beitragen
Gäste-Hinweise werden kurz redaktionell geprüft und danach hier angezeigt.

Community-Hinweise zur Meldung

0 freigegeben
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Cyber Threat Intelligence & Forensik

ATT&CK-Navigator · IoC-Radar & Graph

CTI Threat Relationship Graph
Akteure · Techniken · Beziehungen
2 Knoten · 1 Relationen
CVE / Incident Threat Actor Software MITRE ATT&CK CWE Weakness IoC
Community Rating &amp; Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität
Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Verwandte Story-Cluster & Quellen (Vektor-KI)

6 Cluster
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten AI ROBOTICS Coding Discourse

Thematisch verwandte Begriffe: ROBOTICS, Coding, Discourse · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag