Remove debugging
This commit is contained in:
@@ -101,7 +101,6 @@ class RobotBridgeNode(Node):
|
|||||||
|
|
||||||
def _on_robot_description(self, msg: String) -> None:
|
def _on_robot_description(self, msg: String) -> None:
|
||||||
limits = _parse_joint_limits(msg.data)
|
limits = _parse_joint_limits(msg.data)
|
||||||
self.get_logger().info(f'Received /robot_description, parsed limits: {limits}')
|
|
||||||
if not limits:
|
if not limits:
|
||||||
self.get_logger().warn('No pan/tilt limits found in URDF — check joint names.')
|
self.get_logger().warn('No pan/tilt limits found in URDF — check joint names.')
|
||||||
return
|
return
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ export default function App() {
|
|||||||
const [jointLimits, setJointLimits] = useState(null)
|
const [jointLimits, setJointLimits] = useState(null)
|
||||||
|
|
||||||
const { send, connected } = useWebSocket((msg) => {
|
const { send, connected } = useWebSocket((msg) => {
|
||||||
if (msg.type === 'joint_states') { console.log('[joint_states]', msg.positions); setJointStates(msg.positions) }
|
if (msg.type === 'joint_states') setJointStates(msg.positions)
|
||||||
if (msg.type === 'ultrasonic') setRange(msg.range)
|
if (msg.type === 'ultrasonic') setRange(msg.range)
|
||||||
if (msg.type === 'joint_limits') setJointLimits(msg.limits)
|
if (msg.type === 'joint_limits') setJointLimits(msg.limits)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user