Since you have received bail and hopefully there is no conditions to that bail you have no need to worry about your abroad travel. If there is a specific order for not leaving the country without prior permission of the court or the police authorities or you have to attend police station or if your passport is ceased then you may be prevented from going abroad.
But you will have to disclose your case before the visa authorities otherwise it would create unfavorable situation while being abroad.
Also another important part is that the embassy of the concerned country of the proposed visit does not have any objection to grant visa for your travel. Then you are more than free to go.
Another suggestion, do not go to court or police to seek permission, it may inadvertently be denied by the Court.