Skip to content

Commit

Permalink
Fix the code
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed May 11, 2019
1 parent 20b6c12 commit d757281
Show file tree
Hide file tree
Showing 10 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion scripts/ideal_robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def draw(self, ax, elems): ### call_agent_draw
elems.append(ax.add_patch(c))
self.poses.append(self.pose)
elems += ax.plot([e[0] for e in self.poses], [e[1] for e in self.poses], linewidth=0.5, color="black")
if self.sensor:
if self.sensor and len(self.poses) > 1:
self.sensor.draw(ax, elems, self.poses[-2])
if self.agent and hasattr(self.agent, "draw"): #以下2行追加
self.agent.draw(ax, elems)
Expand Down
12 changes: 7 additions & 5 deletions section_robot/ideal_robot1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,19 @@
"cell_type": "code",
"execution_count": 3,
"metadata": {
"scrolled": true
"scrolled": false
},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAfEAAAHsCAYAAADCepQ4AAAABHNCSVQICAgIfAhkiAAAAAlwSFlz\nAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMS4wLCBo\ndHRwOi8vbWF0cGxvdGxpYi5vcmcvpW3flQAAEH1JREFUeJzt3WuIpQd9x/Hfv1mhF1OkZK00m3QD\n2pbUhNqO6SUvbFVstKl50RbURrC2XbAKCaTES9q+8E2htmqpVtlqL5KACCopVquRKrYUxc1lU5Oo\nBPEWFCeUorSiXfz3xYywTXd3NunsPM9/9vOBgT3nPOz58RDy3efMzDnV3QEA5vmepQcAAI+NiAPA\nUCIOAEOJOAAMJeIAMJSIA8BQIg4AQ4k4AAwl4gAw1IGlB+y2iy66qA8fPrz0DAB4zO68886Hu/vg\nTsftu4gfPnw4x44dW3oGADxmVfWFsznOy+kAMJSIA8BQIg4AQ4k4AAwl4gAwlI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iAPAUCIOAEOJOAAMJeLAaVXVb29/RO5p33e+qv5h+5jf28ttgIgDZ9Ddb0/y90muqaqXP/LxqnpZkucl+UB3/+Ve74PznTd7Ac6oqp6Y5FNJfiDJT3f3Z7bv/7Ekdyf5ZrY+t937/cMecyUOnFF3fy3J7yb5/iS3VtWB7fdRv3X7viMCDsvwKWbAjrr79qr662x9Lvsfbd/99CR/6xO3YDleTgfOSlVdmOR4kku37/pSkiu7+xvLrYLzm5fTgbOyHevXJrlg++tlAg7LEnHgrFTV9yV55Ul3/cZSW4AtIg6crT9J8hNJ/jzJPUleWlW/uuwkOL/5njiwo6p6TpJ/zNavmj09yVOSHEvyH9n69bKHF5wH5y1X4sAZVdUPJfmbJP+d5Pru/lZ3fyrJHyb54SRvWXIfnM9EHNjJW5P8SJI/6O57T7r/z5L8c5Jfr6rrF1kG5zkvpwOnVVUvTvKOJB9L8kvd/Z1HPH5ZknuTnEhyRXd/ee9XwvlLxIFTqqpLsxXoytbvg3/hNMf9TpK/SnJHkl9u/1OBPSPiADCU74kDwFAiDgBDiTgADCXiADCUiAPAUCIOAEOJOAAMJeIAMJSIA8BQ/wNvgqN/PEPTUQAAAABJRU5ErkJggg==\n",
"text/plain": [
"<matplotlib.figure.Figure at 0x108e674e0>"
"<Figure size 576x576 with 1 Axes>"
]
},
"metadata": {},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
Expand Down Expand Up @@ -83,7 +85,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions section_robot/ideal_robot10.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
" elems.append(ax.add_patch(c)) # 上のpatches.Circleでロボットの胴体を示す円を作ってサブプロットへ登録\n",
" self.poses.append(self.pose)\n",
" elems += ax.plot([e[0] for e in self.poses], [e[1] for e in self.poses], linewidth=0.5, color=\"black\")\n",
" if self.sensor:\n",
" if self.sensor and len(self.poses) > 1:\n",
" self.sensor.draw(ax, elems, self.poses[-2])\n",
" \n",
" @classmethod \n",
Expand Down Expand Up @@ -1049,7 +1049,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
6 changes: 3 additions & 3 deletions section_robot/ideal_robot11.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion section_robot/ideal_robot2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion section_robot/ideal_robot3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions section_robot/ideal_robot6.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"outputs": [],
"source": [
"class World: ### fig:world_init_add_timespan (1-6行目)\n",
" def __init__(self, time_span, time_interval, debug=False):\n",
" def __init__(self, time_span, time_interval, debug=False): #time_span, time_intervalを追加\n",
" self.objects = [] \n",
" self.debug = debug\n",
" self.time_span = time_span # 追加\n",
Expand Down Expand Up @@ -952,7 +952,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
4 changes: 2 additions & 2 deletions section_robot/ideal_robot9.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
" elems.append(ax.add_patch(c)) \n",
" self.poses.append(self.pose)\n",
" elems += ax.plot([e[0] for e in self.poses], [e[1] for e in self.poses], linewidth=0.5, color=\"black\")\n",
" if self.sensor: #追加\n",
" if self.sensor and len(self.poses) > 1: #追加\n",
" self.sensor.draw(ax, elems, self.poses[-2]) #追加\n",
" \n",
" @classmethod \n",
Expand Down Expand Up @@ -1054,7 +1054,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.0"
"version": "3.7.3"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit d757281

Please sign in to comment.