自动驾驶
578 字
3 分钟
自动驾驶
模型训练等
视频教程
代码仓库
https://github.com/ZTL123Z/traffic-detector-2025
训练模型
-
推荐算力云AutoDLhttps://www.autodl.com/
-
学生认证还能成为==VIP==
-
好处,==不用配置环境==,直接使用,==训练一次不要一元==

训练用的镜像如下,可以分享

租的服务器

==拉取镜像创建实例==

无卡模式开机配置环境
打标签的网站

加入我后,把权限给你
有11个类别

运行命令
启动测试
# 1.启动底盘roslaunch abot_driver abot_driver.launch# 2.启动键盘,看轮胎rosrun teleop_twist_keyboard teleop_twist_keyboard.pycamera.launch 摄像头
<launch> <param name="use_sim_time" value="false"/> <arg name="camera_type" value="$(env CAMERA)"/>
<group if="$(eval arg('camera_type') == 'astra')"> <include file="$(find astra_camera)/launch/astra.launch"/> </group>
<group if="$(eval arg('camera_type') == 'gemini')"> <include file="$(find astra_camera)/launch/gemini.launch"/> </group>
<group if="$(eval arg('camera_type') == 'astrapro')"> <node name="uvc_camera_node" pkg="uvc_camera" type="uvc_camera_node" output="screen"> <remap from="/image_raw" to="/camera/rgb/image_raw" /> <remap from="/camera_info" to="/camera/rgb/camera_info" /> <param name="width" type="int" value="640" /> <param name="height" type="int" value="480" /> <param name="fps" type="int" value="30" /> <param name="frame" type="string" value="wide_stereo" />
<param name="auto_focus" type="bool" value="False" /> <param name="focus_absolute" type="int" value="0" /> <!-- other supported params: auto_exposure, exposure_absolute, brightness, power_line_frequency -->
<param name="device" type="string" value="/dev/video0" /> <param name="camera_info_url" type="string" value="file://$(find abot)/param/camera_calibration/camera.yaml" /> </node>
<node pkg="topic_tools" type="transform" name="compressed_image" args="/camera/rgb/image_raw/compressed /compressed_image sensor_msgs/CompressedImage 'm' --wait-for-start" required="true"> </node> </group>
<group if="$(eval arg('camera_type') == 'usb')"> <node name="uvc_camera_node" pkg="uvc_camera" type="uvc_camera_node" output="screen"> <remap from="/image_raw" to="/camera/right/image_raw" /> <remap from="/camera_info" to="/camera/right/camera_info" /> <param name="width" type="int" value="640" /> <param name="height" type="int" value="480" /> <param name="fps" type="int" value="30" /> <param name="frame" type="string" value="wide_stereo" />
<param name="auto_focus" type="bool" value="False" /> <param name="focus_absolute" type="int" value="0" /> <!-- other supported params: auto_exposure, exposure_absolute, brightness, power_line_frequency -->
<param name="device" type="string" value="/dev/video4" /> <param name="camera_info_url" type="string" value="file://$(find uvc_camera)/example.yaml" /> </node> <node name="uvc_camera_node1" pkg="uvc_camera" type="uvc_camera_node" output="screen"> <remap from="/image_raw" to="/camera/rgb/image_raw" /> <remap from="/camera_info" to="/camera/rgb/camera_info" /> <param name="width" type="int" value="640" /> <param name="height" type="int" value="480" /> <param name="fps" type="int" value="30" /> <param name="frame" type="string" value="wide_stereo" />
<param name="auto_focus" type="bool" value="False" /> <param name="focus_absolute" type="int" value="0" />
<param name="device" type="string" value="/dev/video2" /> <param name="camera_info_url" type="string" value="file://$(find uvc_camera)/example.yaml" /> </node> <node name="uvc_camera_node2" pkg="uvc_camera" type="uvc_camera_node" output="screen"> <remap from="/image_raw" to="/camera/back/image_raw" /> <remap from="/camera_info" to="/camera/back/camera_info" /> <param name="width" type="int" value="640" /> <param name="height" type="int" value="480" /> <param name="fps" type="int" value="30" /> <param name="frame" type="string" value="wide_stereo" />
<param name="auto_focus" type="bool" value="False" /> <param name="focus_absolute" type="int" value="0" />
<param name="device" type="string" value="/dev/video0" /> <param name="camera_info_url" type="string" value="file://$(find uvc_camera)/example.yaml" /> </node>
</group>
<group if="$(eval arg('camera_type') == 'csi')"> <include file="$(find jetson_camera)/launch/jetson_camera.launch"/> <node pkg="topic_tools" type="transform" name="compressed_image" args="/camera/rgb/image_raw/compressed /compressed_image sensor_msgs/CompressedImage 'm' --wait-for-start" required="true"> </node> </group>
<group if="$(eval arg('camera_type') == 'intel')"> <include file="$(find realsense2_camera)/launch/rs_rgbd.launch" /> <node pkg="topic_tools" type="transform" name="compressed_image" args="/camera/color/image_raw/compressed /compressed_image sensor_msgs/CompressedImage 'm' --wait-for-start" respawn="true" /> </group></launch>摄像头一次3个
abot@robot:~/桌面$ ls /dev/video*/dev/video0 /dev/video1 /dev/video2 /dev/video3 /dev/video4 /dev/video5摄像头没有问题,查看摄像头画面
启动摄像头
abot@robot:~/桌面$ roslaunch abot camera.launch查看摄像头画面
abot@robot:~/桌面$ rosrun rqt_image_view rqt_image_view摄像头的插入顺序
后面,前面,左右两边
这样插入,摄像头的名称就对应
启动比赛代码
abot@robot:~/桌面$ rosrun traffic_detector core_new.py支持与分享
如果这篇文章对你有帮助,欢迎分享给更多人或赞助支持!
相关文章 智能推荐
1
聊聊docker
docker 系统进程
2
镜像仓库harbor
docker 镜像仓库harbor
3
ansible-docker-deploy
linux ansible-docker-deploy学习
4
K8S从入门到实战(2)
运维 Kubernetes(k8s)入门到实战教程丨全新升级完整版
5
Jenkins持续集成从入门到精通
linux RockyLinux初始化
随机文章 随机推荐