Problem solved that the libraries could not be found with sudo.
This commit is contained in:
parent
ffb71e0793
commit
e2dd7f2daf
3 changed files with 33 additions and 21 deletions
|
@ -34,3 +34,9 @@ link_directories(
|
|||
add_executable(wlanSignal src/wlanSignal.cpp)
|
||||
target_link_libraries(wlanSignal ${catkin_LIBRARIES} wifi-scan)
|
||||
add_dependencies(wlanSignal wlan_pioneer_generate_messages_cpp)
|
||||
|
||||
|
||||
SET(CMAKE_INSTALL_RPATH ${catkin_LIBRARIES})
|
||||
SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
||||
|
||||
SET(CMAKE_EXE_LINKER_FLAGS "-Wl,--disable-new-dtags")
|
||||
|
|
|
@ -8,21 +8,19 @@
|
|||
<arg name="Transform" value="1" />
|
||||
<arg name="Dashboard" value="0" />
|
||||
<arg name="enableMotor" value="1" />
|
||||
<arg name="enableWlanScan" value="1" />
|
||||
<arg name="enableGmapping" value="1" />
|
||||
<arg name="enableBagging" value="1" />
|
||||
<arg name="enableWlanScan" value="1" />
|
||||
<arg name="enableGmapping" value="1" />
|
||||
<arg name="enableBagging" value="1" />
|
||||
|
||||
<!-- Set wifi interface and start wlan logging -->
|
||||
<group if="$(arg enableWlanScan)" >
|
||||
<param name="wlan_interface_2G4" type="string" value="wlx801f02c608aa" />
|
||||
<param name="wlan_interface_5G" type="string" value="wlx801f02c608aa" />
|
||||
<node pkg="wlan_pioneer" name="wlanSignal" type="wlanSignal" />
|
||||
</group>
|
||||
<group if="$(arg enableWlanScan)" >
|
||||
<include file="$(find wlan_pioneer)/launch/wlanSignal.launch"/>
|
||||
</group>
|
||||
|
||||
<!-- Enable the motor with rostopic pub -->
|
||||
<group if="$(arg enableMotor)" >
|
||||
<node name="rostopic" pkg="rostopic" type="rostopic" args="pub -1 /cmd_motor_state p2os_msgs/MotorState 1"/>
|
||||
</group>
|
||||
<!-- Enable the motor with rostopic pub -->
|
||||
<group if="$(arg enableMotor)" >
|
||||
<node name="rostopic" pkg="rostopic" type="rostopic" args="pub -1 /cmd_motor_state p2os_msgs/MotorState 1"/>
|
||||
</group>
|
||||
|
||||
<!-- Start the p2os ROS Driver -->
|
||||
<group if="$(arg P2OS_Driver)" >
|
||||
|
|
8
launch/wlanSignal.launch
Normal file
8
launch/wlanSignal.launch
Normal file
|
@ -0,0 +1,8 @@
|
|||
<launch>
|
||||
|
||||
<!-- <param name="wlan_interface" type="string" value="wlx74da38ef8aca" /> -->
|
||||
<!-- <param name="wlan_ssid" type="string" value="HSMA-VPN" /> -->
|
||||
|
||||
<node pkg="wlan_pioneer" type="wlanSignal" name="wlanSignal" launch-prefix="sudo -S -E"/>
|
||||
|
||||
</launch>
|
Loading…
Reference in a new issue