Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] PR1040 Develop branch #1081

Closed
wants to merge 85 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
067d2f5
Merge branch 'fetch-voicetext' into develop
furushchev Apr 23, 2018
30dc137
jsk_robot_startup: add option 'approximate_sync'
furushchev May 18, 2018
f4f09c5
Merge remote-tracking branch 'origin/master' into develop
furushchev May 21, 2018
73d442d
Merge remote-tracking branch 'furushchev/develop' into develop
furushchev May 21, 2018
88b891d
jsk_fetch_startup: enable approximate_sync
furushchev May 21, 2018
a4dd3c4
new battery_warning
furushchev Jun 30, 2018
da11e05
update battery_warning
furushchev Jul 12, 2018
dd294d8
update
furushchev Jul 15, 2018
794f207
jsk_robot_startup: add diagnostic for logger nodelet
furushchev Jul 15, 2018
97b8059
jsk_pr2_startup: cleanup bringup nodes
furushchev Jul 15, 2018
56b3921
jsk_pr2_startup: cleanup bringup nodes
furushchev Jul 15, 2018
584038d
Merge branch 'diag' of https://github.com/furushchev/jsk_robot into diag
furushchev Jul 15, 2018
80305e7
jsk_pr2_startup: move sound jp to bringup launch
furushchev Jul 15, 2018
d7f1ecf
Merge branch 'diag' into develop
furushchev Jul 15, 2018
1b475ab
jsk_pr2_startup: enable approximate sync for logging
furushchev Jul 16, 2018
1ae03d9
add app_manager tag
furushchev Aug 9, 2018
b5c4f3f
update jsk_pr2_startup
furushchev Sep 17, 2018
291ae8d
update app_manager.launch
furushchev Sep 22, 2018
408ae17
fix tweet_client_uptime
furushchev Sep 22, 2018
6efcb15
fix minor issue
furushchev Sep 22, 2018
3202cdb
fix active user
furushchev Sep 22, 2018
7c4b5bb
fix battery_warning
furushchev Sep 22, 2018
5753422
fix active user
furushchev Sep 23, 2018
c13d1ac
fix battery_warning.py
furushchev Sep 23, 2018
d7ea61c
minor fix
furushchev Sep 25, 2018
20a555a
add respeaker to pr2.launch
furushchev Sep 25, 2018
59f59ca
jsk_pr2_startup: change tilt min_obstacle_height 0.0 -> 0.1
furushchev Sep 27, 2018
643a1d8
Merge remote-tracking branch 'furushchev/custom-collection' into develop
furushchev Oct 12, 2018
2ed28e3
jsk_pr2_startup: use 2d costmap
furushchev Oct 12, 2018
3db5a1f
common_logger.launch: fix duplicate arg approximate_sync
furushchev Oct 22, 2018
68adc96
[jsk_pr2_move_base] Add teb_local_planner_params.yaml
iory Nov 11, 2018
081249a
[jsk_pr2_move_base] Modified default local planner
iory Nov 11, 2018
250fb70
[jsk_pr2_move_base] Modified polygon of local cost map's footprint
iory Nov 11, 2018
117a446
Merge remote-tracking branch 'furushchev/develop' into develop
furushchev Dec 11, 2018
c395b40
jsk_robot_startup: add message_store_singleton
furushchev Dec 11, 2018
195d543
lightweight_logger_nodelet: deferred initialize message_store_proxy i…
furushchev Dec 11, 2018
d2fba8f
add automated_logger
furushchev Dec 13, 2018
2b8048b
update automated_logger
furushchev Dec 14, 2018
e4b9178
fix remappings
furushchev Dec 14, 2018
a79dd66
Merge branch 'automate-logger' into develop
furushchev Dec 14, 2018
e4c7f5d
fix merge conflicts
furushchev Dec 15, 2018
ead6bd8
lightweight_logger: fix double free bug
furushchev Dec 15, 2018
cb9bab0
lightweight_logger: add param ~enable_diagnostics
furushchev Dec 15, 2018
5e2403c
automated_logger: minor bugfix
furushchev Dec 15, 2018
aceecbe
automated_logger: variable for nodelet api sanity check
furushchev Dec 15, 2018
d64e587
automated_logger: pass params/my_argv on load nodelet
furushchev Dec 15, 2018
2cdd45b
automated_logger: record watch log
furushchev Dec 15, 2018
a774603
automated_logger: log watch/unwatch only topic exists
furushchev Dec 15, 2018
65bd73d
add circular buffer for lazy insertion
furushchev Dec 16, 2018
0693058
use deferred load thead for lazy insertion
furushchev Dec 16, 2018
148b0c5
auto select lazy/normal insertion using buffer
furushchev Dec 16, 2018
e641cb6
minor change
furushchev Dec 16, 2018
22bf159
Merge branch 'automate-logger' into develop
furushchev Dec 16, 2018
9e9cd5b
force exit if insertion is failed on interruption
furushchev Dec 16, 2018
5060aac
Merge branch 'automate-logger' into develop
furushchev Dec 16, 2018
45353f1
Merge remote-tracking branch 'furushchev/automate-logger' into develop
furushchev Dec 18, 2018
48d04e5
disable teb
furushchev Dec 18, 2018
5fd224d
active_user.l: set username if empty
furushchev Dec 22, 2018
b509f37
tweet_client.l: cleanup
furushchev Dec 22, 2018
0d17e1f
tweet_client_*.l: cleanup
furushchev Dec 22, 2018
691e0c3
tweet.launch: update
furushchev Dec 22, 2018
b0441e7
pr2_tweet.launch: ignore pr2_tweet_log
furushchev Dec 23, 2018
7436b3e
fix tweet_client_worktime
furushchev Dec 23, 2018
c01109e
minor fix
furushchev Dec 24, 2018
a9991d6
periodic_replicator_client: show status text
furushchev Dec 25, 2018
1b73bac
Merge branch 'develop' of github.com:furushchev/jsk_robot into develop
furushchev Dec 25, 2018
c9556e8
pr2.launch: cleanup
furushchev Dec 26, 2018
aecae51
publish_empty_cloud: support lazy
furushchev Dec 26, 2018
48a81e6
fix laser topics
furushchev Dec 26, 2018
d14a91a
update safe_teleop
furushchev Jan 6, 2019
627f0f8
adjust params for move base tilt observation persistence
furushchev Jan 7, 2019
4ca3fb5
update safe teleop params
furushchev Jan 7, 2019
058d192
change costmap settings
furushchev Feb 12, 2019
12290f8
fix battery_warning
furushchev Feb 12, 2019
3ea898d
add boost components for building
furushchev Feb 12, 2019
b465ec2
update automated_logger
furushchev Feb 12, 2019
64dda41
Merge remote-tracking branch 'origin/master' into develop
furushchev Mar 14, 2019
b42927a
Merge branch 'develop' of github.com:furushchev/jsk_robot into develop
furushchev Mar 14, 2019
6bb671e
fix tweet/tweet.l
knorth55 Mar 29, 2019
573fa57
Merge pull request #1 from knorth55/fix-pr2-twitter
furushchev Mar 30, 2019
d572673
fix typo
knorth55 Apr 17, 2019
32344ce
suppress log for cable warning
knorth55 Apr 28, 2019
513be21
Speak warning message when battery voltage is low
YutoUchimi May 22, 2019
f4c321f
add robotsound and robotsound_jp in tts_action_names/speech_to_text
knorth55 Aug 29, 2019
82ae5b3
log voltage, current and temperature for pr2 battery
knorth55 Oct 2, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions jsk_fetch_robot/jsk_fetch_startup/launch/fetch_lifelog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
</include>

<include file="$(find jsk_robot_startup)/lifelog/common_logger.launch">
<arg name="approximate_sync" value="true"/>
<arg name="save_rgb" value="true" />
<arg name="save_depth" value="true" />
<arg name="save_tf" value="true" />
Expand Down
2 changes: 2 additions & 0 deletions jsk_fetch_robot/jsk_fetch_startup/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<run_depend>move_base</run_depend>

<!-- for fetch teleop -->
<run_depend>app_manager</run_depend>
<run_depend>fetch_bringup</run_depend>
<run_depend>safe_teleop_base</run_depend>
<run_depend>joy</run_depend>
Expand All @@ -46,5 +47,6 @@
<test_depend>rostest</test_depend>

<export>
<app_manager app_dir="${prefix}/apps"/>
</export>
</package>
2 changes: 1 addition & 1 deletion jsk_pr2_robot/jsk_pr2_startup/apps/tweet/tweet.l
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
(speak-jp "カシャ!")

(tweet-string "Hello!!"
:warning-time nil
:wait-for-camera 0
:with-image "/kinect_head/rgb/image_rect_color")
(exit)
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
<arg name="launch_manager" value="false" />
<arg name="manager" value="kinect_head/kinect_head_c2_nodelet_manager" />
<arg name="map_frame_id" value="$(arg map_frame)" />
<arg name="debug" value="false"/>
<arg name="approximate_sync" value="true"/>
</include>

<rosparam ns="lifelog/joint_states_throttle">
Expand Down
4 changes: 2 additions & 2 deletions jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_lifelog/pr2-tweet-log.l
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
(require :tweet-client "package://jsk_robot_startup/lifelog/tweet_client.l")
(defparameter *mongo-database* "jsk_robot_lifelog")
(defparameter *mongo-collection* "pr1012")
(defparameter *json-parse-key-function* #'string->keyword)
(defparameter *json-parse-key-function* #'json::string->keyword)
(setq json::*tzoffset* -8)
(defvar *tweet* t)
(defparameter *query-limit* 100)
Expand Down Expand Up @@ -75,7 +75,7 @@
(setq ret (send w :tweet))
(when ret
(if *tweet*
(tweet-string ret :warning-time nil :with-image with-image :speek nil :image-wait 10))
(tweet-string ret :wait-for-camera 0 :with-image with-image :with-speech nil))
(warn "tweeted: ~A...~%" (subseq ret 0 100))
(setq with-image nil)
))))
Expand Down
14 changes: 0 additions & 14 deletions jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_lifelog/pr2_hark.launch

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<launch>
<arg name="use_microcone" default="false"/>
<arg name="use_respeaker" default="true"/>

<arg name="language" default="ja-JP"/>

<arg name="machine" default="c1" if="$(optenv USE_MIC_C1 false)"/>
<arg name="machine" default="c2" if="$(optenv USE_MIC_C2 false)"/>

<arg name="ROBOT" default="$(optenv ROBOT pr2)"/>
<include file="$(find pr2_machine)/$(arg ROBOT).machine"/>

<!-- microcone -->
<group if="$(arg use_microcone)">
<node name="pr2_hark" pkg="jsk_pr2_startup"
type="microcone_localization_MFCC.sh" output="log"
machine="$(arg machine)"/>
</group>

<!-- respeaker -->
<group if="$(arg use_respeaker)">
<node name="respeaker_node" pkg="respeaker_ros" type="respeaker_node.py"
machine="$(arg machine)" output="screen">
<rosparam>
sensor_frame_id: head_mount_link
</rosparam>
</node>

<node name="speech_to_text"
pkg="respeaker_ros" type="speech_to_text.py"
machine="$(arg machine)">
<remap from="audio" to="speech_audio"/>
<remap from="sound_play" to="robotsound_jp"/>
<rosparam subst_value="true">
language: $(arg language)
self_cancellation: true
tts_tolerance: 0.5
tts_action_names:
- robotsound
- robotsound_jp
</rosparam>
</node>
</group>
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
</include>

<!-- tweet logging data -->
<!--
<node name="pr2_tweet_log" pkg="roseus" type="roseus"
args="$(find jsk_pr2_startup)/jsk_pr2_lifelog/pr2-tweet-log.l"
machine="c2" output="screen" />
-->
</launch>
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<launch>
<node pkg="amcl" type="amcl" name="amcl" machine="c2"
respawn="true" output="log">
<remap from="scan" to="base_scan" />
<remap from="scan" to="base_scan_filtered/scan" />
<!-- Publish scans from best pose at a max of 10 Hz -->
<param name="base_frame_id" value="/base_footprint"/>
<param name="use_map_topic" value="true" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ transform_tolerance: 1.0 # 0.2

# parameters for static_layer
static_layer:
map_topic: map
map_topic: /map
subscribe_to_updates: true

# parameters for obstacle_layer
obstacle_layer:
observation_sources: base_scan_marking tilt_scan_filtered
base_scan_marking:
observation_sources: base_scan_filtered tilt_scan_filtered
base_scan_filtered:
data_type: PointCloud2
topic: base_scan_marking
topic: /base_scan_filtered
sensor_frame: base_laser_link
marking: true
clearing: true
Expand All @@ -24,13 +24,13 @@ obstacle_layer:
raytrace_range: 3.0
tilt_scan_filtered:
data_type: PointCloud2
topic: tilt_scan_filtered
topic: /tilt_scan_filtered/navigation
sensor_frame: laser_tilt_link
marking: true
clearing: true
observation_persistence: 1.0
observation_persistence: 2.5
expected_update_rate: 0.25
min_obstacle_height: 0.0
min_obstacle_height: 0.05
max_obstacle_height: 2.0
obstacle_range: 2.5
raytrace_range: 3.0
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins:
- {name: static_layer, type: "costmap_2d::StaticLayer" }
- {name: obstacle_layer, type: "costmap_2d::VoxelLayer" }
- {name: obstacle_layer, type: "costmap_2d::ObstacleLayer" }
- {name: inflation_layer, type: "costmap_2d::InflationLayer" }

footprint: [[-0.325, -0.325], [-0.425, -0.175], [-0.425, 0.175], [-0.325, 0.325], [0.325, 0.325], [0.375, 0.0], [0.325, -0.325]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
plugins:
- {name: obstacle_layer, type: "costmap_2d::VoxelLayer" }
- {name: obstacle_layer, type: "costmap_2d::ObstacleLayer" }
- {name: inflation_layer, type: "costmap_2d::InflationLayer" }

# copied from pr2_navigation_global/config/local_costmap_params.yaml
global_frame: odom_combined
publish_frequency: 5.0
static_map: false
rolling_window: true
width: 4.0 # 3.0
height: 4.0 # 3.0
width: 5.0 # 3.0
height: 5.0 # 3.0
resolution: 0.025 # 0.06

footprint: [[-0.325, -0.325], [-0.425, -0.175], [-0.425, 0.175], [-0.325, 0.325], [0.325, 0.325], [0.375, 0.0], [0.325, -0.325]]
15 changes: 7 additions & 8 deletions jsk_pr2_robot/jsk_pr2_startup/jsk_pr2_move_base/move_base.xml
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@
<!-- original : pr2_navigation_global/move_base.xml (electric) -->
<launch>
<arg name="use_teb_local_planner" default="false" />
<include file="$(find pr2_machine)/$(env ROBOT).machine" />

<!-- Bring up the tilt_laser aware version of move_base -->
<node pkg="pr2_move_base" name="pr2_move_base_node" type="pr2_move_base.py"
respawn="true" machine="c2" />

<!-- Throttle the voxel grid that is being published for rviz -->
<node ns="move_base_node/local_costmap"
name="voxel_grid_throttle" pkg="topic_tools" type="throttle"
machine="c2" args="messages voxel_grid 3.0 voxel_grid_throttled" />

<node pkg="move_base" type="move_base" name="move_base_node"
machine="c2" clear_params="true" output="screen">
machine="c2" clear_params="true" output="screen" respawn="true">
<!-- launch-prefix="nice -n +10"> -->
<remap from="odom" to="base_odometry/odom" />
<remap from="cmd_vel" to="navigation/cmd_vel/raw" />
<remap from="~clear_costmaps" to="/move_base/clear_costmaps" />

<param name="base_global_planner" value="navfn/NavfnROS" />
<param name="base_local_planner" value="dwa_local_planner/DWAPlannerROS" />
<param name="base_local_planner" value="dwa_local_planner/DWAPlannerROS" unless="$(arg use_teb_local_planner)" />
<param name="base_local_planner" value="teb_local_planner/TebLocalPlannerROS" if="$(arg use_teb_local_planner)" />
<rosparam file="$(find jsk_pr2_startup)/jsk_pr2_move_base/navfn_ros_planner.yaml" command="load"
ns="NavfnROS" />
<rosparam file="$(find jsk_pr2_startup)/jsk_pr2_move_base/dwa_local_planner.yaml" command="load"
ns="DWAPlannerROS" />
ns="DWAPlannerROS" unless="$(arg use_teb_local_planner)" />
<rosparam file="$(find jsk_pr2_startup)/jsk_pr2_move_base/teb_local_planner_params.yaml" command="load"
if="$(arg use_teb_local_planner)" />

<!-- Load common configuration files -->
<rosparam file="$(find jsk_pr2_startup)/jsk_pr2_move_base/move_base_params.yaml" command="load" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,15 @@
<include file="$(find jsk_pr2_startup)/jsk_pr2_sensors/lasers_and_filters.xml">
<arg name="gazebo" value="$(arg gazebo)"/>
</include>
<include file="$(find jsk_pr2_startup)/jsk_pr2_move_base/ground_plane.xml" />
<include file="$(find jsk_pr2_startup)/jsk_pr2_move_base/move_base.xml" />

<!-- To ignore tilt-laser -->
<node name="tilt_laser_mux" pkg="topic_tools" type="mux"
args="ground_object_cloud_mux ground_object_cloud empty_cloud">
args="tilt_scan_filtered/navigation tilt_scan_filtered empty_cloud">
<remap from="mux" to="tilt_laser_mux"/>
<rosparam>
lazy: true
</rosparam>
</node>
<node name="empty_cloud_publisher" pkg="jsk_pr2_startup"
type="publish_empty_cloud.py">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
<param name="default_select" value="/input_vel"/>
</node>

<node pkg="safe_teleop_base" type="safe_teleop_base" respawn="false"
name="safe_teleop_base" machine="c2">
<node pkg="safe_teleop_base" type="safe_teleop_base" respawn="true"
name="safe_teleop_base" machine="c2" clear_params="true">
<remap from="/odom" to="/base_odometry/odom"/>
<remap from="base_velocity" to="/navigation/unsafe_vel"/>
<remap from="~safe_vel" to="/navigation/safe_vel"/>
<rosparam file="$(find jsk_pr2_startup)/jsk_pr2_move_base/safe_teleop_pr2_params.yaml"
command="load" />
<rosparam param="local_costmap/footprint">[[-0.325, -0.325], [-0.325, 0.325], [0.325, 0.325], [0.46, 0.0], [0.325, -0.325]]</rosparam>
</node>

<!-- switch base velocity, safe or not -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,49 +5,55 @@ local_costmap:
transform_tolerance: 0.2
obstacle_range: 2.5
raytrace_range: 3.0
inflation_layer:
inflation_radius: 0.2
inflation_radius: 0.2
footprint_clearing_enabled: true
global_frame: odom_combined
robot_base_frame: base_footprint
update_frequency: 5.0
publish_frequency: 2.0
static_map: false
rolling_window: true

width: 10.0
height: 10.0
width: 5.0
height: 5.0
resolution: 0.025
origin_x: 0.0
origin_y: 0.0

publish_voxel_map: true
map_type: voxel
obstacle_layer:
origin_z: 0.0
z_voxels: 16
z_resolution: 0.081
z_resolution: 0.1
unknown_cost_value: 0
unknown_threshold: 8
unknown_threshold: 4
mark_threshold: 0
origin_z: 0.0
z_voxels: 16
z_resolution: 0.081
unknown_cost_value: 0
unknown_threshold: 8
mark_threshold: 0

observation_sources: base_scan_marking base_scan tilt_scan ground_object_cloud

base_scan_marking: {sensor_frame: base_laser_link, topic: /base_scan_marking, data_type: PointCloud2, expected_update_rate: 0.2,
observation_persistence: 0.0, marking: true, clearing: false, min_obstacle_height: 0.08, max_obstacle_height: 2.0}

base_scan: {sensor_frame: base_laser_link, topic: /base_scan, data_type: LaserScan, expected_update_rate: 0.2,
observation_persistence: 0.0, marking: false, clearing: true, min_obstacle_height: -0.10, max_obstacle_height: 2.0}

tilt_scan: {sensor_frame: laser_tilt_link, topic: /tilt_scan, data_type: LaserScan, expected_update_rate: 0.2,
observation_persistence: 0.2, marking: false, clearing: true, min_obstacle_height: -20.00, max_obstacle_height: 40.0}

ground_object_cloud: {sensor_frame: laser_tilt_link, topic: /ground_object_cloud, data_type: PointCloud2, expected_update_rate: 0.2,
observation_persistence: 4.6, marking: true, clearing: false, min_obstacle_height: -0.10, max_obstacle_height: 2.0}
publish_voxel_map: false
inflation_layer:
inflation_radius: 0.2

observation_sources: base_scan_filtered tilt_scan_filtered

base_scan_filtered:
sensor_frame: base_laser_link
topic: /base_scan_filtered
data_type: PointCloud2
expected_update_rate: 0.2
observation_persistence: 1.0
marking: true
clearing: true
min_obstacle_height: 0.25
max_obstacle_height: 0.35
obstacle_range: 5.0
raytrace_range: 3.0
tilt_scan_filtered:
sensor_frame: laser_tilt_link
topic: /tilt_scan_filtered
data_type: PointCloud2
expected_update_rate: 0.25
observation_persistence: 2.5
marking: true
clearing: true
min_obstacle_height: 0.075
max_obstacle_height: 2.0
obstacle_range: 5.0
raytrace_range: 3.0
Loading