Skip to content

Commit

Permalink
stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Gongsta committed Apr 4, 2024
1 parent 2b796d6 commit 3f9d2a8
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ FROM ${BASE_IMAGE} as dependencies
# Camera and LiDAR ROS2 Driver
RUN apt update && apt install -y ros-$ROS_DISTRO-spinnaker-camera-driver ros-$ROS_DISTRO-velodyne

RUN apt install -y ros-$ROS_DISTRO-rviz2 ros-$ROS_DISTRO-image-proc

# Install Rosdep requirements
COPY --from=source /tmp/colcon_install_list /tmp/colcon_install_list
RUN apt-fast install -qq -y --no-install-recommends $(cat /tmp/colcon_install_list)
Expand All @@ -34,6 +36,10 @@ WORKDIR /
RUN apt-get -qq autoremove -y && apt-get -qq autoclean && apt-get -qq clean && \
rm -rf /root/* /root/.ros /tmp/* /var/lib/apt/lists/* /usr/share/doc/*


# Enable X11 Forwarding
RUN apt-get install -qqy x11-apps

################################ Build ################################
FROM dependencies as build

Expand Down
2 changes: 1 addition & 1 deletion modules/dev_overrides/docker-compose.infrastructure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ services:
data_stream:
extends:
file: ../docker-compose.infrastructure.yaml
service: data_stream
service: data_stream
6 changes: 6 additions & 0 deletions modules/docker-compose.interfacing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ services:
command: /bin/bash -c "ros2 launch sensor_interfacing all_sensors.launch.py"
network_mode: "host"

environment:
DISPLAY: $DISPLAY
volumes:
- /tmp/.X11-unix:/tmp/.X11-unix
- ~/.Xauthority:/root/.Xauthority

can_interfacing:
build:
context: ..
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,41 @@ def generate_launch_description():
description='FLIR serial number of camera (in quotes!!)')

# extra_params = { 'debug': True,
# #'device_link_throughput_limit': 125000000,
# #'gev_scps_packet_size': 9000,
# }
# 'device_link_throughput_limit': 125000000,
# 'gev_scps_packet_size': 1440,
# }

camera_node = Node(
package='spinnaker_camera_driver',
executable='camera_driver_node',

Check failure on line 29 in src/interfacing/sensor_interfacing/launch/include/cameras.launch.py

View workflow job for this annotation

GitHub Actions / Autopep8

src/interfacing/sensor_interfacing/launch/include/cameras.launch.py#L18-L29

serial = LaunchConfiguration('serial', default="'18542606'") serial_arg = DeclareLaunchArgument('serial', default_value=serial, description='FLIR serial number of camera (in quotes!!)') - + # extra_params = { 'debug': True, - # 'device_link_throughput_limit': 125000000, - # 'gev_scps_packet_size': 1440, - # } + # 'device_link_throughput_limit': 125000000, + # 'gev_scps_packet_size': 1440, + # } camera_node = Node( package='spinnaker_camera_driver',
output='screen',
name='flir_camera',
parameters=[{'parameter_file': parameter_file,
'serial_number': [serial],
}],
arguments=['--ros-args', '--log-level', 'debug'],
parameters=[
# extra_params,
{
'parameter_file': parameter_file,
'serial_number': [serial],
}]
,
remappings=[
('~/control', '/exposure_control/control'),
])

Check failure on line 43 in src/interfacing/sensor_interfacing/launch/include/cameras.launch.py

View workflow job for this annotation

GitHub Actions / Autopep8

src/interfacing/sensor_interfacing/launch/include/cameras.launch.py#L33-L43

parameters=[ # extra_params, { - 'parameter_file': parameter_file, - 'serial_number': [serial], - }] - , + 'parameter_file': parameter_file, + 'serial_number': [serial], + }], remappings=[ ('~/control', '/exposure_control/control'), ])
debayer_node = Node(
package='image_proc',
executable='debayer_node',
output='screen',
name='debayer_node',
remappings=[
('/image_raw', '/flir_camera/image_raw'),
]
)


return LaunchDescription([
parameter_file_arg,
serial_arg,

Check failure on line 57 in src/interfacing/sensor_interfacing/launch/include/cameras.launch.py

View workflow job for this annotation

GitHub Actions / Autopep8

src/interfacing/sensor_interfacing/launch/include/cameras.launch.py#L48-L57

name='debayer_node', remappings=[ ('/image_raw', '/flir_camera/image_raw'), - ] + ] ) - return LaunchDescription([ parameter_file_arg,
camera_node
camera_node,
debayer_node
])

0 comments on commit 3f9d2a8

Please sign in to comment.